/* ==========================================================================
   VIVACIOUS CLOUD — design tokens
   ========================================================================== */
:root{
  --ink:        #08090D;
  --surface:    #12151D;
  --surface-2:  #191D28;
  --line:       #262B3A;
  --text:       #F5F3FF;
  --text-muted: #9096AC;
  --violet:     #7C5CFF;
  --violet-dim: #5B3FE0;
  --teal:       #00E5C9;
  --amber:      #FFB454;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

h1,h2,h3{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p{ margin:0; color: var(--text-muted); }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin:0; padding:0; }
img, svg{ display:block; max-width:100%; }

.section-inner{ max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* ==========================================================================
   Animated background orbs
   ========================================================================== */
#starfield{ position: fixed; inset:0; z-index:-1; pointer-events:none; width:100%; height:100%; }
.bg-orbs{ position: fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.orb{
  position:absolute;
  border-radius:50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-a{ width:520px; height:520px; top:-160px; right:-120px; background: radial-gradient(circle, var(--violet), transparent 70%); animation: floatA 18s ease-in-out infinite; }
.orb-b{ width:420px; height:420px; top:900px; left:-160px; background: radial-gradient(circle, var(--teal), transparent 70%); animation: floatB 22s ease-in-out infinite; }
.orb-c{ width:460px; height:460px; top:2000px; right:-180px; background: radial-gradient(circle, var(--violet-dim), transparent 70%); animation: floatA 20s ease-in-out infinite reverse; }
@keyframes floatA{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-40px, 40px); } }
@keyframes floatB{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(50px, -30px); } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 20px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: linear-gradient(135deg, var(--violet), var(--violet-dim)); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,92,255,0.65); }
.btn-primary:hover{ box-shadow: 0 10px 28px -6px rgba(124,92,255,0.9); transform: translateY(-1px); }
.btn-glow{ position: relative; }
.btn-glow::after{
  content:""; position:absolute; inset:-2px; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  opacity:0; z-index:-1; filter: blur(10px);
  transition: opacity .25s ease;
}
.btn-glow:hover::after{ opacity: 0.7; }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover{ border-color: var(--violet); background: rgba(124,92,255,0.08); }
.btn-lg{ padding: 14px 26px; font-size: 15.5px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,9,13,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--container); margin:0 auto; padding: 12px 28px;
  display:flex; align-items:center; gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; margin-right: auto; }
.brand-word{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: 0.04em; white-space: nowrap; }
.brand-name-accent{ color: var(--teal); }
.brand-sub{ font-size: 9.5px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links{ display:flex; gap: 24px; }
.nav-links a{ font-size: 14px; color: var(--text-muted); transition: color .18s ease; position: relative; padding-bottom: 2px; }
.nav-links a:hover{ color: var(--text); }
.nav-links a.is-active{ color: var(--teal); }
.nav-links a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: linear-gradient(90deg, var(--violet), var(--teal)); border-radius: 2px;
}

.nav-auth{ display:flex; align-items:center; gap: 10px; flex-shrink:0; }
.nav-login{ padding: 10px 16px; }
.nav-cta-mobile{ display:none; padding: 8px 16px; font-size: 13px; margin-right: 4px; }

