/* ============================================================
   ULTRAFAST — design system
   Dark, high-contrast "speed" aesthetic.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-normal-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-normal-100-900.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-italic-100-900.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-normal-100-800.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-italic-100-800.woff2") format("woff2");
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #05060a;
  --bg-2: #090b12;
  --panel: #0c0f18;
  --panel-2: #10141f;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #eceff5;
  --text-2: #a7aebf;
  --muted: #7d8497;
  --hot: #c8ff2e;
  --hot-soft: rgba(200, 255, 46, 0.12);
  --cyan: #59e6ff;
  --cyan-soft: rgba(89, 230, 255, 0.12);
  --std: #8f9bb0;
  --danger: #ff5d5d;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--hot); color: #0a0c04; }

.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--hot); color: #0a0c04;
  font: 600 14px var(--font-mono);
  padding: 10px 16px; border-radius: 8px;
  transform: translateY(-300%);
  transition: transform 0.2s var(--ease-out);
  text-decoration: none;
}
.skip-link:focus-visible { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-solid {
  background: var(--hot); color: #0b0d03;
  box-shadow: 0 0 0 rgba(200, 255, 46, 0);
}
.btn-solid:hover {
  background: #d7ff5c;
  box-shadow: 0 6px 32px rgba(200, 255, 46, 0.28);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line-strong); color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-2); background: rgba(148, 163, 184, 0.07); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  padding-block: 16px;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 9px;
  text-decoration: none; color: var(--text);
}
.wordmark-bolt { color: var(--hot); align-self: center; }
.wordmark-text {
  font: 700 17px var(--font-display);
  letter-spacing: 0.14em;
}
.wordmark-sub {
  font: 500 10.5px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-left: 1px solid var(--line-strong);
  padding-left: 9px;
}
.nav-links {
  display: flex; gap: 4px; margin-inline: auto;
}
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font: 500 14px var(--font-body);
  padding: 8px 13px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px var(--font-mono); letter-spacing: 0.1em;
  color: var(--text-2); text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hot); display: inline-block;
  animation: blip 2.2s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(200, 255, 46, 0); }
}
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 14px var(--gutter) 20px;
  background: rgba(5, 6, 10, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  color: var(--text); text-decoration: none; padding: 12px 4px;
  font: 600 16px var(--font-body);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { border: none; justify-content: center; margin-top: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 130px; padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(200, 255, 46, 0.05), transparent 60%),
    radial-gradient(900px 700px at 8% 110%, rgba(89, 230, 255, 0.07), transparent 55%),
    var(--bg);
}
.hero-streaks {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hot);
  border: 1px solid rgba(200, 255, 46, 0.22);
  background: rgba(200, 255, 46, 0.06);
  border-radius: 100px;
  padding: 9px 18px;
  margin: 0 0 34px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hot);
  animation: blip 2.2s ease-in-out infinite;
}
.hero-title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.6vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-line { display: block; }
.hero-line-hero { color: var(--hot); }
.hero-x {
  display: inline-block;
  font-feature-settings: "tnum";
  letter-spacing: -0.05em;
  text-shadow: 0 0 60px rgba(200, 255, 46, 0.4);
}
.hero-sub {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 40px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 15, 24, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  max-width: 900px;
}
.readout-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.readout-cell:last-child { border-right: 0; }
.readout-value {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum";
  line-height: 1;
}
.readout-cell:first-child .readout-value { color: var(--hot); }
.readout-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.hero-scrollcue {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none;
  font-size: 10px; letter-spacing: 0.3em;
}
.hero-scrollcue i {
  width: 1px; height: 44px; display: block;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 2s var(--ease-snap) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform-origin: bottom; transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- shared section chrome ---------- */
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--cyan);
  margin: 0 0 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 880px;
}
.section-title .accent, .accent { color: var(--hot); }
.section-lede {
  max-width: 640px; color: var(--text-2);
  font-size: clamp(16px, 1.8vw, 19px);
  margin: 0 0 48px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }

