/* ============================================================
   InferenceKey — scroll-driven landing
   ============================================================ */

:root {
  --bg-dark:        #07090b;
  --bg-panel:       #0c1013;
  --text-on-dark:   #eef2f1;
  --text-muted:     #8b9794;
  --text-dim:       #5c6764;

  --accent-cyan:    #1fd4c8;   /* core glow */
  --accent-amber:   #f0a832;   /* demand / hot path */
  --accent-green:   #3fae6f;   /* supply / healthy */
  --line:           rgba(255,255,255,0.10);

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-cyan); color: #04110f; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner { width: min(360px, 70vw); text-align: center; }
.loader-brand {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.18em;
  font-size: 1.1rem; color: var(--text-on-dark);
  margin-bottom: 1.6rem;
}
.loader-brand span { color: var(--accent-cyan); }
.loader-track {
  height: 2px; width: 100%;
  background: rgba(255,255,255,0.08);
  overflow: hidden; border-radius: 2px;
}
#loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transition: width 0.2s ease;
}
#loader-percent {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.14em;
  font-size: 0.95rem; color: #fff; text-decoration: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.logo span { color: var(--accent-cyan); }
.nav-links {
  position: relative;            /* anchor for the sliding pill */
  display: flex; align-items: center; gap: clamp(0.5rem, 1.4vw, 1.1rem);
}
.nav-links a {
  position: relative; z-index: 1;
  font-size: 0.78rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 100px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: #fff; }
/* The link the pill is currently under reads as selected. */
.nav-links a.is-active { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.45);
  padding: 0.5rem 0.95rem !important;
}
.nav-cta.is-active { color: #fff; }

/* Sliding "pill" indicator. JS sets its left/width (and a squash transform
   mid-flight) so it glides under the active link and deforms as it moves —
   a liquid, modern feel. Sits behind the link text. */
.nav-pill {
  position: absolute; top: 50%; left: 0;
  height: 1.85rem; width: 0;
  --pill-sx: 1; --pill-sy: 1;
  transform: translateY(-50%) scale(var(--pill-sx), var(--pill-sy));
  border-radius: 100px;
  background: rgba(31,212,200,0.16);
  border: 1px solid rgba(31,212,200,0.45);
  box-shadow: 0 0 18px -2px rgba(31,212,200,0.35), inset 0 0 12px -4px rgba(31,212,200,0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none; z-index: 0;
  opacity: 0;
  /* left/width glide; the squash (scaleX/scaleY via --pill-sx/sy) rides on a
     faster spring so the pill stretches into the move and settles back. */
  transition:
    left 0.52s cubic-bezier(0.34, 1.56, 0.5, 1),
    width 0.52s cubic-bezier(0.34, 1.56, 0.5, 1),
    transform 0.32s cubic-bezier(0.34, 1.8, 0.5, 1),
    opacity 0.3s ease;
  transform-origin: center;
}
.nav-pill.is-on { opacity: 1; }

/* ---------- Mobile hamburger button ---------- */
/* Hidden on desktop; the full .nav-links bar is shown there instead. */
.nav-burger {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  width: 2.6rem; height: 2.6rem;
  padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-burger:hover { border-color: rgba(31,212,200,0.5); }
.nav-burger-box { position: relative; display: block; width: 20px; height: 14px; }
/* Three bars built from one element + its ::before/::after. */
.nav-burger-inner,
.nav-burger-inner::before,
.nav-burger-inner::after {
  position: absolute; left: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s cubic-bezier(0.4, 0.01, 0.2, 1), opacity 0.2s ease;
}
.nav-burger-inner { top: 50%; transform: translateY(-50%); }
.nav-burger-inner::before { content: ""; top: -6px; }
.nav-burger-inner::after  { content: ""; top: 6px; }
/* Open state morphs the three bars into an X. */
.nav-burger.is-open .nav-burger-inner { transform: translateY(-50%) rotate(45deg); }
.nav-burger.is-open .nav-burger-inner::before { top: 0; transform: rotate(90deg); }
.nav-burger.is-open .nav-burger-inner::after  { top: 0; opacity: 0; }

/* ---------- Mobile side panel ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4,6,9,0.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 401;
  width: min(84vw, 340px); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem calc(1.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(165deg, rgba(13,17,21,0.98), rgba(7,9,11,0.98));
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.2, 1);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-brand {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}
.mobile-nav-brand span { color: var(--accent-cyan); }
.mobile-nav-close {
  appearance: none; -webkit-appearance: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.9rem; line-height: 1;
  width: 2.2rem; height: 2.2rem; border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav-close:hover { color: #fff; background: rgba(255,255,255,0.06); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav-links a {
  position: relative;
  font-size: 1.15rem; font-weight: 500;
  color: rgba(255,255,255,0.82); text-decoration: none;
  padding: 0.95rem 0.9rem; border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: rgba(31,212,200,0.10);
  color: #fff; padding-left: 1.2rem;
}
/* Active section (driven by scroll position): cyan accent bar + glow. */
.mobile-nav-links a.is-active {
  background: rgba(31,212,200,0.12);
  color: #fff; padding-left: 1.35rem;
}
.mobile-nav-links a.is-active::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 1.4rem; border-radius: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px -1px rgba(31,212,200,0.7);
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem; text-align: center; text-decoration: none;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: var(--accent-cyan); color: #04110f;
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 12px 30px -10px rgba(31,212,200,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-nav-cta:active { transform: scale(0.98); }
.mobile-nav-cta-host {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  color: rgba(4,17,15,0.65); letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  /* Swap the inline link bar for the hamburger. */
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 721px) {
  /* Keep the panel fully out of the way on desktop. */
  .mobile-nav, .mobile-nav-overlay { display: none; }
}

/* ---------- Shared text atoms ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.4rem;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.02;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.4rem;
}
.section-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(31,212,200,0.12);
  color: var(--accent-cyan);
  padding: 0.1em 0.4em; border-radius: 4px;
}
.section-note {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-dim);
}
/* A bold closer line (persuasive remate) reads as a small accent statement,
   not the dim keyword list it replaces. */
.section-note strong {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--accent-cyan);
}

/* ---------- Hero ---------- */
.hero-standalone {
  /* Fixed so its solid black bg keeps covering the viewport during the wipe.
     The circle-wipe grows the canvas UNDER it; the hero only fades out (driven
     by JS) once the circle is near full-screen — so there is no black gap. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 100vh; width: 100%;
  background: var(--bg-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 7rem);
  overflow: hidden;
}
.hero-standalone::before {
  /* The teal core glow, hinting at what unfolds — it breathes with a constant
     pulse while the hero is on screen (before any scroll). */
  content: ""; position: absolute;
  right: -10vw; top: 50%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(31,212,200,0.32), transparent 60%);
  pointer-events: none;
  transform: translateY(-50%) scale(1);
  transform-origin: center;
  animation: heroPulse 3.4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: translateY(-50%) scale(0.74); opacity: 0.45; }
  50%      { transform: translateY(-50%) scale(1.22); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-standalone::before { animation: none; }
}
.hero-inner { position: relative; max-width: min(60vw, 900px); }
.hero-label { font-size: 0.8rem; }
.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero-heading .word {
  display: inline-block; margin-right: 0.22em;
  will-change: transform, opacity;
}
.hero-heading .word.break { margin-left: 0; }
@media (min-width: 900px) {
  .hero-heading .word.break::before { content: ""; display: block; }
}
.hero-tagline {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.55; color: var(--text-muted);
  max-width: 46ch; margin-bottom: 2.6rem;
}
.hero-cta {
  display: inline-flex; flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  text-decoration: none; color: var(--bg-dark);
  background: var(--accent-cyan);
  padding: 1rem 1.8rem; border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 rgba(31,212,200,0);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31,212,200,0.35);
}
.hero-cta-host {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.06em; opacity: 0.7;
}
.scroll-indicator {
  position: absolute; bottom: 2.4rem; left: clamp(1.5rem, 6vw, 7rem);
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-arrow {
  width: 1px; height: 34px;
  background: linear-gradient(var(--accent-cyan), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ---------- Canvas ---------- */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 10;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
#canvas { display: block; width: 100%; height: 100%; }
/* Constant veil so the busy video stays a subtle, complementary backdrop and
   never competes with the panels. Lives inside the clip so it only shows with
   the revealed canvas, not during the hero. */
.canvas-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(4,6,9,0.5);
  pointer-events: none;
}

/* ---------- Dark overlay ---------- */
#dark-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: #04070a;
  opacity: 0; pointer-events: none;
  will-change: opacity;
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  position: fixed; left: 0; right: 0; z-index: 55;
  top: 16vh; transform: none;
  overflow: hidden; pointer-events: none;
  opacity: 0; will-change: opacity;
}
.marquee-lower { top: auto; bottom: 6vh; }
.marquee-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13vw; line-height: 1;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(31,212,200,0.55);
  text-shadow: 0 0 30px rgba(4,7,10,0.7);
  will-change: transform;
}
.marquee-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240,168,50,0.5);
}