.nav-burger{ display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:6px; z-index: 61; }
.nav-burger span{ width:20px; height:2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.nav-drawer-overlay{
  display:none; position: fixed; inset:0; background: rgba(0,0,0,0.55);
  z-index: 58; opacity:0; transition: opacity .25s ease;
}
.nav-drawer-overlay.is-open{ display:block; opacity:1; }

.nav-mobile{
  position: fixed; top:0; left:0; bottom:0; z-index: 60;
  width: min(78vw, 320px);
  background: linear-gradient(180deg, var(--surface), var(--ink));
  border-right: 1px solid var(--line);
  display:flex; flex-direction:column; gap: 4px; padding: 20px 24px 24px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 30px 0 60px -30px rgba(0,0,0,0.6);
}
.nav-mobile-brand{ display:flex; align-items:center; gap:10px; margin-bottom: 18px; }
.nav-mobile-brand .brand-name{ font-size: 14px; }
.nav-mobile a{ padding: 12px 4px; font-size: 15px; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.nav-mobile a.is-active{ color: var(--teal); }
.nav-mobile .btn{ margin-top: 14px; width: 100%; }
.nav-mobile.is-open{ transform: translateX(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ padding: 68px 0 0; position:relative; }
.hero-inner{
  max-width: var(--container); margin: 0 auto; padding: 0 28px 70px;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center;
  position: relative; z-index: 2;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--teal);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow-dot{ width:6px; height:6px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0,229,201,0.6); animation: pulseDot 1.8s infinite; }
.eyebrow--center{ justify-content:center; width:100%; }

.hero-title{ font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; color: var(--text); }
.grad-text{
  display:block; margin-top: 8px; min-height: 1.1em;
  background: linear-gradient(100deg, var(--violet) 10%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lede{ margin-top: 22px; font-size: 16.5px; max-width: 48ch; }

.pain-points{ margin-top: 30px; display:flex; flex-direction:column; gap: 12px; }
.pain-points li{
  display:flex; align-items:flex-start; gap: 12px; font-size: 14.5px; color: var(--text-muted);
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.pain-points li:hover{ border-color: var(--violet); transform: translateX(3px); }
.pp-icon{ flex-shrink:0; }

.hero-actions{ margin-top: 34px; display:flex; gap: 14px; flex-wrap: wrap; }

.hero-stats{ margin-top: 40px; display:flex; gap: 34px; flex-wrap: wrap; }
.hero-stat{ display:flex; flex-direction:column; gap: 4px; }
.hero-stat-num{ font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.hero-stat-label{ font-size: 12px; color: var(--text-muted); max-width: 15ch; }

/* --- hero visual --- */
.hero-visual{ display:flex; justify-content:center; position: relative; }
.route-card{
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.75);
  position: relative; overflow: hidden;
}
.orbit-ring{
  position:absolute; border-radius:50%;
  border: 1px dashed rgba(124,92,255,0.18);
  pointer-events:none;
}
.orbit-ring--outer{ width: 480px; height:480px; top:50%; left:50%; transform: translate(-50%,-52%); animation: spinSlow 60s linear infinite; }
.orbit-ring--inner{ width: 340px; height:340px; top:50%; left:50%; transform: translate(-50%,-52%); border-color: rgba(0,229,201,0.16); animation: spinSlow 40s linear infinite reverse; }
@keyframes spinSlow{ from{ transform: translate(-50%,-52%) rotate(0deg); } to{ transform: translate(-50%,-52%) rotate(360deg); } }
.route-card-head{ display:flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.dot{ width:7px; height:7px; border-radius:50%; background: var(--text-muted); }
.dot-live{ background: var(--teal); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot{ 0%{ box-shadow: 0 0 0 0 rgba(0,229,201,0.55); } 70%{ box-shadow: 0 0 0 8px rgba(0,229,201,0); } 100%{ box-shadow: 0 0 0 0 rgba(0,229,201,0); } }

.route-svg{ width:100%; height:auto; }
.route-line{ stroke: var(--line); stroke-width: 1.4; }
.route-line--active{ stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 5; animation: dashFlow 1.4s linear infinite; }
@keyframes dashFlow{ to{ stroke-dashoffset: -22; } }

.node circle{ fill: var(--surface); stroke: var(--line); stroke-width: 1.4; transition: stroke .4s ease, fill .4s ease; }
.node text{ fill: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; text-anchor: middle; transition: fill .4s ease; }
.node--origin circle{ fill: var(--surface-2); stroke: var(--violet); }
.node--origin text{ fill: var(--text); }
.node-label-sm{ font-size: 9.5px; }
.node--winner circle{ fill: rgba(0,229,201,0.12); stroke: var(--teal); stroke-width: 2; }
.node--winner text{ fill: var(--teal); font-weight: 600; }
.packet{ fill: var(--teal); filter: drop-shadow(0 0 6px rgba(0,229,201,0.9)); }

.route-card-foot{ display:flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-stat{ display:flex; flex-direction:column; gap:2px; }
.route-stat-label{ font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; }
.route-stat-value{ font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.route-stat-value--accent{ color: var(--teal); }

.float-badge{
  position: absolute;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; color: var(--text); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge--a{ top: 6%; left: -6%; animation-delay: 0s; }
.float-badge--b{ bottom: 8%; right: -8%; animation-delay: 1.5s; }
@keyframes floatBadge{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* --- marquee --- */
.marquee{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow:hidden; padding: 18px 0; background: rgba(255,255,255,0.02); position: relative; z-index: 2; }
.marquee-track{ display:flex; gap: 60px; width: max-content; animation: marqueeScroll 24s linear infinite; }
.marquee-track span{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap; }
@keyframes marqueeScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   Section titles (shared)
   ========================================================================== */
.section-title{ font-size: clamp(26px, 3.2vw, 36px); color: var(--text); margin-top: 10px; }
.section-title--center{ text-align:center; }
.section-lede{ margin-top: 14px; font-size: 15.5px; max-width: 56ch; }
.section-lede--center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ==========================================================================
   Why us
   ========================================================================== */
.why{ padding: 90px 0; }
.why-grid{ margin-top: 46px; display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 20px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.why-card:hover{ transform: translateY(-4px); border-color: var(--violet); box-shadow: 0 20px 40px -22px rgba(124,92,255,0.5); }
.why-icon{ font-size: 26px; margin-bottom: 14px; }
.why-card h3{ font-size: 16px; margin-bottom: 8px; }
.why-card p{ font-size: 13.5px; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps{ padding: 90px 0; border-top: 1px solid var(--line); }
.steps-list{ margin-top: 48px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 22px; position: relative; overflow:hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover{ transform: translateY(-4px); border-color: var(--teal); }
.step::before{ content:""; position:absolute; inset: -1px -1px auto auto; width: 90px; height: 90px; background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 70%); }
.step-num{ display:block; font-family: var(--font-mono); font-size: 13px; color: var(--teal); margin-bottom: 14px; }
.step h3{ font-size: 19px; margin-bottom: 8px; }
.step p{ font-size: 14.5px; }

/* ==========================================================================
   Deploy / terminal boxes
   ========================================================================== */
.deploy{ padding: 90px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(124,92,255,0.03)); }
.term-grid{ margin-top: 44px; display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; width: 100%; min-width: 0; }
.term-block{ min-width: 0; }
.term-block-label{ display:flex; align-items:center; gap: 10px; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.term-index{ width: 20px; height:20px; border-radius:50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--teal); font-family: var(--font-mono); font-size: 11px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.term-box{ background: #0C0E14; border: 1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; transition: border-color .2s ease; min-width: 0; }
.term-box:hover{ border-color: var(--violet); }
.term-box-bar{ display:flex; align-items:center; gap:7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); min-width: 0; }
.term-dot{ width:9px; height:9px; border-radius:50%; background: var(--line); flex-shrink: 0; }
.term-box-title{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); margin-left: 6px; }
.copy-btn{ margin-left:auto; background: transparent; border: 1px solid var(--line); color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 6px; cursor:pointer; transition: all .18s ease; flex-shrink: 0; }
.copy-btn:hover{ color: var(--text); border-color: var(--violet); }
.copy-btn.is-copied{ color: var(--teal); border-color: var(--teal); }
.term-code{ margin:0; padding: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--teal); overflow-x:auto; min-width: 0; }

/* ==========================================================================
   Billing
   ========================================================================== */
.billing{ padding: 90px 0; border-top: 1px solid var(--line); }
.billing-grid{ margin-top: 44px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.billing-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px 22px; text-align:center; position: relative;
  display:flex; flex-direction:column; align-items:center;
  transition: transform .2s ease, border-color .2s ease;
}
.billing-card:hover{ transform: translateY(-4px); }
.billing-card--accent{ border-color: var(--teal); background: linear-gradient(180deg, rgba(0,229,201,0.06), var(--surface)); }
.billing-tag{
  position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background: var(--teal); color: #06110F; font-family: var(--font-mono); font-size: 10px;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.billing-figure{ display:block; font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.billing-card h3{ font-size: 16.5px; margin-bottom: 8px; }
.billing-card p{ font-size: 13.5px; }
.billing-note{ margin-top: 26px; text-align:center; font-size: 12.5px; color: var(--text-muted); font-style: italic; }

/* ==========================================================================
   Policies
   ========================================================================== */
.policies{ padding: 90px 0; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 80px; }
.policy-tabs{ margin: 36px auto 0; display:flex; flex-wrap: wrap; justify-content:center; gap: 10px; max-width: 820px; }
.policy-tab{
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--text-muted);
  padding: 10px 20px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  cursor:pointer; transition: all .25s cubic-bezier(0.16, 1, 0.3, 1); user-select: none;
}
.policy-tab:hover{
  border-color: var(--teal); color: var(--text); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 229, 201, 0.15);
}
.policy-tab.is-active{
  background: linear-gradient(135deg, var(--violet), var(--violet-dim)); border-color: rgba(124, 92, 255, 0.5);
  color: #fff; box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4); transform: translateY(-1px);
}

.policy-box-wrapper{
  margin: 32px auto 0; max-width: 820px; background: rgba(12, 14, 20, 0.75);
  border: 1px solid rgba(124, 92, 255, 0.22); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 35px rgba(124, 92, 255, 0.08);
  padding: 26px 28px 18px; backdrop-filter: blur(16px); position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.policy-box-wrapper:hover{
  border-color: rgba(0, 229, 201, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(0, 229, 201, 0.08);
}

.policy-panel{
  max-height: 400px; overflow-y: auto; padding-right: 10px; scroll-behavior: smooth;
  animation: policyTabFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.policy-panel.is-hidden{ display:none; }

@keyframes policyTabFade{
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.policy-group{
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; transition: all 0.22s ease;
}
.policy-group:hover{
  background: rgba(255, 255, 255, 0.038); border-color: rgba(0, 229, 201, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); transform: translateY(-1px);
}
.policy-group h3{
  font-size: 15.5px; font-weight: 600; color: var(--text); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em;
}
.policy-list{ display:flex; flex-direction:column; gap: 10px; }
.policy-list li{
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted); padding-left: 20px;
  position: relative; transition: color 0.15s ease;
}
.policy-list li:hover{ color: var(--text); }
.policy-list li::before{
  content:""; position:absolute; left:0; top: 9px; width:6px; height:6px;
  border-radius:50%; background: var(--teal); box-shadow: 0 0 8px rgba(0, 229, 201, 0.6);
}
.policy-list li strong{ color: var(--text); font-weight: 600; }

.policy-scroll-hint{
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.policy-scroll-hint .scroll-arrow{
  color: var(--teal); font-weight: 700; display: inline-block;
  animation: bounceDown 1.6s infinite ease-in-out;
}

@keyframes bounceDown{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.policy-panel::-webkit-scrollbar{ width: 6px; }
.policy-panel::-webkit-scrollbar-track{ background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
.policy-panel::-webkit-scrollbar-thumb{ background: rgba(124, 92, 255, 0.35); border-radius: 4px; }
.policy-panel::-webkit-scrollbar-thumb:hover{ background: var(--teal); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta{ padding: 100px 0; border-top: 1px solid var(--line); position: relative; overflow:hidden; }
.final-cta::before{
  content:""; position:absolute; inset:0; margin:auto; width:600px; height:300px;
  background: radial-gradient(ellipse, rgba(124,92,255,0.25), transparent 70%);
  filter: blur(40px); z-index:0;
}
.final-cta-inner{ text-align:center; position: relative; z-index:2; }
.final-cta-title{ font-size: clamp(26px, 3.6vw, 40px); max-width: 22ch; margin: 0 auto; }
.final-cta-lede{ margin-top: 16px; font-size: 15.5px; }
.final-cta .btn{ margin-top: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{ padding: 60px 0 0; border-top: 1px solid var(--line); }
.footer-inner{ display:flex; flex-wrap:wrap; gap: 32px; align-items:center; justify-content: space-between; padding-bottom: 36px; }
.footer-brand{ display:flex; align-items:center; gap: 10px; }
.footer-brand .brand-name{ font-size: 14px; }
.footer-brand .brand-sub{ font-size: 9px; }
.footer-contact{ display:flex; flex-direction:column; gap: 8px; }
.footer-link{ display:flex; align-items:center; gap: 8px; font-size: 13.5px; color: var(--text-muted); transition: color .18s ease; }
.footer-link:hover{ color: var(--teal); }
.footer-nav{ display:flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a{ font-size: 13.5px; color: var(--text-muted); }
.footer-nav a:hover{ color: var(--text); }
.footer-base{ border-top: 1px solid var(--line); padding: 18px 28px; text-align:center; font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps-list{ grid-template-columns: 1fr; }
  .term-grid{ grid-template-columns: 1fr; }
  .billing-grid{ grid-template-columns: 1fr; }
  .float-badge{ display:none; }
}

@media (max-width: 760px){
  .nav-links{ display:none; }
  .nav-auth{ display:none; }
  .nav-cta-mobile{ display:inline-flex; }
  .nav-burger{ display:flex; }
  .hero{ padding: 40px 0 0; }
  .why, .steps, .deploy, .billing, .policies, .final-cta{ padding: 60px 0; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .why-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .hero-title{ font-size: 28px; }
  .section-inner{ padding: 0 18px; }
  .nav-inner{ padding: 12px 18px; }
  .hero-stats{ gap: 22px; }
}

/* ==========================================================================
   Live Router Ticker Animation
   ========================================================================== */
.traffic-log-box {
  height: 155px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: #a5b4fc;
}
.log-line {
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  animation: logFadeIn 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 6px;
}
.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
}
.log-line-tag {
  color: var(--teal);
  font-weight: 600;
}
.log-line-success {
  color: var(--teal);
}
.log-line-warn {
  color: var(--amber);
}
.log-line-info {
  color: var(--text-muted);
}
@keyframes logFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero Visual Integrated Route Card Logs
   ========================================================================== */
.route-card-logs {
  background: rgba(8, 9, 13, 0.45);
  border-top: 1px solid var(--line);
  margin: 12px -18px 0;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: left;
}
.route-logs-title {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.route-logs-feed {
  height: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.route-log-line {
  color: var(--teal);
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  animation: logFadeIn 0.2s forwards;
}
.route-log-line.tel-accent {
  color: var(--violet);
}

/* ==========================================================================
   Interactive Workflow Switcher (Base Model vs BYOM / Retraining)
   ========================================================================== */
.workflow-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto 24px;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  background: rgba(18, 20, 29, 0.75);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.workflow-tab-btn {
  flex: 1 1 auto;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.workflow-tab-btn:hover {
  color: var(--text);
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.04);
}
.workflow-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(45, 212, 191, 0.3));
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(45, 212, 191, 0.2);
}
.workflow-view {
  display: none;
  width: 100%;
  min-width: 0;
  animation: workflowFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.workflow-view.active {
  display: block;
}
@keyframes workflowFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .workflow-nav {
    border-radius: var(--radius-md);
    flex-direction: column;
    gap: 6px;
    padding: 6px;
  }
  .workflow-tab-btn {
    border-radius: var(--radius-sm);
    width: 100%;
    padding: 10px 14px;
  }
}