/* ---------- pitch ---------- */
.pitch {
  background:
    linear-gradient(180deg, transparent, rgba(12, 15, 24, 0.6) 30%, transparent),
    var(--bg);
}
.pitch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  margin-top: 10px;
}
.lede {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 22px;
}
.lede em { color: var(--hot); font-style: italic; }
.pitch-copy p:not(.lede) { color: var(--text-2); margin: 0; }
.pitch-trade {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  display: flex; flex-direction: column; gap: 26px;
}
.trade-row { display: flex; flex-direction: column; gap: 12px; }
.trade-tag {
  font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--muted);
}
.trade-new .trade-tag { color: var(--hot); }
.trade-bar { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 12px; }
.trade-bar-label {
  font-size: 11.5px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.08em;
}
.trade-track {
  height: 8px; border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}
.trade-fill {
  height: 100%; width: 0;
  border-radius: 8px;
  background: var(--std);
  transition: width 1s var(--ease-snap) 0.1s;
}
.trade-fill.dim { background: #454e61; }
.trade-fill.hot { background: linear-gradient(90deg, var(--cyan), var(--hot)); }
.in .trade-fill { width: var(--w); }

/* ---------- spec band ---------- */
.specs {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.specs-track {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 2.6vw, 36px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.spec:first-child { border-left: 1px solid var(--line); }
.spec-num {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  color: var(--text);
}
.spec:nth-child(1) .spec-num { color: var(--hot); }
.spec-unit {
  font-size: 13px; color: var(--cyan);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 8px 0 16px;
}
.spec-label { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- race ---------- */
.race {
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(89, 230, 255, 0.05), transparent 60%),
    var(--bg);
}
.race-presets {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.race-preset {
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2);
  font: 500 13px var(--font-mono);
  letter-spacing: 0.02em;
  padding: 10px 16px; border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.race-preset:hover { color: var(--text); border-color: var(--muted); }
.race-preset[aria-selected="true"] {
  background: var(--text); color: #0a0c10;
  border-color: var(--text);
}
.race-board {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  overflow: hidden;
}
.race-prompt {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--cyan);
  background: rgba(89, 230, 255, 0.04);
}
.race-prompt::before {
  content: "PROMPT · ";
  color: var(--muted);
  letter-spacing: 0.1em;
}
.race-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lane {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.lane-ultrafast { border-right: 1px solid var(--line); background: rgba(200, 255, 46, 0.025); }
.lane-head {
  display: flex; align-items: center; gap: 14px;
}
.lane-name {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12px var(--font-mono);
  letter-spacing: 0.14em;
  margin-right: auto;
}
.lane-ultrafast .lane-name { color: var(--hot); }
.lane-standard .lane-name { color: var(--std); }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lane-rate {
  font-size: 13px; color: var(--text-2);
  font-feature-settings: "tnum";
}
.lane-rate b { font-size: 18px; color: var(--text); font-weight: 700; }
.lane-status {
  font-size: 10.5px; letter-spacing: 0.18em;
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  min-width: 78px; text-align: center;
}
.lane-status[data-state="running"] { color: var(--cyan); border-color: rgba(89, 230, 255, 0.4); }
.lane-status[data-state="done"] {
  color: #0b0d03; background: var(--hot); border-color: var(--hot);
  font-weight: 700;
}
.lane-track {
  height: 6px; border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
  position: relative;
}
.lane-fill {
  height: 100%; width: 0;
  background: var(--std);
  border-radius: 6px;
}
.lane-ultrafast .lane-fill { background: linear-gradient(90deg, var(--cyan), var(--hot)); }
.lane-output {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 300px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-right: 6px;
}
.lane-output .tok-cursor {
  display: inline-block;
  width: 0.62em; height: 1.1em;
  vertical-align: -0.15em;
  background: var(--hot);
  animation: cursorblink 0.9s steps(1) infinite;
}
.lane-standard .tok-cursor { background: var(--std); }
@keyframes cursorblink { 50% { opacity: 0; } }
.race-controls {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.6);
}
.race-result {
  font-size: 13.5px;
  color: var(--text-2);
  font-feature-settings: "tnum";
  min-height: 1.4em;
}
.race-result b { color: var(--hot); font-weight: 700; }
.race-result .delta-big { font-size: 17px; }
.race-fine {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  background: rgba(9, 11, 18, 0.6);
}

/* ---------- playground ---------- */
.playground { background: var(--bg-2); border-block: 1px solid var(--line); }
.pg-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.pg-controls {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chip {
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2);
  font: 500 12px var(--font-mono);
  padding: 8px 14px; border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.pg-chip:hover { color: var(--text); border-color: var(--muted); }
.pg-chip[aria-selected="true"] {
  background: var(--cyan-soft); color: var(--cyan);
  border-color: rgba(89, 230, 255, 0.45);
}
.pg-label {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted); margin-top: 6px;
}
.pg-label span { color: var(--cyan); text-transform: lowercase; }
.pg-prompt {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px; line-height: 1.6;
  padding: 14px 16px;
  resize: vertical;
  min-height: 74px;
  transition: border-color 0.15s;
}
.pg-prompt:focus { outline: none; border-color: var(--cyan); }
.pg-slider-row { display: flex; align-items: center; gap: 14px; }
.pg-slider-min, .pg-slider-max { font-size: 12px; color: var(--muted); }
.pg-slider-max { color: var(--hot); }
input[type="range"]#pg-throttle {
  --pct: 100%;
  flex: 1;
  appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--hot) var(--pct), rgba(148, 163, 184, 0.15) var(--pct));
  cursor: pointer;
}
input[type="range"]#pg-throttle::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--hot);
  border: 3px solid #101408;
  box-shadow: 0 0 0 1px var(--hot), 0 4px 18px rgba(200, 255, 46, 0.35);
  cursor: grab;
  transition: transform 0.15s;
}
input[type="range"]#pg-throttle::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]#pg-throttle::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--hot);
  border: 3px solid #101408;
  box-shadow: 0 0 0 1px var(--hot), 0 4px 18px rgba(200, 255, 46, 0.35);
  cursor: grab;
}
.pg-throttle-read { font-size: 13px; color: var(--text-2); }
.pg-throttle-read b { color: var(--hot); font-size: 22px; font-weight: 700; }
.pg-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pg-metric {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.pg-metric:last-child { border-right: 0; }
.pg-metric-num { font-size: 20px; font-weight: 700; color: var(--text); font-feature-settings: "tnum"; }
.pg-metric-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pg-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: flex; flex-direction: column;
  min-height: 480px;
}
.pg-output-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted);
}
.pg-cursor-state {
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.14em;
}
.pg-cursor-state[data-state="streaming"] { color: var(--cyan); border-color: rgba(89, 230, 255, 0.4); }
.pg-cursor-state[data-state="done"] { color: var(--hot); border-color: rgba(200, 255, 46, 0.4); }
.pg-output {
  flex: 1;
  margin: 0; padding: 22px;
  font-size: 13.2px; line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  min-height: 300px; max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.pg-output .tok-cursor {
  display: inline-block; width: 0.62em; height: 1.1em;
  vertical-align: -0.15em; background: var(--cyan);
  animation: cursorblink 0.9s steps(1) infinite;
}
.pg-output .pg-chunk-em { color: var(--hot); }
.pg-compare {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(9, 11, 18, 0.5);
}
.pg-compare-row {
  display: grid;
  grid-template-columns: 190px 1fr 74px;
  align-items: center; gap: 14px;
}
.pg-compare-label { font-size: 11.5px; color: var(--text-2); letter-spacing: 0.04em; }
.pg-compare-label b { color: var(--text); }
.pg-compare-track {
  height: 10px; border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
}
.pg-compare-fill { height: 100%; width: 0; border-radius: 8px; }
.pg-compare-fill.hot { background: linear-gradient(90deg, var(--cyan), var(--hot)); }
.pg-compare-fill.cold { background: #4a5468; }
.pg-compare-time { font-size: 12px; color: var(--text-2); text-align: right; font-feature-settings: "tnum"; }
.pg-fine {
  margin: 0; padding: 0 20px 16px;
  font-size: 11px; color: var(--muted);
  background: rgba(9, 11, 18, 0.5);
}

/* ---------- scenarios ---------- */
.sc-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); margin-top: 20px; }
.sc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sc-row-flip .sc-copy { order: 2; }
.sc-row-flip .sc-viz { order: 1; }
.sc-index {
  font-size: 13px; color: var(--cyan);
  letter-spacing: 0.2em;
  display: block; margin-bottom: 14px;
}
.sc-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.sc-copy > p { color: var(--text-2); margin: 0 0 20px; font-size: 16px; }
.sc-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.sc-points li { padding-left: 18px; position: relative; }
.sc-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 1.5px;
  background: var(--hot);
}
.sc-points li em { color: var(--text-2); }
.sc-viz { min-width: 0; }