/* ---------- Scroll container & sections ---------- */
#scroll-container {
  position: relative; z-index: 60;
  height: 1100vh;
  pointer-events: none; /* let the page scroll; sections re-enable on their inner content */
}
.scroll-section {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  padding: 0 clamp(1.5rem, 5vw, 5vw);
}
/* Re-enable interaction on a section's content, but only when the section
   itself is interactive: the JS sets section.pointer-events auto/none with
   visibility, and these inner wrappers inherit it. A fixed `auto` here let
   invisible neighbouring sections keep stealing the cursor (e.g. over the
   pricing cards). */
.scroll-section .section-inner,
.scroll-section .stats-grid,
.scroll-section .pricing-inner { pointer-events: inherit; }

/* Content panels are CENTERED in the viewport — same spot every time so the eye
   doesn't have to chase them across the busy video. Stats and Pricing keep
   their own centered layout. */
.section-content {
  align-items: center; justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5vw);
}
/* The final CTA is the closing statement — CENTERED and larger than the rest
   for prominence. */
.section-cta {
  align-items: center; justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5vw);
}
.align-left, .align-right { /* kept in markup; alignment handled above */ }

/* Translucent frosted card. FIXED size across every section so the panel never
   resizes between transitions — only the copy inside changes. */
.section-content .section-inner,
.section-cta .section-inner {
  display: flex; flex-direction: column; justify-content: center;
  /* The panel is the hero — near-solid so the busy video reads only as a faint
     complementary texture around it. */
  background: rgba(8,11,14,0.96);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: clamp(2.6rem, 4.5vw, 4.4rem);
  box-shadow: 0 40px 100px -28px rgba(0,0,0,0.85);
}
.section-content .section-inner {
  /* The panel is the main element — it should dominate the viewport, not float
     in empty space. Scale generously with the viewport, capping on ultrawide so
     line lengths stay sane: ~92vw wide, ~90vh tall leaves only a slim margin so
     the frosted card clearly reads as the focus. */
  width: min(1640px, 92vw);
  min-height: min(820px, 90vh);
  max-height: 94vh;
  overflow-y: auto;
}

