/* ============================================================
   Tokens — Refero style 68c15685 (phosphor terminal, Modal)
   ============================================================ */
:root {
  --void: #000000;
  --ground: #181818;
  --carbon: #212525;
  --rust: #231c1c;
  --circuit: #485346;
  --hair: #1f2a33;
  --pine: #3e4a3c;
  --lime: #7fee64;
  --phosphor: #ddffdc;
  --mint: #def0dd;
  --sage60: #8cab87;
  --sage40: #677d64;
  --moss70: #9cbf93;
  --moss80: #aed2a4;
  --fern: #859984;
  --deepfern: #697368;

  --font-display: 'Inter Tight', 'Goga', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1280px;
  --gutter: 24px;
  --section: 96px;
  --card-pad: 32px;
  --gap: 20px;

  --r-card: 8px;
  --r-btn: 12px;
  --r-pill: 9999px;
  --r-window: 16px;

  --shadow-nav: rgba(0,0,0,0.1) 0 10px 15px -3px, rgba(0,0,0,0.1) 0 4px 6px -4px;

  --dur: 300ms;
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--sage60);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.022em;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-feature-settings: 'ss01';
  color: var(--phosphor);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.2vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.007em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; line-height: 1.05; letter-spacing: -0.008em; }
h3 { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.013em; }
p { margin: 0; }
a { color: var(--fern); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--phosphor); }
code, pre, kbd { font-family: var(--font-mono); }
button { font-family: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--void); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; line-height: 1.33; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--moss70); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
.lead { font-size: 20px; line-height: 1.5; letter-spacing: -0.018em; color: var(--moss80); }
.sub { font-size: 16px; color: var(--sage60); }
.muted { color: var(--sage40); }
.head { max-width: 720px; margin-bottom: 48px; }
.head p { margin-top: 16px; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.lime-txt { color: var(--lime); }

/* ============================================================
   Buttons, pills, tags
   ============================================================ */
.btn {
  max-width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
  border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--ground); }
