/* ==========================================================
   STEEROS · nova — flat editorial build
   Design rules (better-ui):
   - hairline borders for structure, restrained shadows for elevation
   - concentric border radius (outer surfaces larger than nested)
   - transitions only on the properties that change
   - interactive elements: scale(0.96) press, never keyframes
   - motion reserved for status indicators & one-shot reveals
   ========================================================== */

:root {
  --bg: #f6f3f0;
  --surface: #ffffff;
  --surface-2: #f3ece9;
  --border: #e4dcd7;
  --border-strong: #d2c4bd;
  --text: #22161a;
  --muted: #7d6a70;
  --accent: #8a2233;
  --accent-strong: #6e1a28;
  --accent-bg: rgba(138, 34, 51, 0.08);
  --accent-faint: #c98c97;
  --accent-glow: rgba(138, 34, 51, 0.18);
  --alt: #b45309;
  --alt-dim: #92400e;
  --alt-bg: rgba(180, 83, 9, 0.09);
  --alt-glow: rgba(180, 83, 9, 0);
  --danger: #b3403a;
  --danger-bg: rgba(179, 64, 58, 0.08);
  --danger-glow: rgba(179, 64, 58, 0);
  --shadow: 0 1px 2px rgba(34, 22, 26, 0.05), 0 8px 24px -12px rgba(34, 22, 26, 0.16);
  --shadow-raised: 0 2px 4px rgba(34, 22, 26, 0.06), 0 16px 36px -16px rgba(34, 22, 26, 0.24);
  --tier1: #8a2233;
  --tier2: #b45309;
  --tier3: #b3403a;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --term-bg: #171116;
  --term-border: #2c2226;
  --term-muted: #9a838b;
  --term-accent: #e08baf;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- subtle grain texture ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main.page { position: relative; z-index: 2; }

::selection { background: var(--accent-bg); color: var(--accent-strong); }

.muted { color: var(--muted); }
.dim { color: var(--muted); }
.danger { color: var(--danger); }
.warn { color: var(--alt); }
.ok { color: var(--accent); }
.hot { color: var(--alt); }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ---------- skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--surface);
  color: var(--accent-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 22px 0 16px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.logo { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.logo a { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-img { display: inline-block; height: 24px; width: auto; border-radius: var(--radius-sm); }
.logo-mark { color: var(--accent); }
.tagline { font-size: 12.5px; color: var(--muted); }

/* ---------- sticky nav ---------- */
.sections {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  user-select: none;
}
.tab {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 20px 0 20px; scroll-margin-top: 58px; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- page router ---------- */
.view { display: none; }
.view.active { display: block; animation: page-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.view.active > .section > * { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.active > .section > *:nth-child(1) { animation-delay: 0.05s; }
.view.active > .section > *:nth-child(2) { animation-delay: 0.12s; }
.view.active > .section > *:nth-child(3) { animation-delay: 0.19s; }
.view.active > .section > *:nth-child(4) { animation-delay: 0.26s; }
.view.active > .section > *:nth-child(5) { animation-delay: 0.33s; }
.view.active .hero > * { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.active .hero > *:nth-child(1) { animation-delay: 0.05s; }
.view.active .hero > *:nth-child(2) { animation-delay: 0.12s; }
.view.active .hero > *:nth-child(3) { animation-delay: 0.19s; }
.view.active .hero > *:nth-child(4) { animation-delay: 0.26s; }
.view.active .hero > *:nth-child(5) { animation-delay: 0.33s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .view.active { animation: none; }
  .view.active > .section > *, .view.active .hero > * { animation: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge::after, .counter-value, .section-title::after, .ld-live { animation: none !important; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 12px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 14px; }
.hero-badge {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, var(--accent-faint) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: badge-shine 3.4s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes badge-shine {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -90% 0; }
}
.hero-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 560px;
  text-wrap: balance;
}
.hero-sub { font-size: 16.5px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-copy { align-items: center; text-align: center; }
  .hero-cta { justify-content: center; }
}

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.card-body { padding: 18px; }
.card-body p { margin-bottom: 10px; }
.card-body.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: center; }
@media (max-width: 860px) { .card-body.split { grid-template-columns: 1fr; } }
.card-body.cent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.box-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.pill {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  line-height: 1.2;
}
.pill.warn { color: var(--alt); border-color: var(--border-strong); background: var(--alt-bg); }
.pill.ok { color: var(--accent-strong); border-color: var(--border-strong); background: var(--accent-bg); }
.pill.hot { color: var(--alt); border-color: var(--border-strong); background: var(--alt-bg); }

.callout {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-wrap: balance;
}
.framing {
  color: var(--alt);
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  margin-top: 6px;
}

.bullets { list-style: none; }
.bullets li { padding: 4px 0 4px 24px; position: relative; }
.bullets li::before { content: "·"; color: var(--accent); position: absolute; left: 8px; font-weight: 700; }

/* ---------- problem : cost leak widget ---------- */
.cost-leak {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cl-flow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 58px;
}
.cl-stack-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cl-stack-line {
  height: 3px;
  border-radius: 2px;
  background: var(--border-strong);
  animation: cl-pulse 1.6s ease-in-out infinite;
}
.cl-stack-line:nth-child(3) { animation-delay: 0.2s; }
.cl-stack-line:nth-child(4) { animation-delay: 0.4s; }
@keyframes cl-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.cl-track {
  position: relative;
  flex: 1;
  height: 34px;
  overflow: visible;
}
.cl-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger-glow);
  will-change: transform;
}
.cl-flagship {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  background: var(--danger-bg);
  min-width: 86px;
}
.cl-fs-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--danger);
}
.cl-fs-flame {
  width: 10px;
  height: 12px;
  background: radial-gradient(ellipse at 50% 70%, var(--alt) 0%, var(--danger) 60%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: cl-flicker 0.7s ease-in-out infinite alternate;
  filter: blur(0.5px);
}
@keyframes cl-flicker {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.25) rotate(-6deg); opacity: 1; }
}
.cl-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
}
.cl-readout-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cl-burn {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.cl-readout-caption {
  font-size: 12px;
  color: var(--muted);
}

.biz-stats { display: flex; flex-direction: column; gap: 10px; }
.biz-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface-2);
}
.biz-stat .n { font-size: 24px; color: var(--text); display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.biz-stat .l { color: var(--muted); font-size: 13px; }
.biz-stat .d { color: var(--alt); font-size: 13px; }

.biz-study {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.55;
}
.study-name { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.study-name:hover { color: var(--accent); }
.study-claim { color: var(--muted); }
.study-link { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.study-link:hover { text-decoration: underline; }

/* ---------- demo terminal (hero) ---------- */
.panel.hero-term {
  width: 100%;
  min-width: 0;
  text-align: left;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel.hero-term .rd-panel {
  border: 0;
  border-radius: 0;
  min-height: 0;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--term-border);
}
.window-dots span {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--term-muted);
  opacity: 0.55;
}
.panel-head .box-title { color: var(--term-muted); }
.typetext .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

/* ---------- counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 860px) { .counters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .counters { grid-template-columns: 1fr; } }
.counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.counter:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.counter-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.counter-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-wrap: nowrap;
  background-image: linear-gradient(100deg, var(--text) 40%, var(--accent) 50%, var(--text) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: counter-shine 3.2s ease-in-out infinite;
}
@keyframes counter-shine {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -90% 0; }
}
.counter-sub { display: block; font-size: 12px; color: var(--muted); }
.counter.hot { border-color: var(--accent-faint); }
.counter.hot .counter-value { color: var(--accent-strong); }

/* ---------- sparkline ---------- */
.spark { width: 100%; height: 180px; display: block; }
.spark .gridline { stroke: var(--border); stroke-dasharray: 3 5; }
.spark .area { fill: var(--accent-bg); }
.spark .line { stroke: var(--accent); stroke-width: 2; fill: none; }
.spark .dot { fill: var(--accent-strong); }
.spark .dot-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: spark-pulse 1.8s ease-out infinite;
}
@keyframes spark-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.spark .spark-lbl { fill: var(--muted); font-size: 12px; font-family: "JetBrains Mono", monospace; }

/* ---------- barchart ---------- */
.barchart { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.bar-row .bar-label {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13.5px; margin-bottom: 4px;
}
.bar-track {
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0;
  background: var(--tier1);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: bar-shimmer 2.4s ease-in-out infinite;
}
@keyframes bar-shimmer {
  0% { background-position: 180% 0; }
  60%, 100% { background-position: -80% 0; }
}
.bar-row:nth-child(2) .bar-fill { background: var(--tier2); }
.bar-row:nth-child(3) .bar-fill { background: var(--tier3); }

.view.active .donut svg g circle { animation: donut-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.active .donut svg g circle:nth-child(2) { animation-delay: 0.08s; }
.view.active .donut svg g circle:nth-child(3) { animation-delay: 0.16s; }
.view.active .donut .donut-center { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
@keyframes donut-pop {
  from { opacity: 0; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1); }
}
.view.active .legend-row { animation: rise-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.active .legend-row:nth-child(2) { animation-delay: 0.08s; }
.view.active .legend-row:nth-child(3) { animation-delay: 0.16s; }
.view.active .biz-stat { animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.active .biz-stat:nth-child(2) { animation-delay: 0.08s; }
.view.active .biz-stat:nth-child(3) { animation-delay: 0.16s; }
.view.active .biz-stat:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .view.active .donut svg g circle, .view.active .donut .donut-center,
  .view.active .legend-row, .view.active .biz-stat { animation: none !important; }
}

/* ---------- flagship burn widget ---------- */
.burn-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 820px) { .burn-body { grid-template-columns: 1fr; } }
.burn-stage {
  position: relative;
  background: #0b0809;
  border: 1px solid var(--term-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 240px;
}
.burn-stage.routed {
  background:
    radial-gradient(140% 140% at 14% 50%, rgba(26, 112, 83, 0.14), transparent 60%),
    #0b0809;
  border-color: rgba(57, 148, 110, 0.35);
}
.burn-stage canvas { display: block; width: 100%; height: auto; }
.burn-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.burn-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b99aa5;
}
.burn-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffd9c4;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(224, 139, 175, 0.35);
  transition: color 0.4s ease, transform 0.4s ease;
}
.burn-value.maxed { color: #ff6a5e; text-shadow: 0 0 26px rgba(255, 90, 80, 0.55); transform: scale(1.06); }
.burn-sub { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--term-muted); }
@media (max-width: 560px) {
  .burn-value { font-size: 44px; }
}

/* ---------- burn comparison ---------- */
.burn-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.burn-footer strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.bc-dot.ok { background: var(--accent); }
.burn-value.ok { color: #b9f2d8; }
.burn-value.ok.maxed { color: #7dffc2; text-shadow: 0 0 26px rgba(120, 255, 190, 0.5); }
.burn-eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--term-muted); }

/* ---------- donut ---------- */
.donut-row { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
@media (max-width: 720px) { .donut-row { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- prompt → model routing demo · neural ---------- */
.rd-panel {
  background:
    radial-gradient(140% 140% at 14% 50%, rgba(138,34,51,0.18), transparent 60%),
    #0b0809;
  color: var(--term-muted);
}
.rd-panel .rd-stage { position: relative; max-width: 860px; margin: 0 auto; }
.rd-panel svg { display: block; width: 100%; height: auto; }
.rd-lbl {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b99aa5;
  pointer-events: none;
}
.rd-hub-label { left: 7.2%; top: 37%; }
.rd-node-label { left: 84%; transform: translateX(-100%); white-space: nowrap; }
.rd-node-label[data-i="0"] { top: 9%; }
.rd-node-label[data-i="1"] { top: 43%; }
.rd-node-label[data-i="2"] { top: 77%; }
.rd-node-label.on { color: #f2e6ea; }
.rd-panel svg .rd-hub-ring { filter: drop-shadow(0 0 4px var(--term-accent)); }
.rd-node { cursor: default; }
.rd-node .n-ring { transition: opacity 0.35s ease, filter 0.35s ease; opacity: 0; }
.rd-node.lit .n-ring { opacity: 1; filter: drop-shadow(0 0 6px var(--term-accent)); }
.rd-node .n-core { transition: opacity 0.35s ease; opacity: 0.55; fill: #e08baf; }
.rd-node.lit .n-core { opacity: 1; }
.rd-link { fill: none; stroke: #4a383d; stroke-width: 1.4; stroke-dasharray: 2 5; opacity: 0.9; transition: stroke 0.3s ease; }
.rd-link.drawing { stroke: #ffb3c8; filter: drop-shadow(0 0 5px var(--term-accent)); }
.rd-tracer { filter: drop-shadow(0 0 6px var(--term-accent)); }
.rd-readout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  min-height: 58px;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  border-top: 1px solid var(--term-border);
  color: var(--term-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rd-readout .r-promp { color: #f2e6ea; }
.rd-readout .r-score { color: var(--term-accent); }
.rd-readout .r-route { color: #e8d8dd; }
.donut { position: relative; width: 170px; height: 170px; }
.donut svg { transform: rotate(-90deg); }
.seg1 { stroke: var(--tier1); }
.seg2 { stroke: var(--tier2); }
.seg3 { stroke: var(--tier3); }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: 13px; color: var(--muted);
}
.donut-center b { font-size: 26px; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.legend-row .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw1 { background: var(--tier1); }
.sw2 { background: var(--tier2); }
.sw3 { background: var(--tier3); }
.legend-row .lname { flex: 1; }
.legend-row .pct { color: var(--accent-strong); font-family: "JetBrains Mono", monospace; }
@media (max-width: 720px) {
  .legend { grid-template-columns: 1fr; width: 100%; max-width: 320px; }
  .legend-row { justify-content: flex-start; }
}

/* ---------- dispatch log ---------- */
.dispatch-log { padding: 12px 18px; font-family: "JetBrains Mono", monospace; font-size: 13.5px; }
.dlog-row { display: flex; gap: 16px; padding: 3px 0; animation: row-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.dlog-row .ts { color: var(--muted); }
.dlog-row .src { color: var(--text); flex: 1; }
.dlog-row .route { color: var(--alt); }
.dlog-row .saved { color: var(--accent-strong); }

/* ---------- roadmap ---------- */
.roadmap-head { margin-bottom: 16px; }
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap-item {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.rm-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.rm-id { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); }
.rm-title { font-family: "Space Grotesk", sans-serif; font-size: 18.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; text-wrap: balance; }
.rm-status {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.rm-desc { margin-top: 4px; color: var(--text); }
.rm-meta { display: flex; gap: 20px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.rm-progress { margin-top: 12px; height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.rm-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1.4s ease; position: relative; overflow: hidden; }
.rm-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: bar-shimmer 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .bar-fill::after, .rm-fill::after { display: none; } }
.status-dev { color: var(--accent-strong); }
.status-planned { color: var(--alt); }
.status-backlog { color: var(--muted); }
.status-inc { color: var(--accent-strong); }

/* ---------- roadmap locked teaser ---------- */
.roadmap-item.locked { position: relative; overflow: hidden; }
.roadmap-item.locked .rm-blur { filter: blur(4px); opacity: 0.55; pointer-events: none; user-select: none; }
.rm-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.rm-lock-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.rm-lock-icon svg { width: 100%; height: 100%; display: block; }
.rm-lock-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: transparent; color: var(--accent-strong); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ---------- focus visibility (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lead-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tab:focus-visible {
  outline-offset: -2px;
}
.dash-close:focus-visible {
  outline-offset: 4px;
}

/* ---------- download file list ---------- */
.filelist {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 14px; width: 100%;
}
.filerow { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.filerow .fn { font-family: "JetBrains Mono", monospace; color: var(--accent-strong); }
.filerow .fd { color: var(--muted); }

/* ---------- live dashboard notice ---------- */
.dispatch-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 4px;
}
.dispatch-notice p { margin: 0; }

/* ---------- download / enterprise grid ---------- */
.dl-grid { align-items: stretch; }
.dl-grid .card { display: flex; flex-direction: column; }
.dl-grid .card-body { flex: 1; display: flex; flex-direction: column; }
.dl-grid .card-body.cent { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.local-setup { width: 100%; margin: 0 0 16px; text-align: left; }
.local-setup .box-title { display: block; font-size: 11px; letter-spacing: .09em; margin: 0 0 10px; opacity: .7; }
.ls-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; border-top: 1px solid var(--border); }
.ls-row:last-child { border-bottom: 1px solid var(--border); }
.ls-n { flex: 0 0 18px; height: 18px; line-height: 16px; text-align: center; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--accent); }
.ls-c { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-grid .card-body.cent .btn.ghost { margin-top: 2px; }
.dl-grid .filelist { margin-top: 18px; }
.dl-grid .lead-form { margin-top: auto; }
.dl-grid .filerow { width: 100%; }
.enterprise-card { display: flex; flex-direction: column; }
.enterprise-card .card-body { flex: 1; display: flex; flex-direction: column; }
.ent-features {
  list-style: none;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ent-features li { padding-left: 22px; position: relative; font-size: 14.5px; }
.ent-features li::before { content: "·"; position: absolute; left: 8px; color: var(--accent); font-weight: 700; }

/* ---------- enterprise lead form ---------- */
.lead-form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.lead-form label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.lead-form label:first-child { margin-top: 0; }
.lead-form input {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
.lead-form input:focus { border-color: var(--accent); }
.lead-form input::placeholder { color: var(--muted); }
.lead-form .btn { margin-top: 4px; }
.lead-form .btn:disabled { opacity: 0.6; cursor: wait; }
.lead-msg { margin-top: 10px; min-height: 1.2em; font-size: 13.5px; }
.lead-msg.ok { color: var(--accent); }
.lead-msg.danger { color: var(--danger); }

/* waitlist + locked quickstart */
.wait-msg { margin-top: 10px; min-height: 1.2em; font-size: 13.5px; }
.wait-msg.ok { color: var(--accent); }
.wait-msg.danger { color: var(--danger); }
.local-setup.locked { filter: blur(5px); opacity: 0.55; user-select: none; pointer-events: none; transition: filter 0.4s ease, opacity 0.4s ease; }
.local-setup.unlocked { filter: blur(0); opacity: 1; pointer-events: auto; }

/* ---------- waitlist gate (free local setup) ---------- */
.waitlist-form { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; min-height: 0; }
.waitlist-form label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wait-row { display: flex; gap: 8px; width: 100%; }
.wait-row input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
.wait-row input:focus { border-color: var(--accent); }
.wait-row input::placeholder { color: var(--muted); }
.waitlist-form .btn:disabled { opacity: 0.6; cursor: wait; }

/* locked reveal: blur + fade the steps until the email unlocks them */
.local-setup { transition: filter 0.35s ease, opacity 0.35s ease; }
.local-setup.locked { filter: blur(7px); opacity: 0.5; pointer-events: none; user-select: none; }
.local-setup.locked::after {
  content: "locked — drop your email above to unlock the 60s quickstart";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  pointer-events: none;
}

/* ---------- live local dashboard overlay ---------- */
.dash-page {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}
.dash-page.open { display: flex; }
.dash-mask { position: absolute; inset: 0; background: rgba(20, 22, 26, 0.55); transition: background-color 0.2s ease; }
.dash-panel {
  position: relative;
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -24px rgba(16, 20, 28, 0.4);
  padding: 22px 26px;
}
.dash-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dash-title { font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.ld-live {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  border: 1px solid var(--accent-faint);
  background: var(--accent-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  animation: dash-blink 1.4s steps(1) infinite;
}
@keyframes dash-blink { 50% { opacity: 0.4; } }
.dash-close {
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}
.dash-close:hover { color: var(--text); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.dash-stat > span:first-child { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 700; color: var(--accent-strong); }
.dash-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.dash-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.dash-foot .fn { font-family: "JetBrains Mono", monospace; color: var(--accent-strong); }

/* ---------- footer ---------- */
.statusbar {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 14px 0 26px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.clock { font-family: "JetBrains Mono", monospace; color: var(--accent-strong); }

/* ---------- micro-animations ---------- */
@keyframes blink { 50% { opacity: 0; } }

/* section-title underline sweep */
.section-title { position: relative; }
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 42px;
  background: var(--accent);
  border-radius: 2px;
  animation: underline-sweep 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes underline-sweep {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}