/* log shell */
.viz-logshell, .viz-finshell, .viz-voiceshell, .viz-shopshell, .viz-loopshell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.viz-loghead {
  padding: 12px 18px;
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.6);
}
.viz-logstream {
  margin: 0; padding: 16px 18px;
  font-size: 12px; line-height: 1.85;
  height: 264px; overflow: hidden;
  color: var(--text-2);
  white-space: pre-wrap;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.viz-logstream .lvl-warn { color: #ffb454; }
.viz-logstream .lvl-err { color: var(--danger); }
.viz-logstream .culprit {
  background: rgba(255, 93, 93, 0.14);
  box-shadow: -3px 0 0 var(--danger);
  padding-inline: 8px;
  border-radius: 2px;
  color: #ffb3b3;
}
.viz-logstream .sol-note {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 255, 46, 0.3);
  border-radius: 8px;
  background: var(--hot-soft);
  color: var(--hot);
  font-size: 11.5px;
}

/* finance */
.viz-finhead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px;
  font-size: 11.5px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.viz-finprice { font-size: 16px; font-weight: 700; color: var(--hot); font-feature-settings: "tnum"; }
.viz-spark { display: block; width: 100%; height: 150px; }
.viz-ticker {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 11.8px;
  color: var(--text-2);
  min-height: 66px;
  display: flex; flex-direction: column; gap: 4px;
  justify-content: center;
}
.viz-ticker .tick-flag { color: #ffb454; }
.viz-ticker .tick-time { color: var(--muted); margin-right: 10px; }

/* voice */
.viz-voiceshell { padding: 0; }
.viz-wave {
  display: flex; align-items: center; gap: 3px;
  height: 120px; padding: 0 22px;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.viz-wave i {
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--hot));
  height: 8px;
  transition: height 0.12s linear;
}
.viz-transcript {
  margin: 0; padding: 18px 22px;
  font-size: 13px; line-height: 1.8;
  min-height: 128px;
  color: var(--text-2);
  white-space: pre-wrap;
}
.viz-transcript .who { color: var(--cyan); }
.viz-transcript .hl { color: var(--hot); }
.viz-voicelabel {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 22px 16px;
  font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--muted);
}
.viz-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  animation: blip 1.6s ease-in-out infinite;
}

