/* ==========================================================
   KYTRO — design system
   Structure ported 1:1 from the reference build;
   branding, palette, type and motion are Kytro's own.
   ========================================================== */

:root{
  --accent:#15BCDF;
  --accent-hover:#3fd0ef;
  --accent-border:#0fa3c2;
  --accent-soft:rgba(21,188,223,0.12);

  --bg:#F2F1F0;
  --bg-alt:#F7F6F8;
  --surface:#FFFFFF;
  --line:#e2e1e0;
  --line-soft:#ecebea;

  --heading:#2b3033;
  --nav-link:#3a3a3a;
  --body-gray:#6b6f72;
  --muted:#9a9997;
  --dark-text:#1a1c1e;

  --up:#0fa36b;
  --down:#d0453f;

  --nav-h:71px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }

body{
  background:var(--bg);
  font-family:'Quantico','Arial Narrow',sans-serif;
  color:var(--body-gray);
  overflow-x:clip;
}

a{ color:var(--nav-link); text-decoration:none; }
a:hover{ color:#000; }

h1,h2,h3,h4{
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:0.98;
  color:var(--heading);
  margin:0;
  font-weight:700;
}

.shell{
  width:100%;
  max-width:1320px;
  margin:0 auto;
  padding:0 clamp(20px,4vw,48px);
}
.shell--narrow{ max-width:960px; }

.eyebrow{
  font-size:12px;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--accent);
}
.eyebrow .slash{ color:var(--body-gray); }

.lede{ font-size:clamp(14px,1.6vw,17px); line-height:1.7; color:var(--body-gray); }

/* ==========================================================
   MOTION
   ========================================================== */

@keyframes t-reveal{ to{ opacity:1; transform:none; } }
@keyframes t-drift{ 0%,100%{ transform:scale(1.002); } 50%{ transform:scale(1.014); } }
@keyframes t-spin-slow{ 0%{ transform:scale(1.03) rotate(0deg); } 100%{ transform:scale(1.03) rotate(360deg); } }
@keyframes t-breathe{ 0%,100%{ opacity:0.82; } 50%{ opacity:1; } }
@keyframes t-marquee{ to{ transform:translateX(-50%); } }
@keyframes t-float{ 0%,100%{ translate:0 0; } 50%{ translate:0 -5px; } }
@keyframes t-flow{ 0%{ opacity:0; translate:0; } 20%,80%{ opacity:1; } 100%{ opacity:0; translate:39px; } }
@keyframes t-flow-sm{ 0%{ opacity:0; translate:0; } 20%,80%{ opacity:1; } 100%{ opacity:0; translate:26px; } }
@keyframes t-caret{ 0%,50%{ opacity:1; } 50.01%,100%{ opacity:0; } }
@keyframes t-pulse-ring{
  0%{ box-shadow:0 0 0 0 rgba(21,188,223,0.55); }
  70%{ box-shadow:0 0 0 7px rgba(21,188,223,0); }
  100%{ box-shadow:0 0 0 0 rgba(21,188,223,0); }
}
@keyframes t-pulse-dot{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
@keyframes t-card-light{
  0%,100%{ opacity:.2; transform:translateX(-20%) rotate(0deg); }
  50%{ opacity:.8; transform:translateX(20%) rotate(4deg); }
}
@keyframes t-spin{ to{ transform:rotate(360deg); } }
@keyframes t-donut{ from{ stroke-dasharray:0 100; } }

/* scroll reveal */
.motion-ready .reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}
.motion-ready .reveal.is-in{ opacity:1; transform:none; }