.btn-lime:hover { background: #93f57b; color: var(--void); }
.btn-ghost { background: transparent; color: var(--phosphor); border-color: var(--pine); }
.btn-ghost:hover { border-color: var(--phosphor); color: var(--phosphor); }
.btn-dark { background: var(--ground); color: var(--phosphor); border-color: var(--ground); }
.btn-dark:hover { background: var(--void); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn .ico { width: 16px; height: 16px; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(72,83,70,0.6); color: var(--fern);
  font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover { border-color: var(--circuit); color: var(--phosphor); }
.link svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em; border-radius: var(--r-pill);
  border: 1px solid var(--circuit); color: var(--moss70); white-space: nowrap;
}
.tag-lime { background: var(--lime); color: var(--ground); border-color: var(--lime); }

/* ============================================================
   Nav
   ============================================================ */
.nav { position: sticky; top: 12px; z-index: 50; padding: 0 16px; margin-top: 12px; }
.nav .cap {
  max-width: var(--max); margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 12px 0 20px;
  border-radius: var(--r-pill); background: rgba(33,37,37,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(72,83,70,0.35); box-shadow: var(--shadow-nav);
  transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav.compact .cap { height: 52px; background: rgba(33,37,37,0.94); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--phosphor); font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.brand:hover { color: var(--phosphor); }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--phosphor); font-size: 14px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.nav-links a:hover { color: var(--lime); }
.nav-login-mobile { display: none; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .login { color: var(--phosphor); font-size: 14px; font-weight: 500; }
.nav-cta .login:hover { color: var(--lime); }
.nav-key { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font-size: 14px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.nav-key:hover { color: var(--lime); }
.nav-key i { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; transition: transform 200ms var(--ease); }
.nav-key:hover i { transform: translate(1px, -1px); }
.nav-key svg { width: 14px; height: 14px; stroke: var(--ground); }
.nav-burger { display: none; background: none; border: 1px solid var(--pine); border-radius: 50%; width: 36px; height: 36px; color: var(--phosphor); cursor: pointer; }
.nav-burger svg { margin: 0 auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 48px 0 0; overflow: hidden; }
.hero .wrap { width: 100%; }
.hero-text { text-align: center; max-width: 880px; margin: 0 auto; position: relative; z-index: 3; padding: 24px 0 150px; }
.hero-glow {
  position: absolute; left: 50%; top: 62%; width: 1400px; height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(127,238,100,0.26) 0%, rgba(24,183,89,0.10) 32%, rgba(9,175,88,0.03) 52%, transparent 70%);
  will-change: opacity, transform; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.85; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }
.hero-horizon { position: absolute; left: 0; right: 0; top: 86%; height: 1px; background: linear-gradient(90deg, transparent, rgba(72,83,70,0.9) 20%, rgba(221,255,220,0.9) 50%, rgba(72,83,70,0.9) 80%, transparent); }
.hero-horizon i { position: absolute; top: -1px; left: 0; width: 140px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #7fee64, #ddffdc); will-change: transform; animation: run 5.5s linear infinite; }
.hero-horizon i:nth-child(2) { animation-delay: -2.7s; opacity: 0.6; }
@keyframes run { from { transform: translateX(-160px); } to { transform: translateX(100vw); } }
.hero-ticks { position: absolute; left: 0; right: 0; top: calc(86% + 14px); display: flex; justify-content: center; gap: 56px; padding: 0 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: var(--sage40); flex-wrap: wrap; }
.hero h1 .lime-txt { display: inline; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-b2b { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--fern); }
.hero-b2b:hover { color: var(--phosphor); }
.hero-b2b svg { width: 14px; height: 14px; }
.endpoint {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 8px 8px 8px 16px; border-radius: var(--r-btn);
  background: var(--ground); border: 1px solid var(--circuit);
  font-family: var(--font-mono); font-size: 14px; color: var(--phosphor); letter-spacing: 0;
}
.endpoint .lbl { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); }
.endpoint button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  background: var(--carbon); border: 1px solid var(--pine); border-radius: 8px;
  color: var(--moss80); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.endpoint button:hover { border-color: var(--circuit); color: var(--phosphor); }
.endpoint button.copied { background: var(--lime); color: var(--ground); border-color: var(--lime); }
.endpoint button svg { width: 14px; height: 14px; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============================================================
   Logo marquee
   ============================================================ */
.works { padding: 40px 0 56px; }
.works .cap { text-align: center; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 20px; }
.marquee-track { display: flex; width: max-content; animation: scroll 80s linear infinite; }
.marquee.reverse .marquee-track { animation-name: scroll-reverse; }
.marquee-track > div { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; height: 24px;
  color: var(--sage40); font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.logo svg { width: 22px; height: 22px; }
.marquee:hover .logo { color: var(--moss80); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--half, 50%))); } }
@keyframes scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat { padding: 40px 32px; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--phosphor); font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: 0.5em; color: var(--lime); vertical-align: top; margin-left: 2px; }
.stat .cap { margin-top: 12px; font-size: 14px; color: var(--sage40); }

/* ============================================================
   Catalog cards
   ============================================================ */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--ground); border-radius: var(--r-card); padding: var(--card-pad);
  display: flex; flex-direction: column; gap: 14px; min-height: 240px;
  transition: background-color var(--dur) var(--ease);
}
.card:hover { background: #1c1c1c; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .prov { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); }
.card h3 { font-size: 24px; }
.card .desc { color: var(--sage60); font-size: 15px; flex: 1; }
.model-id { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; background: var(--carbon); border: 1px solid var(--pine); border-radius: 6px; padding: 4px 8px; color: var(--phosphor); cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; transition: border-color var(--dur) var(--ease); }
.model-id code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-id span { font-family: var(--font-body); font-size: 11px; color: var(--fern); white-space: nowrap; }
.model-id:hover { border-color: var(--circuit); }
.model-id.copied { border-color: var(--lime); }
.model-id.copied span { color: var(--lime); }
.card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.card .price { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--phosphor); letter-spacing: -0.02em; }
.card .price small { font-family: var(--font-body); font-size: 13px; color: var(--fern); font-weight: 400; margin-left: 4px; }
.card .ctx { font-family: var(--font-mono); font-size: 13px; color: var(--moss70); }
.catalog-foot { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   Code window
   ============================================================ */
.win {
  background: var(--carbon); border: 1px solid var(--circuit); border-radius: var(--r-window); overflow: hidden;
}
.win pre, .table-wrap, .flow { scrollbar-width: thin; scrollbar-color: var(--pine) transparent; }
.win pre::-webkit-scrollbar, .table-wrap::-webkit-scrollbar, .flow::-webkit-scrollbar { height: 8px; }
.win pre::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb, .flow::-webkit-scrollbar-thumb { background: var(--pine); border-radius: 4px; }
.win pre::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track, .flow::-webkit-scrollbar-track { background: transparent; }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.win-bar .title { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--moss70); letter-spacing: 0.02em; }
.win-tabs { display: flex; gap: 4px; }
.win-tabs button {
  background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fern); cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.win-tabs button:hover { color: var(--moss80); }