/* Two-column panel: copy on one side, an image/placeholder on the other. */
.section-split {
  flex-direction: row !important;
  align-items: center; gap: clamp(2rem, 4vw, 4rem);
}
.section-split .panel-text { flex: 1 1 0; min-width: 0; }
.section-split .panel-media {
  flex: 1 1 0; min-width: 0;
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  margin: clamp(1rem, 3vh, 2.4rem) 0;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.16);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 12px, transparent 12px 24px),
    rgba(255,255,255,0.025);
  position: relative;
}
.section-split .panel-media::after {
  content: attr(data-placeholder);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
/* Live canvas variant: no dashed placeholder, just a clean frame the diagram
   paints into (Growth flow diagram). */
.section-split .panel-media--live {
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(120% 120% at 50% 40%, rgba(31,212,200,0.05), transparent 70%),
    rgba(4,7,10,0.45);
  overflow: hidden;
}
.section-split .panel-media--live::after { content: none; }
.flow-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Engine hub: official engine logos sit on light chips over the hub nodes.
   JS positions each chip (left/top) and toggles .is-active when a request
   lands, which brightens + scales the chip for a pulse. Official logos keep
   their own colours on a light badge so dark marks (Ollama, llama.cpp) stay
   legible over the dark panel. */
.engine-logo {
  position: absolute; z-index: 2;
  --logo-scale: 0.62;
  width: clamp(40px, 5.2vw, 60px);
  height: clamp(40px, 5.2vw, 60px);
  padding: 8px;
  border-radius: 13px;
  background: #f3f6f5;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.6);
  object-fit: contain;
  /* JS drives left/top (placement) and --logo-scale (slot vs bench size). */
  transform: translate(-50%, -50%) scale(var(--logo-scale));
  opacity: 0.5;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
/* The engine currently mounted in the slot: full presence + cyan ring. */
.engine-logo.in-slot { opacity: 1; z-index: 3; }
.engine-logo.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(31,212,200,0.65), 0 10px 26px -6px rgba(31,212,200,0.55);
}
.panel-media-label {
  position: absolute; left: 0.9rem; bottom: 0.8rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
/* On the right-aligned section, put the media on the left for variety. */
#sec-rules .section-split { flex-direction: row-reverse !important; }
/* Confidence panel holds the live chart — give it more room and padding. */
#sec-confidence .section-inner {
  min-height: min(860px, 90vh);
  height: auto;
  padding: clamp(3rem, 5vw, 5rem);
}
/* CTA: bigger panel, slightly more opaque, centered. */
.section-cta .section-inner {
  width: min(1400px, 92vw);
  min-height: min(760px, 88vh);
  height: auto;
  max-height: 94vh;
  overflow-y: auto;
  align-items: center; text-align: center;
  background: rgba(7,10,13,0.94);
  padding: clamp(2.8rem, 5vw, 5rem);
}
.section-cta .section-inner .section-heading { font-size: clamp(3rem, 6vw, 5.8rem); }

.section-content .section-inner .section-body,
.section-cta .section-inner .section-body { color: #c8d1cf; }

/* ---------- Live spending widget (section 005) ---------- */
.spend-widget {
  margin: 1.4rem 0 1.4rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(4,7,10,0.55);
  padding: 1rem 1.1rem 0.9rem;
}
.spend-kpis {
  display: flex; gap: 1.6rem;
  margin-bottom: 0.7rem;
}
.spend-kpi { display: flex; flex-direction: column; gap: 0.15rem; }
.spend-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
}
.spend-kpi-value {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1; color: var(--text-on-dark);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.spend-kpi:nth-child(1) .spend-kpi-value { color: var(--accent-cyan); }
.spend-kpi:nth-child(3) .spend-kpi-value { color: var(--accent-amber); }

.spend-chart-wrap {
  position: relative;
  height: 132px; width: 100%;
}
.spend-chart { display: block; width: 100%; height: 100%; }

.spend-legend {
  display: flex; gap: 1.2rem; margin-top: 0.5rem;
}
.spend-legend-item {
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.06em;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.spend-legend-item::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px;
}
.spend-legend-private::before { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.spend-legend-cloud::before   { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }

@media (max-width: 768px) {
  .spend-kpis { gap: 1rem; }
  .spend-chart-wrap { height: 104px; }
}

/* ---------- Product screen window (Confidence section) ---------- */
/* A premium browser-window frame holding the live Control Tower screen, which
   auto-scrolls bottom-to-top in a loop (driven by JS). */
.screen-window {
  margin: 1.6rem 0 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0a0a0a;
  box-shadow:
    0 30px 80px -24px rgba(0,0,0,0.85),
    0 0 0 1px rgba(31,212,200,0.05),
    0 0 60px -20px rgba(31,212,200,0.25);
}
.screen-window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.win-dot:nth-child(1) { background: #ff5f57; }
.win-dot:nth-child(2) { background: #febc2e; }
.win-dot:nth-child(3) { background: #28c840; }
.win-url {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The viewport you see the screen through. Fixed height; the scroller inside
   is taller and glides up/down. */
.screen-window-body {
  position: relative;
  height: clamp(360px, 46vh, 540px);
  overflow: hidden;
  background: #0a0a0a;
}
.screen-scroller {
  position: absolute; top: 0; left: 0;
  width: 100%;
  will-change: transform;
}
/* The dashboard is a 1440-wide design; scale it to the window width so the whole
   layout reads, then let the scroller move it vertically. */
.screen-frame {
  display: block;
  width: 1440px;
  height: 1180px;          /* full dashboard height at native width */
  border: 0;
  transform-origin: top left;
  /* scale set by JS to (window width / 1440) so it always fits */
}

/* Bigger, centered typography inside the panel. */
.section-content .section-inner .section-heading,
.section-cta .section-inner .section-heading {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
}
/* In a two-column split, the heading only owns half the panel width — cap it
   smaller and let it wrap so wide viewports don't push it past the column. */
.section-split .section-heading {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  overflow-wrap: break-word;
}
.section-content .section-inner .section-body,
.section-cta .section-inner .section-body {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  max-width: 60ch;
}
/* The body sits in a column; keep it from overrunning its half of the panel. */
.section-split .section-body { max-width: 46ch; }

/* Two-column text-heavy sections (Rules, Engines): the heading ran too big and
   too tall and the body felt cramped. Dial the heading down with tighter
   line-height, and give the paragraph more air (looser leading + breathing
   room) so the copy stays calm next to the animated panel. */
#sec-rules .section-heading,
#sec-engines .section-heading {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 1.7rem;
}
#sec-rules .section-body,
#sec-engines .section-body {
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 1.6rem;
}

.section-inner > * { will-change: transform, opacity; }

/* CTA */
.cta-button {
  display: inline-flex; flex-direction: column; gap: 0.25rem;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  text-decoration: none; color: var(--bg-dark);
  background: var(--accent-cyan);
  padding: 1rem 1.8rem; border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31,212,200,0.4);
}
.cta-host {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.06em; opacity: 0.7;
}
.cta-heading { font-size: clamp(2.6rem, 5vw, 4.8rem); }

/* ---------- Stats ---------- */
.section-stats {
  display: flex; justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 6vw);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem) clamp(3rem, 8vw, 8rem);
  max-width: 1000px; width: 100%;
}
.stat {
  display: flex; flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.stat-prefix,
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1; color: var(--text-on-dark);
  letter-spacing: -0.03em;
}
.stat-prefix { display: inline; }
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--accent-cyan);
  margin-top: 0.4rem;
}
.stat-label {
  font-size: 0.9rem; color: var(--text-muted);
  margin-top: 0.7rem; line-height: 1.4;
}