/* commerce */
.viz-shophead {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.viz-chat {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 236px;
  justify-content: flex-end;
}
.viz-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.8px;
  line-height: 1.55;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.viz-msg.show { opacity: 1; transform: none; }
.viz-msg-user {
  align-self: flex-end;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.viz-msg-bot {
  align-self: flex-start;
  background: var(--hot-soft);
  border: 1px solid rgba(200, 255, 46, 0.25);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.viz-msg-bot .meta { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; color: var(--hot); font-family: var(--font-mono); }
.viz-cart {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.6);
}
.viz-cart-state {
  color: var(--hot);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.viz-cart-state.show { opacity: 1; transform: none; }

/* research loop */
.viz-loopshell { padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.viz-loopcycle {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr;
  align-items: center; gap: 6px;
}
.viz-lnode {
  font-size: 10.5px; letter-spacing: 0.1em;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-2);
  transition: all 0.3s var(--ease-out);
}
.viz-lnode.active {
  border-color: var(--hot);
  color: var(--hot);
  background: var(--hot-soft);
  box-shadow: 0 0 20px rgba(200, 255, 46, 0.12);
}
.viz-larrow {
  height: 1.5px;
  background: var(--line-strong);
  position: relative;
}
.viz-larrow::after {
  content: "";
  position: absolute; right: -1px; top: -3.2px;
  border: 4px solid transparent;
  border-left-color: var(--line-strong);
}
.viz-loopbar { display: flex; flex-direction: column; gap: 12px; }
.viz-day {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 6px 14px;
  align-items: center;
}
.viz-daylabel { font-size: 11px; color: var(--muted); grid-column: 1 / -1; letter-spacing: 0.08em; }
.viz-daytrack {
  height: 10px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(89, 230, 255, 0.14), rgba(200, 255, 46, 0.14));
  overflow: hidden;
}
.viz-dayfill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--hot));
  border-radius: 8px;
}
.viz-daytime { font-size: 12.5px; color: var(--text); font-feature-settings: "tnum"; text-align: right; }
.viz-loopcount { font-size: 11px; color: var(--cyan); letter-spacing: 0.14em; }