.win-tabs button.active { color: var(--phosphor); background: var(--ground); }
.win pre { margin: 0; padding: 24px; font-size: 13.5px; line-height: 1.6; color: var(--moss80); overflow-x: auto; letter-spacing: 0; }
.win pre[hidden] { display: none; }
.k { color: var(--lime); }
.s { color: var(--phosphor); }
.c { color: var(--sage40); }
.n { color: var(--moss70); }

/* ============================================================
   Quickstart
   ============================================================ */
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--hair); }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step .no { font-family: var(--font-mono); font-size: 13px; color: var(--lime); padding-top: 4px; }
.step h3 { font-size: 20px; line-height: 1.3; }
.step p { margin-top: 6px; font-size: 15px; }
.step code { font-size: 13px; color: var(--phosphor); background: var(--ground); padding: 2px 6px; border-radius: 4px; }

/* ============================================================
   How it works — live flow (canvas)
   ============================================================ */
.flow { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; background: var(--void); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.flow canvas { display: block; max-width: none; }


/* ============================================================
   Platform features with mini UIs
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--hair); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 30px; line-height: 1.2; letter-spacing: -0.012em; }
.feature .desc { margin-top: 16px; font-size: 17px; max-width: 460px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--moss80); }
.feature li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--circuit); background: radial-gradient(circle, var(--sage60) 0 35%, transparent 40%); }

.ui { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; color: var(--moss80); }
.ui .win-bar .title { font-family: var(--font-body); }
.ui-body { padding: 20px 24px; }
.ui-row { display: grid; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.ui-row:first-child { border-top: 0; }
.ui-lbl { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); }
.ui .chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--pine); color: var(--moss70); font-size: 12px; white-space: nowrap; }
.ui .chip.on { border-color: var(--lime); color: var(--lime); }
.ui .chip.dim { color: var(--fern); }
.ui .bar { height: 6px; background: var(--ground); border-radius: 3px; overflow: hidden; }
.ui .bar i { display: block; height: 100%; width: 0; background: var(--sage60); border-radius: 3px; transition: width 900ms var(--ease); }
.ui .bar.dim i { background: var(--pine); }
.ui .bar.ok i { background: var(--lime); }
.ui .bar.warn i { background: var(--phosphor); }
.ui .ok { color: var(--lime); }
.ui .dim { color: var(--fern); }
.ui .white { color: var(--phosphor); }
.ui .cursor { display: inline-block; width: 7px; height: 14px; background: var(--lime); vertical-align: -2px; animation: pulse 1s steps(2) infinite; }

/* routing */
.ui-route .ui-row { grid-template-columns: 1.1fr 20px 1.3fr 1fr; }
.ui-route .arrow { color: var(--sage40); text-align: center; }
.ui-route .reason { font-family: var(--font-body); font-size: 12px; color: var(--fern); }

/* failover */
.ui-fail .ui-row { grid-template-columns: 130px 1fr 80px; }
.ui-fail .attempt { display: flex; flex-direction: column; gap: 6px; }
.ui-fail .attempt span { font-size: 12px; }
.ui-fail .ms { text-align: right; font-variant-numeric: tabular-nums; }
.ui-fail .ui-row.total { grid-template-columns: 130px 1fr 80px; }

/* bill */
.ui-bill .ui-row { grid-template-columns: 1.4fr 1fr 1fr; }
.ui-bill .r { text-align: right; font-variant-numeric: tabular-nums; }
.ui-bill .total { border-top: 1px solid var(--circuit); margin-top: 6px; padding-top: 14px; color: var(--phosphor); }
.ui-bill .total .r.big { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

/* prices */
.ui-price .ui-row { grid-template-columns: 150px 1fr 90px; }
.ui-price .r { text-align: right; font-variant-numeric: tabular-nums; color: var(--phosphor); }

/* control */
.ui-ctl .ui-row { grid-template-columns: 1fr 1fr 110px 90px; }
.ui-ctl .log { margin-top: 16px; padding: 12px 16px; background: var(--void); border: 1px solid var(--hair); border-radius: 8px; height: 108px; overflow: hidden; font-size: 12px; line-height: 1.7; color: var(--fern); }
.ui-ctl .log div { white-space: nowrap; }
.ui-ctl .log .ok { color: var(--moss70); }

/* ============================================================
   Companies — light section (mint frost)
   ============================================================ */
.light { background: var(--mint); color: #2b3a29; }
.light h2, .light h3 { color: #101810; }
.light .eyebrow { color: #4c6a48; }
.light .lead { color: #3a4f38; }
.light p { color: #3f5440; }
.light .btn-dark { background: var(--ground); color: var(--phosphor); border-color: var(--ground); }
.light .link { border-color: rgba(60,80,58,0.35); color: #3a4f38; }
.light .link:hover { border-color: #3a4f38; color: #101810; }
.b2b { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.b2b-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.b2b-list li { padding-top: 16px; border-top: 1px solid rgba(43,58,41,0.18); }
.b2b-list b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: #101810; margin-bottom: 6px; letter-spacing: -0.01em; }
.b2b-list span { font-size: 15px; }
.b2b-card { background: var(--void); border-radius: var(--r-card); padding: var(--card-pad); color: var(--sage60); }
.b2b-card h3 { color: var(--phosphor); font-size: 20px; }
.b2b-card p { color: var(--sage60); font-size: 15px; }
.b2b-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.b2b-nums .n { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; color: var(--phosphor); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.b2b-nums .n small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--sage40); font-weight: 400; margin-top: 8px; letter-spacing: -0.01em; }
.b2b-card .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.b2b-card .btn-lime { color: var(--ground); }

/* ============================================================
   Price table
   ============================================================ */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); padding: 0 16px 14px; border-bottom: 1px solid var(--circuit); }
.table td { padding: 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.table tbody tr { transition: background-color var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--ground); }
.table td.model { color: var(--phosphor); font-weight: 500; letter-spacing: -0.02em; }
.table td.model code { display: block; font-size: 12px; color: var(--sage40); margin-top: 2px; font-weight: 400; }
.table td.price { font-family: var(--font-mono); color: var(--phosphor); font-variant-numeric: tabular-nums; }
.table td.price small { color: var(--sage40); margin-left: 4px; font-family: var(--font-body); }
.table td.ctx { font-family: var(--font-mono); color: var(--moss70); }
.table th.r, .table td.r { text-align: right; }
.table-wrap { overflow-x: auto; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.table-foot code { color: var(--phosphor); font-size: 14px; }

/* ============================================================
   Final CTA + footer
   ============================================================ */
.final { position: relative; padding: var(--section) 0; overflow: hidden; border-top: 1px solid var(--hair); }
.final .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.final h2 { font-size: clamp(36px, 4.6vw, 56px); }
.final .lead { margin-top: 20px; max-width: 520px; }
.final .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.globe { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }
.globe canvas { width: 100% !important; height: 100% !important; }
.globe::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 55%, #000 72%); }

.footer { border-top: 1px solid var(--hair); padding: 56px 0 40px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { font-size: 18px; }
.footer .about { margin-top: 16px; max-width: 320px; color: var(--sage40); }
.footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss70); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { color: var(--fern); }
.footer li a:hover { color: var(--phosphor); }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--sage40); font-size: 12px; }

/* ============================================================
   Reveal (GSAP sets final state; this is the pre-state)
   ============================================================ */
.gsap .rv { opacity: 0; transform: translateY(14px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .ui-route .ui-row { grid-template-columns: 1.1fr 20px 1.3fr; }
  .ui-route .ui-row > :nth-child(4) { display: none; }
  .ui-ctl .ui-row { grid-template-columns: 1fr 1fr 70px; gap: 8px; }
  .ui-ctl .ui-row > :nth-child(4) { display: none; }
}
@media (max-width: 1080px) {
  .grid3 { gap: 16px; }
  .card { padding: 24px; }
  .feature { gap: 40px; }
}
@media (max-width: 900px) {
  :root { --section: 72px; }
  .nav-links, .nav-cta .login { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; gap: 0; background: var(--carbon); border: 1px solid var(--hair); border-radius: 16px; padding: 8px 0; overflow: hidden; }
  .nav.open .nav-links a { padding: 14px 24px; border-top: 1px solid var(--hair); }
  .nav .cap { padding-left: 16px; padding-right: 10px; gap: 12px; }
  .nav-key span { display: none; }
  .hero { padding-top: 24px; min-height: 0; }
  .hero-text { padding-bottom: 130px; }
  .hero-ticks { gap: 16px 28px; }
  .flow { aspect-ratio: 1100 / 520; }
  .two, .feature, .b2b, .final .wrap { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .feature { padding: 40px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .nav-burger, .nav-key i { width: 44px; height: 44px; }
  .nav .cap { height: 64px; }
  .nav.open .nav-login-mobile { display: block; }
  .b2b-list { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .globe { max-width: 360px; }
}
@media (max-width: 1100px) and (min-width: 901px) { .nav-links { gap: 20px; } .nav-cta .login { display: none; } }
@media (max-width: 820px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .endpoint { display: flex; max-width: 100%; font-size: 12px; gap: 8px; }
  .endpoint code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .endpoint .lbl, .endpoint button span { display: none; }
  .stat .num { font-size: 32px; }
  #code-win .win-bar .title { display: none; }
  .ui .chip { white-space: normal; height: auto; padding: 2px 8px; overflow-wrap: anywhere; }
  .ui-route .ui-row { grid-template-columns: 1fr 16px 1fr; }
  .ui-fail .ui-row, .ui-fail .ui-row.total { grid-template-columns: 84px 1fr 60px; gap: 8px; }
  .ui-fail .attempt span { overflow-wrap: anywhere; }
  .ui-ctl .ui-row { grid-template-columns: 1fr 1fr; }
  .ui-ctl .ui-row .hide-sm { display: none; }
  .b2b-card { padding: 24px; }
  .b2b-nums { grid-template-columns: 1fr; }
  .b2b-card .btn { width: 100%; }
  .table th.prov-col, .table td.prov-col { display: none; }
  .table td, .table th { padding-left: 8px; padding-right: 8px; }
  .table td.model code { overflow-wrap: anywhere; }
  .footer .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-glow, .hero-horizon i { animation: none; }
  .gsap .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