/* ---------- Pricing ---------- */
.section-pricing {
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5vw);
  /* Near-opaque backdrop just for pricing so the plans read on a clean dark
     surface (more opaque than the shared dark overlay used by stats). */
  background: rgba(5,7,9,0.97);
}
.pricing-inner {
  max-width: 1560px; width: 92vw; text-align: center;
}
.pricing-inner .section-label { color: var(--accent-cyan); }
.pricing-inner .section-heading {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  margin-bottom: 1rem;
}
.pricing-intro {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.55; color: var(--text-muted);
  max-width: 60ch; margin: 0 auto 2.4rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
/* Highlighted pill linking to the standalone /cloud GPU catalogue. */
.pricing-cloud-teaser {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 0.6rem 0.9rem;
  width: fit-content; max-width: 100%;
  margin: 2rem auto 0;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(31,212,200,0.35);
  border-radius: 100px;
  background: rgba(31,212,200,0.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.95rem; color: var(--text-on-dark); text-decoration: none;
  box-shadow: 0 0 0 0 rgba(31,212,200,0);
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease;
}
.pricing-cloud-teaser::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px 1px rgba(31,212,200,0.8);
  flex: none;
  animation: teaserPulse 2.4s ease-in-out infinite;
}
@keyframes teaserPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
.pricing-cloud-teaser:hover {
  background: rgba(31,212,200,0.12);
  border-color: rgba(31,212,200,0.6);
  box-shadow: 0 12px 34px -16px rgba(31,212,200,0.7);
  transform: translateY(-2px);
}
.pricing-cloud-teaser-cta {
  color: var(--accent-cyan); font-weight: 600;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .pricing-cloud-teaser::before { animation: none; }
}
.pricing-card {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  background: rgba(14,18,22,1);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}
.pricing-card--featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 18px 50px -20px rgba(31,212,200,0.5);
}
/* Discovery hover — gentle lift, skipped for reduced-motion users. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pricing-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }
  .pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.28);
  }
  .pricing-card--featured:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
  }
}
/* Segment line — who each plan is for, read in <5s. */
.pricing-segment {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.pricing-card--featured .pricing-segment { color: var(--accent-cyan); }
.pricing-badge {
  position: absolute; top: -0.7rem; left: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg-dark); background: var(--accent-cyan);
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.pricing-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}
.pricing-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1; color: var(--text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.pricing-period {
  font-family: var(--font-body);
  font-weight: 400; font-size: 0.85rem;
  color: var(--text-dim); margin-left: 0.2rem;
  letter-spacing: 0;
}
.pricing-from {
  font-family: var(--font-body);
  font-weight: 400; font-size: 0.85rem;
  color: var(--text-dim); margin-right: 0.3rem;
  letter-spacing: 0;
}
.pricing-limit {
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent-cyan);
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.pricing-includes {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  flex: 1;
}
.pricing-includes li {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.5; padding-left: 1.1rem; position: relative;
  margin-bottom: 0.35rem;
}
.pricing-includes li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent-cyan); font-size: 0.75rem;
}
/* "Everything in <prev>" — reads as inherited value, not a new feature. */
.pricing-includes li.pricing-prev {
  color: var(--text-dim); font-style: italic;
  padding-bottom: 0.5rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.pricing-includes li.pricing-prev::before {
  content: "✓"; color: var(--text-dim);
}
.pricing-cta {
  display: block; text-align: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.7rem 1rem; border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pricing-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
.pricing-card--featured .pricing-cta {
  background: var(--accent-cyan); color: var(--bg-dark);
  border-color: var(--accent-cyan);
}
.pricing-card--featured .pricing-cta:hover {
  background: #2ce6d9; border-color: #2ce6d9;
}
.pricing-foot {
  font-size: 0.74rem; color: var(--text-dim);
  margin-top: 0.9rem; line-height: 1.4;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  #scroll-container { height: 760vh; }

  .scroll-section { padding: 0 1.2rem 2rem; }
  .section-content .section-inner,
  .section-cta .section-inner {
    width: 100%;
    min-height: min(520px, 78vh);
    height: auto;
    max-height: 86vh;
    overflow-y: auto;
    padding: 1.6rem 1.4rem;
    border-radius: 16px;
  }
  /* Confidence's chart panel can be tall on mobile — let it scroll inside. */
  #sec-confidence .section-inner { min-height: min(520px, 78vh); padding: 1.6rem 1.4rem; }
  /* Stack the two-column panels on mobile (overrides the row-reverse on Rules). */
  .section-split,
  #sec-rules .section-split { flex-direction: column !important; gap: 1.1rem; }
  .section-split .panel-media { width: 100%; min-height: 120px; margin: 0; }
  .section-content .section-inner .section-heading,
  .section-cta .section-inner .section-heading { font-size: 2rem; }
  .section-content .section-inner .section-body,
  .section-cta .section-inner .section-body { max-width: 100%; font-size: 1.02rem; }

  .hero-inner { max-width: 100%; }
  .hero-standalone { padding: 0 1.4rem; }

  .stats-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .section-stats { padding: 0 1.4rem; }

  /* Pricing — single column, compact, scrollable inside its 100vh frame */
  .section-pricing { padding: 0 1.2rem; align-items: stretch; }
  .pricing-inner {
    max-height: 100vh; overflow-y: auto;
    padding: 5.5rem 0 2rem; /* clear the fixed header */
    -webkit-overflow-scrolling: touch;
  }
  .pricing-inner .section-heading { font-size: 1.9rem; }
  .pricing-intro { margin-bottom: 1.4rem; }
  .pricing-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .pricing-card { padding: 1.2rem 1.2rem; }
  .pricing-includes { margin-bottom: 1rem; }

  .marquee-text { font-size: 18vw; }
  .scroll-indicator { left: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { animation: none; }
}

/* Compact footer inside the final CTA panel: legal link + company details.
   Lives in the CTA card so it never fights the scroll-driven section layout. */
.site-footer-mini {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.site-footer-mini p { margin: 0; }
.site-footer-mini a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.site-footer-mini a:hover { text-decoration: underline; }