/* ---------- quotes ---------- */
.quotes {
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(89, 230, 255, 0.05), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.quotes-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  margin-top: 14px;
  align-items: start;
}
.quote-tabs {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.quote-tab {
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px 22px;
  background: none; border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.quote-tab:last-child { border-bottom: 0; }
.quote-tab::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--hot);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease-out);
}
.quote-tab:hover { background: rgba(148, 163, 184, 0.05); color: var(--text-2); }
.quote-tab[aria-selected="true"] { background: rgba(200, 255, 46, 0.05); color: var(--text); }
.quote-tab[aria-selected="true"]::before { transform: none; }
.quote-tab[aria-selected="true"] .quote-role { color: var(--hot); }
.quote-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px;
  letter-spacing: -0.01em;
}
.quote-role { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.quote-stage {
  position: relative;
  min-height: 340px;
}
.quote-progress {
  height: 2px; background: rgba(148, 163, 184, 0.12);
  border-radius: 2px; margin-bottom: 40px;
  overflow: hidden;
}
.quote-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--hot));
}
.quote-panel { margin: 0; }
.quote-panel[hidden] { display: none; }
.quote-panel {
  animation: quotein 0.7s var(--ease-out);
}
@keyframes quotein {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.quote-text {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  padding-left: clamp(48px, 5vw, 76px);
}
.quote-text::before {
  content: "“";
  position: absolute;
  left: 0; top: -0.24em;
  font-size: 2.4em;
  line-height: 1;
  color: var(--hot);
  font-weight: 700;
}
.quote-cite {
  font-size: 14px; color: var(--text);
  letter-spacing: 0.02em;
}
.quote-cite span { color: var(--muted); }
.quotes-note {
  margin-top: 48px;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- inside ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 40px);
  margin-top: 10px;
}
.inside-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--panel);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.inside-viz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 24px;
  min-height: 190px;
  display: flex; align-items: center; justify-content: center;
}
.inside-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin: 0; letter-spacing: -0.015em;
}
.inside-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.inside-card p em { color: var(--text); font-style: normal; }

.in-timeline { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.in-event {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-2);
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: fit-content;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.in-event.on {
  opacity: 1; transform: none;
  border-color: rgba(200, 255, 46, 0.4);
  color: var(--hot);
  background: var(--hot-soft);
}
.in-ruler {
  height: 2px; background: rgba(148, 163, 184, 0.15);
  border-radius: 2px; position: relative;
  margin-block: 4px;
}
.in-ruler i {
  position: absolute; top: -3.5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 93, 93, 0.7);
}
.in-caption { font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; }