.motion-ready .reveal--stagger > *{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.motion-ready .reveal--stagger.is-in > *{ opacity:1; transform:none; }
.motion-ready .reveal--stagger.is-in > :first-child{ transition-delay:40ms; }
.motion-ready .reveal--stagger.is-in > :nth-child(2){ transition-delay:100ms; }
.motion-ready .reveal--stagger.is-in > :nth-child(3){ transition-delay:160ms; }
.motion-ready .reveal--stagger.is-in > :nth-child(4){ transition-delay:220ms; }
.motion-ready .reveal--stagger.is-in > :nth-child(n+5){ transition-delay:280ms; }

/* entry reveal (above the fold, no observer wait) */
.motion-reveal{
  opacity:0;
  animation:t-reveal .68s cubic-bezier(.22,1,.36,1) forwards;
}
.motion-reveal--1{ animation-delay:60ms; }
.motion-reveal--2{ animation-delay:140ms; }
.motion-reveal--3{ animation-delay:220ms; }
.motion-reveal--4{ animation-delay:300ms; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .motion-ready .reveal,
  .motion-ready .reveal--stagger > *{ opacity:1 !important; transform:none !important; }
  .motion-reveal{ opacity:1 !important; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.cta-wrap{ display:inline-flex; align-items:center; }
.cta-trail{ width:22px; height:1px; background:var(--dark-text); flex:none; }

.btn-cta{
  display:inline-block;
  background:var(--accent);
  border:1px solid var(--accent-border);
  color:var(--dark-text);
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:0.14em;
  padding:18px 34px;
  font-size:clamp(13px,2.2vw,16px);
  font-family:inherit;
  cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow:0 0 0 1px rgba(21,188,223,0.35), 0 10px 30px -12px rgba(15,163,194,0.6);
  transition:background .2s ease, box-shadow .2s ease;
}
.btn-cta:hover{
  background:var(--accent-hover);
  box-shadow:0 0 0 1px rgba(21,188,223,0.55), 0 14px 36px -10px rgba(15,163,194,0.8);
}

.btn-ghost{
  display:inline-block;
  background:transparent;
  border:1px solid var(--heading);
  color:var(--heading);
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:0.14em;
  padding:18px 32px;
  font-size:clamp(13px,2.2vw,16px);
  font-family:inherit;
  cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition:background .2s ease, color .2s ease;
}
.btn-ghost:hover{ background:var(--heading); color:var(--bg); }

.btn-sm{
  background:var(--accent);
  border:1px solid var(--accent-border);
  color:var(--dark-text);
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:0.12em;
  padding:11px 22px;
  font-size:12px;
  font-family:inherit;
  cursor:pointer;
  white-space:nowrap;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:background .2s ease;
}
.btn-sm:hover{ background:var(--accent-hover); }

.btn-sm-alt{
  background:transparent;
  border:1px solid var(--line);
  color:var(--heading);
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:0.12em;
  padding:11px 22px;
  font-size:12px;
  font-family:inherit;
  cursor:pointer;
  white-space:nowrap;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:background .2s ease, border-color .2s ease;
}
.btn-sm-alt:hover{ background:var(--surface); border-color:var(--heading); }

.link-slash{
  font-size:14px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--nav-link);
  white-space:nowrap;
}
.link-slash .slash{ color:var(--accent); margin-right:8px; }
.link-slash:hover{ color:var(--accent); }

/* ==========================================================
   NAV
   ========================================================== */

.site-nav{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(242,241,240,0.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, background .2s ease;
}
.site-nav.scrolled{ border-bottom-color:var(--line); background:rgba(242,241,240,0.94); }

.nav-inner{ display:flex; align-items:center; gap:clamp(16px,2.4vw,36px); padding:16px 0; }

.nav-logo{ display:flex; align-items:center; gap:11px; flex:none; }
/* Angular N — the diagonal sits at the same 45° as the chamfer
   that runs through every button and card. */
.logo-mark{
  width:38px; height:38px;
  flex:none;
  display:block;
}
.logo-mark svg{ display:block; width:100%; height:100%; }
.logo-mark .plate{ fill:#111; transition:fill .2s ease; }
.logo-mark .stem,
.logo-mark .stemArm{ fill:#fff; transition:fill .2s ease; }
.logo-mark .bar{ fill:var(--accent); transition:fill .2s ease; }

.nav-logo:hover .logo-mark .plate{ fill:var(--accent); }
.nav-logo:hover .logo-mark .stem,
.nav-logo:hover .logo-mark .stemArm{ fill:var(--dark-text); }
.nav-logo:hover .logo-mark .bar{ fill:#fff; }
.logo-word{
  font-size:clamp(22px,5vw,28px);
  font-weight:400;
  color:#111;
  letter-spacing:-0.5px;
  text-transform:lowercase;
  line-height:1;
}

.nav-links{
  display:flex; align-items:center; gap:28px;
  list-style:none; margin:0 0 0 clamp(10px,3vw,40px); padding:0;
}
.nav-links a{
  font-weight:700; font-size:13px; letter-spacing:0.06em;
  color:var(--nav-link); white-space:nowrap; text-transform:uppercase;
}
.nav-links a:hover, .nav-links a.is-active{ color:var(--accent); }
.caret{ display:inline-block; margin-left:6px; font-size:9px; vertical-align:middle; }

.nav-right{ display:flex; align-items:center; gap:12px; margin-left:auto; }

.token-pill{
  display:inline-flex; align-items:center; gap:9px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:9px 14px;
  font-size:12px; font-weight:700; letter-spacing:0.04em;
  color:var(--heading); white-space:nowrap;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.token-pill .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--accent);
  animation:t-pulse-ring 2s ease-out infinite;
}
.token-pill .chg{ color:var(--up); }

.hamburger{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:30px; height:30px;
  background:transparent; border:none; cursor:pointer; padding:0;
  margin-left:auto;
}
.hamburger span{ display:block; width:22px; height:2px; background:var(--dark-text); }

.mobile-menu{
  display:none;
  border-top:1px solid var(--line);
  background:var(--bg);
  padding:22px clamp(20px,4vw,48px) 28px;
}
.mobile-menu.open{ display:block; }
.mobile-menu ul{ display:flex; flex-direction:column; gap:18px; list-style:none; margin:0 0 22px; padding:0; }
.mobile-menu a{
  color:var(--dark-text); font-weight:700; text-transform:uppercase;
  letter-spacing:0.06em; font-size:15px;
}
.mobile-menu .m-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ==========================================================
   HOME HERO
   ========================================================== */

.hero{
  position:relative;
  min-height:calc(100svh - var(--nav-h));
  background:var(--bg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.hero-video{
  position:absolute;
  pointer-events:none;
  object-fit:contain;
  height:auto;
  z-index:0;
  top:0; right:-20%;
  width:99%;
  animation:t-drift 18s ease-in-out infinite;
  transform:translateZ(0);
}
.hero-scrim{
  position:absolute; top:0; left:0;
  width:70%; height:100%;
  background:linear-gradient(90deg, #F2F1F0 0%, #F2F1F0 55%, rgba(242,241,240,0.85) 78%, rgba(242,241,240,0) 100%);
  pointer-events:none;
  z-index:1;
  animation:t-breathe 9s ease-in-out infinite;
}

.hero-body{ position:relative; z-index:2; flex:1; display:flex; flex-direction:column; justify-content:center; }

.headline{
  padding:min(clamp(30px,6vw,90px),7vh) 20px min(clamp(24px,4vw,44px),5vh) clamp(20px,9vw,118px);
  font-size:min(clamp(34px,7.2vw,76px), 8.6vh);
}
.headline .indent{ display:block; margin-left:min(238px,28vw); }
.headline .accent{ color:var(--accent); }

.hero-copy{
  position:relative; z-index:2;
  max-width:460px;
  margin:0 0 30px calc(clamp(20px,9vw,118px) + min(238px,28vw));
  font-size:clamp(14px,1.6vw,17px);
  line-height:1.7;
}

.hero-actions{
  position:relative; z-index:2;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding-left:calc(clamp(20px,9vw,118px) + min(238px,28vw));
  padding-bottom:min(clamp(30px,5vw,64px),6vh);
}

.live-panel{
  position:absolute;
  right:clamp(20px,4vw,48px);
  bottom:clamp(26px,5vw,64px);
  z-index:3;
  width:min(330px,80vw);
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--line);
  padding:16px 18px;
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.live-head{
  display:flex; align-items:center; gap:8px;
  font-size:10px; font-weight:700; letter-spacing:0.18em;
  color:var(--body-gray); text-transform:uppercase;
  margin-bottom:12px;
}
.live-head .dot{
  width:6px; height:6px; border-radius:50%; background:var(--accent);
  animation:t-pulse-ring 1.9s ease-out infinite;
}
.live-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:7px 0;
  font-size:11px; letter-spacing:0.04em;
  border-top:1px solid var(--line);
}
.live-row:first-of-type{ border-top:none; }
.live-row .net{ color:var(--heading); font-weight:700; }
.live-row .region{ color:var(--body-gray); font-size:10px; letter-spacing:0.12em; }
.live-row .ms{ color:var(--accent); font-weight:700; }

/* ==========================================================
   SUBPAGE HERO
   ========================================================== */

/* Split header: index number + rule on the left, title and lede on the right */
.subhero{
  position:relative;
  background:var(--bg);
  padding:clamp(44px,6vw,76px) 0 clamp(36px,4.5vw,58px);
  border-bottom:1px solid var(--line);
}
.subhero-grid{
  display:grid;
  grid-template-columns:minmax(120px,190px) 1fr;
  gap:clamp(20px,4vw,56px);
  align-items:start;
}
.subhero-index{
  border-top:2px solid var(--accent);
  padding-top:14px;
}
.subhero-index .num{
  font-size:clamp(26px,3.4vw,40px);
  font-weight:700;
  color:var(--heading);
  line-height:1;
  letter-spacing:0.01em;
}
.subhero-index .tag{
  display:block;
  border:none;
  padding:0;
  margin-top:10px;
  font-size:10px;
  letter-spacing:0.2em;
  color:var(--body-gray);
}
.subhero h1{ font-size:clamp(32px,5.4vw,62px); max-width:15ch; }
.subhero .lede{ max-width:600px; margin-top:22px; }
.subhero-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:30px; }

@media (max-width:700px){
  .subhero-grid{ grid-template-columns:1fr; gap:20px; }
  .subhero h1{ max-width:none; }
}

/* ==========================================================
   MARQUEE + TICKER
   ========================================================== */

.marquee{
  position:relative; z-index:2;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--bg);
  overflow:hidden;
  padding:22px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.marquee-track{
  display:flex;
  gap:clamp(40px,6vw,80px);
  width:max-content;
  animation:t-marquee 38s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-item{
  font-size:clamp(14px,1.8vw,19px);
  font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:#b9b8b7; white-space:nowrap;
  transition:color .2s ease;
}
.marquee-item:hover{ color:var(--heading); }

.ticker{ border-bottom:1px solid var(--line); background:var(--bg-alt); overflow:hidden; }
.ticker-inner{
  display:flex; align-items:center; gap:clamp(22px,4vw,54px);
  padding:13px 0; overflow-x:auto; scrollbar-width:none;
}
.ticker-inner::-webkit-scrollbar{ display:none; }
.tick{ display:inline-flex; align-items:center; gap:8px; font-size:12px; letter-spacing:0.04em; white-space:nowrap; }
.tick .sym{
  width:20px; height:20px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:9px; font-weight:700; color:#fff; flex:none;
  animation:t-float 5s ease-in-out infinite;
}
.tick:nth-child(2n) .sym{ animation-delay:-1.2s; }
.tick:nth-child(3n) .sym{ animation-delay:-2.4s; }
.tick .px{ color:var(--heading); font-weight:700; }
.tick .chg{ font-weight:700; }
.chg.up{ color:var(--up); }
.chg.down{ color:var(--down); }

/* ==========================================================
   FLOW SECTION (video + copy)
   ========================================================== */

.flow{
  display:flex; flex-wrap:wrap; align-items:center; gap:40px;
  background:linear-gradient(180deg, #F2F1F0 0%, #F7F6F8 18%, #F7F6F8 100%);
  padding:clamp(60px,10vw,140px) 0 clamp(40px,6vw,80px) clamp(20px,9vw,118px);
}
.flow-left{ flex:1 1 420px; min-width:300px; }
.flow-heading{ font-size:clamp(34px,6.5vw,72px); }
.flow-heading .indent{ display:block; margin-left:min(160px,18vw); color:var(--accent); }
.flow-text{ max-width:520px; margin:32px 0 0 min(160px,18vw); font-size:clamp(14px,1.6vw,17px); line-height:1.7; }
.flow-links{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; margin:34px 0 0 min(160px,18vw); }
.flow-right{ flex:1 1 360px; min-width:280px; display:flex; justify-content:flex-end; position:relative; }
.flow-video-wrap{ position:relative; width:100%; max-width:644px; animation:t-drift 18s ease-in-out infinite; }
.flow-video{ display:block; width:100%; max-width:644px; height:auto; }
.flow-overlay{
  position:absolute; top:0; right:0;
  width:100%; max-width:644px; height:100%;
  background:var(--accent);
  mix-blend-mode:hue;
  pointer-events:none;
  z-index:1;
  animation:t-breathe 9s ease-in-out infinite;
}

/* ==========================================================
   STEP CARDS
   ========================================================== */

.steps{ background:var(--bg-alt); padding:clamp(30px,5vw,60px) 0 clamp(70px,10vw,130px); }
.step-card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  padding:clamp(26px,3.6vw,46px);
  margin-bottom:20px;
  display:flex; flex-wrap:wrap; gap:clamp(24px,4vw,60px);
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition:border-color .25s ease, transform .25s ease;
  overflow:hidden;
}
.step-card::after{
  content:'';
  position:absolute; top:-60%; left:0;
  width:40%; height:220%;
  background:linear-gradient(90deg, rgba(21,188,223,0) 0%, rgba(21,188,223,0.10) 50%, rgba(21,188,223,0) 100%);
  animation:t-card-light 8s ease-in-out infinite;
  pointer-events:none;
}
.step-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.step-main{ flex:1 1 420px; min-width:280px; position:relative; z-index:1; }
.step-card h3{ font-size:clamp(24px,3.4vw,38px); margin:16px 0 14px; }
.step-card p{ margin:0; font-size:clamp(14px,1.5vw,16px); line-height:1.7; max-width:480px; }

.chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.chip{
  border:1px solid var(--line);
  background:var(--bg);
  padding:7px 13px;
  font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--heading);
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.status-row{ margin-top:24px; max-width:420px; }
.status-line{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 0; border-top:1px solid var(--line);
  font-size:13px; letter-spacing:0.04em;
}
.status-line:first-child{ border-top:none; }
.status-line .label{ color:var(--heading); font-weight:700; }
.status-line .state{ color:var(--accent); font-size:11px; font-weight:700; letter-spacing:0.16em; }

.step-list{ flex:0 1 300px; min-width:240px; list-style:none; margin:0; padding:0; align-self:center; position:relative; z-index:1; }
.step-list li{ padding:11px 0; border-top:1px solid var(--line); font-size:14px; line-height:1.5; }
.step-list li:first-child{ border-top:none; }
.step-list .slash{ color:var(--accent); font-weight:700; margin-right:9px; }

/* flow connector with travelling particle */
.connector{
  position:relative;
  height:1px;
  background:var(--line);
  margin:0 12px;
  flex:1 1 40px;
  min-width:40px;
}
.connector b{
  position:absolute; top:-2px; left:0;
  width:5px; height:5px; border-radius:50%;
  background:var(--accent);
  animation:t-flow 2.2s linear infinite;
}

/* ==========================================================
   CARDS + GRIDS
   ========================================================== */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:20px;
  margin:clamp(40px,5vw,60px) 0 0;
}
.info-card{
  background:var(--surface);
  border:1px solid var(--line);
  padding:clamp(24px,2.6vw,32px);
  clip-path:polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition:border-color .25s ease, transform .25s ease;
}
.info-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.info-card h3{ font-size:clamp(20px,2.4vw,27px); margin:14px 0 12px; }
.info-card p{ margin:0; font-size:14px; line-height:1.7; }

.stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:clamp(32px,4vw,48px);
}
.stat{ background:var(--surface); padding:22px 20px; }
.stat .k{ font-size:11px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--body-gray); }
.stat .v{ font-size:clamp(18px,2.4vw,26px); font-weight:700; color:var(--heading); margin-top:10px; letter-spacing:0.01em; }
.stat .v.accent{ color:var(--accent); }

/* ==========================================================
   TABS
   ========================================================== */

.tabs{ display:flex; flex-wrap:wrap; gap:10px; margin:clamp(34px,4vw,46px) 0 24px; }
.tab{
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--nav-link);
  font-family:inherit;
  font-size:12px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  padding:12px 20px;
  cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.tab:hover{ border-color:var(--accent); color:var(--heading); }
.tab.active{ background:var(--accent); border-color:var(--accent-border); color:var(--dark-text); }

.panel{
  background:var(--surface);
  border:1px solid var(--line);
  padding:clamp(26px,3.6vw,48px);
  display:none;
  flex-wrap:wrap;
  gap:clamp(24px,4vw,60px);
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.panel.active{ display:flex; animation:t-reveal .5s cubic-bezier(.22,1,.36,1) backwards; }
.panel-left{ flex:1 1 360px; min-width:260px; }
.panel-left h3{ font-size:clamp(24px,3.2vw,36px); margin:16px 0 14px; }
.panel-left p{ margin:0; font-size:15px; line-height:1.7; max-width:420px; }
.panel-right{ flex:1 1 320px; min-width:260px; }
.svc{ padding:13px 0; border-top:1px solid var(--line); }
.svc:first-of-type{ border-top:none; }
.svc .id{ font-size:14px; font-weight:700; color:var(--heading); letter-spacing:0.02em; }
.svc .desc{ font-size:12px; color:var(--body-gray); margin-top:3px; }
.panel-foot{ flex:1 1 100%; border-top:1px solid var(--line); padding-top:20px; }

/* ==========================================================
   MODEL BOARD — live grid of what is running right now
   ========================================================== */

.board{ background:var(--bg); padding:clamp(56px,7vw,96px) 0; border-top:1px solid var(--line); }
.board-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; flex-wrap:wrap; margin-bottom:clamp(28px,3vw,40px);
}
.board-head h2{ font-size:clamp(26px,4vw,44px); }
.board-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.board-cell{
  background:var(--surface);
  padding:20px 22px;
  position:relative;
  transition:background .2s ease;
}
.board-cell:hover{ background:var(--bg-alt); }
.board-cell .prov{ font-size:10px; letter-spacing:0.18em; text-transform:uppercase; color:var(--body-gray); }
.board-cell .mid{ font-size:15px; font-weight:700; color:var(--heading); margin-top:9px; letter-spacing:0.01em; }
.board-cell .foot{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-top:16px; }
.board-cell .cost{ font-size:13px; font-weight:700; color:var(--accent); }
.board-cell .lat{ font-size:11px; color:var(--muted); letter-spacing:0.06em; }
.spark{ display:flex; align-items:flex-end; gap:2px; height:22px; margin-top:14px; }
.spark i{
  flex:1;
  background:var(--accent);
  opacity:.28;
  min-height:2px;
  transition:height .5s ease, opacity .5s ease;
}
.spark i:last-child{ opacity:.85; }

/* ==========================================================
   ROUTER — pick an outcome, get a matched model + live estimate
   ========================================================== */

.router{ background:var(--bg-alt); padding:clamp(64px,8vw,112px) 0; border-top:1px solid var(--line); }
.router-shell{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(280px,1.1fr);
  gap:clamp(24px,3vw,48px);
  margin-top:clamp(32px,4vw,52px);
  align-items:start;
}
.router-opts{ display:flex; flex-direction:column; gap:10px; }
.router-opt{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:17px 20px;
  cursor:pointer;
  font-family:inherit;
  text-align:left;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.router-opt .lbl{ font-size:14px; font-weight:700; color:var(--heading); text-transform:uppercase; letter-spacing:0.05em; }
.router-opt .arrow{ color:var(--line); font-size:16px; transition:color .18s ease, transform .18s ease; }
.router-opt:hover{ border-color:var(--accent); transform:translateX(3px); }
.router-opt:hover .arrow{ color:var(--accent); }
.router-opt.on{ border-color:var(--accent-border); background:var(--accent); }
.router-opt.on .lbl{ color:var(--dark-text); }
.router-opt.on .arrow{ color:var(--dark-text); transform:translateX(3px); }

.router-out{
  border:1px solid var(--line);
  background:var(--surface);
  padding:clamp(24px,2.8vw,34px);
  clip-path:polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.router-out h3{ font-size:clamp(20px,2.6vw,28px); margin:12px 0 10px; }
.router-out .why{ font-size:14px; line-height:1.7; margin:0 0 20px; }
.router-pick{ border-top:1px solid var(--line); padding:14px 0; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.router-pick .mid{ font-size:14px; font-weight:700; color:var(--heading); }
.router-pick .note{ font-size:11px; color:var(--muted); margin-top:3px; letter-spacing:0.04em; }
.router-pick .price{ font-size:13px; font-weight:700; color:var(--accent); white-space:nowrap; }
.router-est{
  margin-top:20px; padding-top:18px; border-top:2px solid var(--accent);
  display:flex; align-items:baseline; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.router-est .k{ font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--body-gray); font-weight:700; }
.router-est .v{ font-size:clamp(22px,3vw,30px); font-weight:700; color:var(--heading); }

@media (max-width:820px){ .router-shell{ grid-template-columns:1fr; } }

/* ==========================================================
   PIPELINE — horizontal three-stage balance explainer
   ========================================================== */

.pipeline{ background:var(--bg); padding:clamp(64px,8vw,112px) 0; border-top:1px solid var(--line); }
.pipe-row{
  display:flex; align-items:stretch; gap:0;
  margin-top:clamp(34px,4vw,54px);
  flex-wrap:wrap;
}
.pipe-stage{
  flex:1 1 240px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:clamp(22px,2.6vw,30px);
  position:relative;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.pipe-stage h3{ font-size:clamp(18px,2.2vw,24px); margin:14px 0 11px; }
.pipe-stage p{ margin:0; font-size:13px; line-height:1.7; }
.pipe-stage .marker{
  position:absolute; top:0; left:0;
  width:44px; height:3px; background:var(--accent);
}
.pipe-link{
  flex:0 0 54px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.pipe-link::before{
  content:''; position:absolute; left:8px; right:8px; height:1px; background:var(--line);
}
.pipe-link b{
  position:absolute; left:8px;
  width:6px; height:6px; border-radius:50%;
  background:var(--accent);
  animation:t-flow 2.2s linear infinite;
}
@media (max-width:820px){
  .pipe-link{ flex:0 0 100%; height:40px; }
  .pipe-link::before{ left:50%; right:auto; top:6px; bottom:6px; width:1px; height:auto; }
  .pipe-link b{ left:calc(50% - 2.5px); top:4px; animation:t-flow-v 2.2s linear infinite; }
}
@keyframes t-flow-v{ 0%{ opacity:0; translate:0 0; } 20%,80%{ opacity:1; } 100%{ opacity:0; translate:0 26px; } }

/* ==========================================================
   COMPARE STRIP — subscriptions vs per-use, inline
   ========================================================== */

.vs{ background:var(--bg-alt); padding:clamp(64px,8vw,112px) 0; border-top:1px solid var(--line); }
.vs-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:clamp(18px,2.4vw,32px);
  align-items:center;
  margin-top:clamp(32px,4vw,50px);
}
.vs-card{
  border:1px solid var(--line);
  background:var(--surface);
  padding:clamp(24px,3vw,38px);
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.vs-card.win{ border-color:var(--accent); }
.vs-card .k{ font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--body-gray); font-weight:700; }
.vs-card .amount{ font-size:clamp(34px,6vw,58px); font-weight:700; color:var(--heading); line-height:1; margin-top:14px; }
.vs-card.win .amount{ color:var(--accent); }
.vs-card .sub{ font-size:13px; margin-top:12px; line-height:1.6; }
.vs-mid{ font-size:12px; font-weight:700; letter-spacing:0.18em; color:var(--body-gray); text-transform:uppercase; }
.vs-controls{ margin-top:clamp(28px,3vw,40px); display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.vs-controls .range-val{ min-width:auto; font-size:clamp(18px,2.4vw,24px); }
@media (max-width:760px){
  .vs-grid{ grid-template-columns:1fr; }
  .vs-mid{ text-align:center; }
}

/* ==========================================================
   FAQ COLUMNS
   ========================================================== */

.faq-cols{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:clamp(24px,3vw,44px); }
.faq-col h3{ font-size:14px; letter-spacing:0.16em; color:var(--accent); margin-bottom:6px; }

/* ==========================================================
   WALLET MODAL
   ========================================================== */

.wm{ position:fixed; inset:0; z-index:200; display:none; }
.wm.open{ display:block; }
.wm-backdrop{
  position:absolute; inset:0;
  background:rgba(26,28,30,0.55);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  animation:t-reveal .2s ease forwards;
}
.wm-panel{
  position:relative;
  width:min(420px,calc(100vw - 40px));
  margin:14vh auto 0;
  background:var(--surface);
  border:1px solid var(--line);
  padding:clamp(24px,3vw,32px);
  clip-path:polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  opacity:0;
  transform:translateY(12px);
  animation:t-reveal .34s cubic-bezier(.22,1,.36,1) .04s forwards;
}
.wm-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.wm-head h3{ font-size:clamp(19px,2.4vw,24px); margin-top:10px; }
.wm-x{
  background:transparent; border:none; cursor:pointer;
  font-size:26px; line-height:1; color:var(--body-gray);
  font-family:inherit; padding:0 2px;
}
.wm-x:hover{ color:var(--heading); }
.wm-body{ display:flex; flex-direction:column; gap:10px; }
.wm-opt{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  width:100%;
  border:1px solid var(--line);
  background:var(--bg-alt);
  padding:16px 18px;
  cursor:pointer;
  font-family:inherit;
  text-align:left;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.wm-opt:hover:not(:disabled){ border-color:var(--accent); transform:translateX(3px); }
.wm-opt:disabled{ opacity:.6; cursor:default; }
.wm-name{ font-size:14px; font-weight:700; color:var(--heading); text-transform:uppercase; letter-spacing:0.05em; }
.wm-go{ font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--accent); }
.wm-empty p{ margin:0 0 16px; font-size:14px; line-height:1.7; }
.wm-links{ display:flex; flex-direction:column; gap:10px; }
.wm-note{ margin:22px 0 0; font-size:12px; line-height:1.65; color:var(--muted); }
.wm-note.is-err{ color:var(--down); }

/* connected state on the nav button */
[data-wallet-btn].is-connected{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}

/* ==========================================================
   LIVE DATA STATES
   ========================================================== */

.chg.pending{ color:var(--muted); }

.is-loading{
  color:var(--muted) !important;
  position:relative;
}
.is-loading::after{
  content:'';
  display:inline-block;
  width:9px; height:9px;
  margin-left:8px;
  border:1.5px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:t-spin .8s linear infinite;
  vertical-align:middle;
}

.stat .v.pending{ color:var(--muted); font-size:clamp(14px,1.7vw,17px); }

.data-note{
  display:flex; align-items:center; gap:9px;
  margin-top:18px;
  font-size:12px; color:var(--muted); letter-spacing:0.04em;
}
.data-note .dot{
  width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none;
  animation:t-pulse-ring 2s ease-out infinite;
}
.data-note .dot.off{ background:var(--muted); animation:none; }

.verdict{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  padding:6px 11px;
  border:1px solid var(--line);
}
.verdict.good{ border-color:var(--up); color:var(--up); }
.verdict.bad{ border-color:var(--down); color:var(--down); }
.verdict.unknown{ color:var(--muted); }

/* ==========================================================
   FILTERS + TABLE (models / pricing)
   ========================================================== */

.filter-bar{ display:flex; flex-wrap:wrap; gap:clamp(24px,3vw,44px); margin:clamp(32px,4vw,48px) 0 0; }
.facet{ flex:1 1 240px; min-width:220px; }
.facet h4{ font-size:11px; letter-spacing:0.16em; color:var(--body-gray); margin:0 0 4px; }
.facet .hint{ font-size:12px; color:var(--muted); margin-bottom:12px; }
.facet-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.facet-opt{
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--nav-link);
  font-family:inherit;
  font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  padding:8px 13px;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:7px;
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.facet-opt .n{ color:var(--muted); font-size:10px; }
.facet-opt:hover{ border-color:var(--accent); }
.facet-opt.active{ background:var(--accent); border-color:var(--accent-border); color:var(--dark-text); }
.facet-opt.active .n{ color:var(--dark-text); opacity:.7; }

.toolbar{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
  margin:clamp(28px,3vw,40px) 0 18px;
}
.search-input{
  flex:1 1 260px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:13px 16px;
  font-family:inherit;
  font-size:13px;
  color:var(--heading);
  letter-spacing:0.04em;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.search-input::placeholder{ color:var(--muted); text-transform:uppercase; letter-spacing:0.1em; font-size:12px; }
.search-input:focus{ outline:none; border-color:var(--accent); }

.select{
  border:1px solid var(--line);
  background:var(--surface);
  padding:13px 16px;
  font-family:inherit;
  font-size:12px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--heading);
  cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.select:focus{ outline:none; border-color:var(--accent); }

.result-count{ font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--body-gray); margin-bottom:16px; }
.result-count b{ color:var(--heading); }

.table-wrap{ border:1px solid var(--line); background:var(--surface); overflow-x:auto; }
table.data{ width:100%; border-collapse:collapse; min-width:680px; }
table.data th{
  text-align:left;
  font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--body-gray);
  padding:15px 18px;
  border-bottom:1px solid var(--line);
  background:var(--bg-alt);
  white-space:nowrap;
}
table.data td{
  padding:15px 18px;
  border-bottom:1px solid var(--line-soft);
  font-size:13px;
  color:var(--body-gray);
  vertical-align:middle;
}
table.data tr:last-child td{ border-bottom:none; }
table.data tr:hover td{ background:var(--bg-alt); }
table.data .name{ color:var(--heading); font-weight:700; font-size:14px; }
table.data .sub{ font-size:11px; color:var(--muted); margin-top:3px; letter-spacing:0.06em; }
table.data .num{ color:var(--heading); font-weight:700; white-space:nowrap; }
.tag{
  display:inline-block;
  font-size:10px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  padding:4px 9px;
  border:1px solid var(--line);
  color:var(--body-gray);
  white-space:nowrap;
}
.tag.live{ border-color:var(--accent); color:var(--accent); }
.run-link{ color:var(--accent); font-weight:700; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; white-space:nowrap; }
.run-link:hover{ color:var(--accent-hover); }

/* ==========================================================
   FAQ
   ========================================================== */

.faq{ background:var(--bg); padding:clamp(70px,10vw,140px) 0; border-top:1px solid var(--line); }
.faq-head{ text-align:center; margin-bottom:clamp(40px,5vw,64px); }
.faq-head h2{ font-size:clamp(34px,6.5vw,64px); }
.faq-head p{ max-width:560px; margin:22px auto 0; font-size:clamp(14px,1.6vw,17px); line-height:1.7; }

.faq-list{ max-width:860px; margin:0 auto; }
.faq-item{ border-top:1px solid var(--line); }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:transparent; border:none;
  font-family:inherit;
  font-size:clamp(15px,1.9vw,19px);
  font-weight:700;
  color:var(--heading);
  text-align:left;
  padding:24px 0;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:0.03em;
}
.faq-q:hover{ color:var(--accent); }
.faq-q .mark{ color:var(--accent); font-size:20px; flex:none; transition:transform .25s ease; }
.faq-item.open .faq-q .mark{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.open .faq-a{ max-height:420px; }
.faq-a p{ margin:0 0 24px; font-size:15px; line-height:1.75; max-width:680px; }

/* ==========================================================
   CODE
   ========================================================== */

.code{
  background:#1a1c1e;
  color:#e8f6fa;
  border:1px solid #2a2d30;
  padding:20px 22px;
  font-family:'Quantico',ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px;
  line-height:1.75;
  overflow-x:auto;
  white-space:pre;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  margin:20px 0 0;
}
.code .c{ color:#7d8a8f; }
.code .s{ color:var(--accent); }
.kv{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:18px; font-size:13px; }
.kv .k{ color:var(--body-gray); letter-spacing:0.12em; text-transform:uppercase; font-size:11px; font-weight:700; }
.kv .v{ color:var(--heading); font-weight:700; }

/* ==========================================================
   CALCULATOR
   ========================================================== */

.calc-step{ margin-top:clamp(36px,4vw,56px); }
.calc-step > h3{ font-size:clamp(17px,2.2vw,23px); margin-bottom:20px; }
.calc-step > h3 .n{ color:var(--accent); margin-right:10px; }

.sub-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.sub-opt{
  border:1px solid var(--line);
  background:var(--surface);
  padding:16px 18px;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:border-color .18s ease, background .18s ease;
}
.sub-opt .nm{ font-size:13px; font-weight:700; color:var(--heading); text-transform:uppercase; letter-spacing:0.04em; }
.sub-opt .pr{ font-size:12px; color:var(--body-gray); white-space:nowrap; }
.sub-opt:hover{ border-color:var(--accent); }
.sub-opt.on{ border-color:var(--accent); background:var(--accent-soft); }
.sub-opt.on .pr{ color:var(--accent); font-weight:700; }

.range-row{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:6px; }
input[type=range]{
  flex:1 1 260px;
  -webkit-appearance:none; appearance:none;
  height:2px; background:var(--line); outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px; background:var(--accent);
  border:1px solid var(--accent-border); cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
input[type=range]::-moz-range-thumb{
  width:18px; height:18px; background:var(--accent);
  border:1px solid var(--accent-border); cursor:pointer; border-radius:0;
}
.range-val{ font-size:clamp(22px,3vw,32px); font-weight:700; color:var(--heading); min-width:90px; }

.seg{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.seg button{
  border:1px solid var(--line); background:var(--surface);
  font-family:inherit; font-size:11px; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  color:var(--nav-link); padding:9px 16px; cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition:background .18s ease, color .18s ease;
}
.seg button.on{ background:var(--accent); border-color:var(--accent-border); color:var(--dark-text); }

.calc-result{
  margin-top:clamp(40px,5vw,60px);
  background:var(--surface);
  border:1px solid var(--line);
  padding:clamp(28px,3.4vw,44px);
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.calc-big{ font-size:clamp(40px,8vw,84px); font-weight:700; color:var(--accent); line-height:1; letter-spacing:0.01em; }
.calc-sub{ font-size:14px; margin-top:14px; }
.calc-lines{ margin-top:26px; max-width:460px; }
.calc-line{
  display:flex; justify-content:space-between; gap:16px;
  padding:12px 0; border-top:1px solid var(--line); font-size:14px;
}
.calc-line:first-child{ border-top:none; }
.calc-line .lbl{ color:var(--heading); font-weight:700; }
.calc-line .amt{ color:var(--heading); font-weight:700; }
.calc-note{ font-size:12px; color:var(--muted); margin-top:22px; line-height:1.7; max-width:560px; }

/* ==========================================================
   CHAT
   ========================================================== */

.chat-wrap{ display:flex; gap:20px; flex-wrap:wrap; padding:clamp(28px,4vw,48px) 0 clamp(60px,8vw,100px); }
.chat-side{ flex:0 1 260px; min-width:220px; }
.chat-main{ flex:1 1 560px; min-width:300px; }
.chat-box{
  background:var(--surface); border:1px solid var(--line);
  padding:clamp(20px,2.4vw,28px);
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.chat-thread{ min-height:280px; display:flex; flex-direction:column; gap:16px; margin-bottom:20px; }
.msg{ max-width:82%; font-size:14px; line-height:1.7; padding:14px 17px; border:1px solid var(--line); }
.msg.me{ align-self:flex-end; background:var(--accent-soft); border-color:var(--accent); color:var(--heading); }
.msg.ai{ align-self:flex-start; background:var(--bg-alt); }
.msg .who{ font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--body-gray); margin-bottom:7px; }
.typing i{
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background:var(--accent); margin-right:4px;
  animation:t-pulse-dot 1s ease infinite;
}
.typing i:nth-child(2){ animation-delay:.15s; }
.typing i:nth-child(3){ animation-delay:.3s; }
.chat-input-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chat-input{
  flex:1 1 300px; border:1px solid var(--line); background:var(--bg-alt);
  padding:15px 17px; font-family:inherit; font-size:14px; color:var(--heading);
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.chat-input:focus{ outline:none; border-color:var(--accent); }
.starter-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin-top:18px; }
.starter-grid button{
  position:relative; overflow:hidden;
  border:1px solid var(--line); background:var(--bg-alt);
  padding:14px 16px; text-align:left; cursor:pointer;
  font-family:inherit; font-size:13px; color:var(--heading);
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition:border-color .2s ease;
}
.starter-grid button:hover{ border-color:var(--accent); }
.starter-grid button::after{
  content:''; position:absolute; top:-60%; left:0; width:40%; height:220%;
  background:linear-gradient(90deg, rgba(21,188,223,0) 0%, rgba(21,188,223,0.12) 50%, rgba(21,188,223,0) 100%);
  animation:t-card-light 8s ease-in-out infinite; pointer-events:none;
}
.model-pick{ display:flex; flex-direction:column; gap:8px; }
.model-pick button{
  border:1px solid var(--line); background:var(--surface);
  padding:12px 14px; text-align:left; cursor:pointer; font-family:inherit;
  clip-path:polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition:border-color .18s ease, background .18s ease;
}
.model-pick button .id{ font-size:13px; font-weight:700; color:var(--heading); }
.model-pick button .cr{ font-size:11px; color:var(--muted); margin-top:3px; }
.model-pick button:hover{ border-color:var(--accent); }
.model-pick button.on{ border-color:var(--accent); background:var(--accent-soft); }

/* ==========================================================
   PROSE (docs / legal / learn)
   ========================================================== */

.prose{ padding:clamp(48px,6vw,80px) 0 clamp(70px,9vw,120px); max-width:820px; }
.prose h2{ font-size:clamp(22px,3vw,32px); margin:clamp(38px,4vw,56px) 0 16px; }
.prose h3{ font-size:clamp(17px,2.2vw,22px); margin:32px 0 12px; }
.prose p{ font-size:15px; line-height:1.8; margin:0 0 18px; }
.prose ul{ margin:0 0 20px; padding-left:20px; }
.prose li{ font-size:15px; line-height:1.8; margin-bottom:9px; }
.prose li::marker{ color:var(--accent); }
.prose strong{ color:var(--heading); }

.link-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-top:32px; }
.link-card{
  border:1px solid var(--line); background:var(--surface);
  padding:22px 24px; display:block;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition:border-color .2s ease, transform .2s ease;
}
.link-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.link-card .t{ font-size:15px; font-weight:700; color:var(--heading); text-transform:uppercase; letter-spacing:0.04em; }
.link-card .d{ font-size:13px; color:var(--body-gray); margin-top:8px; line-height:1.6; }

/* ==========================================================
   FINAL CTA + FOOTER
   ========================================================== */

.final{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  padding:clamp(80px,11vw,150px) 0;
  text-align:center;
}
.final h2{ font-size:clamp(30px,5.6vw,62px); }
.final h2 .accent{ color:var(--accent); }
.final .cta-wrap{ margin-top:clamp(36px,4vw,48px); }

.site-footer{ background:var(--bg); border-top:1px solid var(--line); padding:clamp(56px,7vw,90px) 0 40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr) 1.2fr; gap:clamp(24px,3vw,44px); }
.footer-col h4{ font-size:12px; letter-spacing:0.16em; color:var(--heading); margin:0 0 20px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.footer-col a{ font-size:14px; color:var(--body-gray); }
.footer-col a:hover{ color:var(--accent); }
.footer-end{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; text-align:right; }
.footer-end .mail{ font-size:13px; color:var(--body-gray); }
.footer-end .copy{ font-size:12px; color:var(--muted); }
.footer-bottom{
  margin-top:clamp(40px,5vw,64px);
  padding-top:24px;
  border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  font-size:12px; color:var(--muted); letter-spacing:0.06em;
}

.badge{
  display:inline-flex; align-items:center; gap:9px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:9px 16px;
  font-size:11px; font-weight:700; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--heading);
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.badge .dot{
  width:7px; height:7px; border-radius:50%; background:var(--accent);
  animation:t-pulse-ring 2s ease-out infinite;
}

/* ==========================================================
   SECTION SHELLS
   ========================================================== */

.sec{ padding:clamp(70px,10vw,140px) 0; border-top:1px solid var(--line); }
.sec--alt{ background:var(--bg-alt); }
.sec h2{ font-size:clamp(34px,6.5vw,72px); }
.sec h2 .accent{ color:var(--accent); }
.sec h2 .indent{ display:block; margin-left:min(160px,18vw); color:var(--accent); }
.sec .lede{ max-width:620px; margin-top:30px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width:980px){
  .nav-links{ display:none; }
  .nav-right{ display:none; }
  .hamburger{ display:flex; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-end{ align-items:flex-start; text-align:left; grid-column:1 / -1; }
}

@media (max-width:700px){
  .hero{ min-height:auto; }
  .hero-video{ top:0; left:-12%; right:auto; width:119%; }
  .hero-scrim{ display:none; }
  .headline{ margin-top:360px; padding:0 20px 24px 20px; font-size:clamp(34px,10vw,56px); }
  .hero-copy{ margin-left:20px; margin-right:20px; }
  .hero-actions{ padding-left:20px; padding-right:20px; padding-bottom:36px; }
  .live-panel{ position:relative; right:auto; bottom:auto; width:auto; margin:0 20px 36px; }
  .flow{ padding-right:20px; }
  .footer-grid{ grid-template-columns:1fr; }
  .calc-big{ font-size:clamp(36px,13vw,56px); }
}
