:root {
  --bg: #06080b;
  --panel: #0c1117;
  --panel-2: #101720;
  --line: #26313d;
  --text: #f7fbff;
  --muted: #8f9aa8;
  --lime: #91ff63;
  --cyan: #58e6ff;
  --red: #ff675f;
  --amber: #f5c451;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 4%, rgba(145,255,99,.12), transparent 25rem),
    radial-gradient(circle at 15% 65%, rgba(88,230,255,.06), transparent 32rem),
    var(--bg);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
.browser-shell {
  width: min(calc(100% - 24px), 1540px);
  margin: 12px auto;
  border: 1px solid #202a34;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(6,8,11,.96);
  box-shadow: 0 44px 140px rgba(0,0,0,.48);
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #1d252e;
  background: #10151b;
}
.chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4652;
}
.chrome i:first-child { background: #ff6058; }
.chrome i:nth-child(2) { background: #ffbd44; }
.chrome i:nth-child(3) { background: #00ca4e; }
.address {
  margin: auto;
  color: #73808d;
  font: 10px var(--mono);
}
.shell {
  width: min(calc(100% - 40px), 1400px);
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(145,255,99,.34);
  border-radius: 9px;
  color: var(--lime);
  background: rgba(145,255,99,.05);
}
.navlinks { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 48px 0 28px;
}
.eyebrow {
  color: var(--lime);
  font: 800 11px var(--mono);
  letter-spacing: .13em;
}
h1 {
  max-width: 980px;
  margin: 10px 0 12px;
  font-size: clamp(40px, 5.8vw, 82px);
  line-height: .94;
  letter-spacing: -.055em;
}
.hero p { max-width: 840px; margin: 0; color: #bdc8d3; font-size: 17px; }
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.control {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #0e141b;
  font-size: 12px;
  font-weight: 800;
}
.control.primary {
  border-color: var(--lime);
  color: #081005;
  background: var(--lime);
}
.control:disabled { cursor: not-allowed; opacity: .42; }
.speed {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #0e141b;
}
.race-wrap {
  position: relative;
  margin-bottom: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #080c11;
}
.task-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #0b1016;
}
.task-strip strong { font-size: 12px; }
.task-strip small { color: var(--muted); font: 10px var(--mono); }
.task-strip .center { color: var(--lime); text-align: center; }
.stage-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--line);
}
.stage-node {
  position: relative;
  padding: 10px 14px;
  color: #65717e;
  font: 800 10px var(--mono);
  letter-spacing: .09em;
  text-align: center;
}
.stage-node + .stage-node { border-left: 1px solid var(--line); }
.stage-node.active { color: var(--text); background: rgba(88,230,255,.05); }
.stage-node.done { color: var(--lime); }
.progress-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #1f2933;
}
.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width .35s ease;
}
.race-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr);
  min-height: 610px;
}
.lane {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
}
.lane.baseline { box-shadow: inset 0 3px 0 rgba(255,103,95,.62); }
.lane.marginal {
  background:
    radial-gradient(circle at 80% 0, rgba(145,255,99,.06), transparent 18rem),
    var(--panel);
  box-shadow: inset 0 3px 0 rgba(145,255,99,.72);
}
.lane.flash { animation: lane-flash .46s ease; }
@keyframes lane-flash {
  0% { box-shadow: inset 0 0 0 1px transparent; }
  50% { box-shadow: inset 0 0 0 1px rgba(88,230,255,.55); }
  100% { box-shadow: inset 0 0 0 1px transparent; }
}
.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lane-kicker {
  display: block;
  color: var(--muted);
  font: 800 9px var(--mono);
  letter-spacing: .1em;
}
.lane-head h2 { margin: 4px 0 0; font-size: 21px; }
.mode-badge {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 800 8px var(--mono);
  letter-spacing: .08em;
}
.baseline .mode-badge { color: #ff958f; }
.marginal .mode-badge { color: var(--lime); }
.metric-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
  margin-bottom: 12px;
}
.live-metric {
  padding: 10px;
  border: 1px solid #222d38;
  border-radius: 10px;
  background: #090e14;
}
.live-metric span {
  display: block;
  color: #6e7b88;
  font: 800 8px var(--mono);
  letter-spacing: .07em;
}
.live-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  letter-spacing: -.02em;
}
.workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #222d38;
  border-radius: 10px;
  color: var(--muted);
  font: 10px var(--mono);
  background: #090e14;
}
.workspace strong { color: var(--red); }
.workspace strong[data-state="PATCHED"] { color: var(--amber); }
.workspace strong[data-state="PASS"] { color: var(--lime); }
.gate {
  min-height: 98px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #24303b;
  border-radius: 12px;
  background: #090e14;
}
.gate-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font: 800 9px var(--mono);
}
.gate-title span:first-child { color: var(--muted); }
.decision { color: var(--muted); }
.decision.fund { color: var(--lime); }
.decision.reject { color: var(--red); }
.gate p { margin: 0; color: #a7b2bd; font-size: 11px; line-height: 1.45; }
.gate-score {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  color: #667481;
  font: 9px var(--mono);
}
.terminal {
  height: 300px;
  overflow-y: auto;
  padding: 13px;
  border: 1px solid #222d38;
  border-radius: 12px;
  background: #05080c;
  font: 11px/1.55 var(--mono);
  scrollbar-width: thin;
}
.term-line { margin: 0 0 8px; color: #9eabb7; white-space: pre-wrap; }
.term-line.command { color: var(--text); }
.term-line.execute::before { content: "EXEC  "; color: var(--amber); }
.term-line.fund::before { content: "FUND  "; color: var(--lime); }
.term-line.reject::before { content: "SKIP  "; color: var(--red); }
.term-line.output { padding-left: 12px; color: #71808e; }
.term-line.pass { color: var(--lime); }
.vs-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #090d12;
}
.vs { color: #687581; font: 900 12px var(--mono); }
.tick {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font: 800 10px var(--mono);
  background: #0c1219;
}
.waste-meter {
  position: relative;
  width: 8px;
  height: 230px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b242d;
}
.waste-meter span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: linear-gradient(0deg, var(--lime), var(--cyan));
  transition: height .35s ease;
}
.waste-label {
  color: #687581;
  font: 800 8px var(--mono);
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.result-reveal {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-top: 1px solid rgba(145,255,99,.32);
  background: linear-gradient(90deg, rgba(145,255,99,.08), rgba(88,230,255,.03));
}
.result-reveal.show { display: grid; animation: reveal .45s ease both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-reveal h2 { margin: 0 0 5px; font-size: clamp(24px,3vw,38px); }
.result-reveal p { margin: 0; color: var(--muted); }
.result-numbers { display: flex; gap: 16px; }
.result-numbers div { min-width: 130px; }
.result-numbers span {
  display: block;
  color: var(--muted);
  font: 800 8px var(--mono);
}
.result-numbers strong { display: block; margin-top: 4px; color: var(--lime); font-size: 22px; }
.below {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  margin: 0 0 42px;
}
.proof-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.proof-card h3 { margin: 0 0 8px; }
.proof-card p, .proof-card li { color: var(--muted); font-size: 12px; line-height: 1.55; }
.proof-card code { color: #dce6f0; font: 11px var(--mono); }
.legacy-contract { display: none; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: #65727e;
  font-size: 10px;
}
.footer nav { display: flex; gap: 14px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .controls { justify-content: flex-start; }
  .race-grid { grid-template-columns: 1fr; }
  .vs-rail {
    min-height: 70px;
    flex-direction: row;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .waste-meter { width: 220px; height: 7px; }
  .waste-meter span { width: 0; height: 100%; transition: width .35s ease; }
  .waste-label { writing-mode: initial; transform: none; }
  .below { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .browser-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .chrome { display: none; }
  .shell { width: min(calc(100% - 24px), 1400px); }
  .navlinks { display: none; }
  h1 { font-size: 43px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .task-strip { grid-template-columns: 1fr; text-align: left; }
  .task-strip .center { text-align: left; }
  .result-reveal { grid-template-columns: 1fr; }
  .result-numbers { flex-wrap: wrap; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