.in-clock { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.in-clockface { width: 128px; height: 128px; }
.in-ring { fill: none; stroke: rgba(148, 163, 184, 0.12); stroke-width: 9; }
.in-ring-old {
  fill: none; stroke: #4a5468; stroke-width: 9;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: center;
  stroke-linecap: round;
}
.in-ring-new {
  fill: none; stroke: var(--hot); stroke-width: 9;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: center;
  stroke-linecap: round;
}
.in-hand {
  stroke: var(--cyan); stroke-width: 2;
  transform-origin: 60px 60px;
}
.in-clocklegend { display: flex; gap: 18px; font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; flex-wrap: wrap; justify-content: center; }
.in-clocklegend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.sw-old { background: #4a5468; }
.sw-new { background: var(--hot); }

/* ---------- cerebras ---------- */
.cerebras {
  background:
    radial-gradient(800px 500px at 85% 50%, rgba(200, 255, 46, 0.05), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.cerebras-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.cerebras-copy p:not(.section-eyebrow) { color: var(--text-2); margin: 0 0 26px; max-width: 540px; }
.cerebras-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: var(--text-2);
}
.cerebras-points li { border-left: 2px solid var(--hot); padding-left: 14px; }
.cerebras-points b { color: var(--text); }
.wafer-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wafer { width: min(380px, 80vw); height: auto; display: block; }
.wafer-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- access ---------- */
.access {
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(200, 255, 46, 0.07), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.access-wrap { display: flex; justify-content: center; }
.access-card {
  max-width: 760px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: var(--panel);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.access-card .section-title { margin-inline: auto; }
.access-sub { color: var(--text-2); margin: 0 auto 36px; max-width: 520px; }
.access-form {
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto 18px;
}
.access-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text);
  font-size: 14px;
  padding: 16px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.access-input:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.15); }
.access-input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.12); }
.access-input::placeholder { color: var(--muted); }
.access-note { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin: 0; }
.access-note.ok { color: var(--hot); }
.access-note.err { color: var(--danger); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 44px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.footer-tag { color: var(--muted); font-size: 14px; max-width: 300px; margin: 14px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; padding: 5px 0;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-fine { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-badge { display: none; }
  .nav-actions .btn-sm { display: none; }
  .mobile-menu:not([hidden]) { display: flex; }
}
@media (max-width: 980px) {
  .race-lanes { grid-template-columns: 1fr; }
  .lane-ultrafast { border-right: 0; border-bottom: 1px solid var(--line); }
  .sc-row, .sc-row-flip { grid-template-columns: 1fr; }
  .sc-row-flip .sc-copy { order: 1; }
  .sc-row-flip .sc-viz { order: 2; }
  .inside-grid { grid-template-columns: 1fr; }
  .cerebras-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .quote-tabs { flex-direction: row; overflow-x: auto; }
  .quote-tab { border-bottom: 0; border-right: 1px solid var(--line); min-width: 150px; padding: 16px 18px; }
  .quote-tab::before { width: auto; height: 3px; left: 0; right: 0; top: 0; bottom: auto; transform: scaleX(0); transform-origin: left; }
  .quote-tab[aria-selected="true"]::before { transform: none; }
  .quote-stage { min-height: 0; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 116px; }
  .hero-readout { grid-template-columns: 1fr 1fr; }
  .readout-cell { border-bottom: 1px solid var(--line); }
  .readout-cell:nth-child(2n) { border-right: 0; }
  .readout-cell:nth-child(3), .readout-cell:nth-child(4) { border-bottom: 0; }
  .specs-track { grid-template-columns: 1fr 1fr; }
  .spec { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .spec:nth-child(3), .spec:nth-child(4) { border-bottom: 0; }
  .spec:nth-child(2n) { border-right: 1px solid var(--line); }
  .lane-output { min-height: 240px; max-height: 240px; }
  .race-controls { gap: 14px; }
  .pg-compare-row { grid-template-columns: 128px 1fr 62px; }
  .access-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .viz-loopcycle { grid-template-columns: 1fr; gap: 8px; }
  .viz-larrow { display: none; }
  .lane-head { flex-wrap: wrap; gap: 10px; }
  .hero-scrollcue { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
