:root {
  color-scheme: dark;
  --bg: #07100f;
  --surface: #0d1917;
  --surface-2: #11211e;
  --line: rgba(207, 255, 229, 0.14);
  --text: #f3f8f5;
  --muted: #9db0a8;
  --mint: #83f6b7;
  --cyan: #69d9d0;
  --amber: #ffc86a;
  --danger: #ff8b7b;
  --display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 3%, rgba(39, 171, 125, 0.13), transparent 28rem),
    linear-gradient(180deg, #07100f 0%, #091411 52%, #07100f 100%);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.65;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--mint); color: #07100f; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--mint); color: var(--mint); font: 700 .9rem var(--mono); }
nav { display: flex; gap: 1.8rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .88rem; }
nav a:hover, nav a:focus-visible { color: var(--mint); }

.hero, .section, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: 7rem 0; }
.eyebrow { margin: 0 0 1.15rem; color: var(--mint); font: 700 .74rem/1.3 var(--mono); letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7vw, 6.7rem); line-height: .96; letter-spacing: -.065em; font-weight: 650; }
h1 span { color: var(--mint); }
.lede { max-width: 710px; color: #bdccc6; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; gap: .65rem; align-items: center; padding: .78rem 1.15rem; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 650; }
.button.primary { background: var(--mint); color: #07100f; border-color: var(--mint); }
.button.secondary { background: rgba(255,255,255,.025); }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.24); }

.hero-panel { padding: 1.5rem; background: rgba(17, 33, 30, .72); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.status-line { display: flex; gap: .6rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); color: var(--mint); font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(131,246,183,.1); }
.hero-panel dl { margin: 0; }
.hero-panel dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.hero-panel dt { color: var(--muted); font-size: .76rem; }
.hero-panel dd { margin: .2rem 0 0; font: 600 .92rem var(--mono); }
.panel-note { margin: 1rem 0 0; color: var(--amber); font-size: .76rem; line-height: 1.55; }

.section { padding: 7rem 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 3rem; }
h2 { margin-bottom: 1rem; font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.06; letter-spacing: -.05em; }
.section-heading > p:last-child { color: var(--muted); }

.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; margin: 0; background: var(--line); list-style: none; }
.stage-card { min-height: 390px; padding: 1.5rem; background: var(--surface); }
.stage-number { color: var(--mint); font: 700 .75rem var(--mono); }
.stage-card h3 { margin: 4rem 0 1rem; font-size: 1.35rem; }
.stage-card p, .stage-card li { color: var(--muted); font-size: .87rem; }
.stage-card ul { margin: 2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.stage-card li { margin: .35rem 0; }
.stage-card li::before { content: "— "; color: var(--mint); }
.accent-card { background: linear-gradient(150deg, rgba(35,100,75,.5), var(--surface) 60%); }

.reward-section { position: relative; }
.reward-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; }
.formula-card { padding: clamp(1.4rem, 4vw, 3rem); background: #0a1513; border: 1px solid rgba(131,246,183,.35); box-shadow: inset 0 0 80px rgba(131,246,183,.025); }
.formula-label { color: var(--muted); font: 700 .68rem var(--mono); letter-spacing: .14em; }
.formula-card code { display: block; margin: 1rem 0; color: #d9e7e1; font: clamp(.8rem, 1.4vw, 1rem)/1.7 var(--mono); overflow-wrap: anywhere; }
.formula-card .formula-final { margin-top: 2rem; padding: 1rem; background: rgba(131,246,183,.08); color: var(--mint); font-weight: 700; }
.formula-divider { height: 1px; margin: 2rem 0; background: var(--line); }
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.35rem; background: var(--surface); align-items: start; }
.principles article > span { color: var(--mint); font: 700 .8rem var(--mono); }
.principles h3 { margin-bottom: .35rem; font-size: 1rem; }
.principles p { margin-bottom: 0; color: var(--muted); font-size: .84rem; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.metric-card > p { color: var(--muted); font: 700 .76rem var(--mono); }
.metric-card strong { display: block; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
.metric-card > span { color: var(--muted); font-size: .78rem; }
.metric-card.featured { border-color: rgba(131,246,183,.55); background: linear-gradient(145deg, rgba(35,100,75,.28), var(--surface)); }
.metric-split { display: grid; gap: .4rem; margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #cad8d2; font-size: .8rem; }
.metric-split .positive { color: var(--mint); }
.evidence-callout { display: grid; grid-template-columns: 45px 1fr 1fr; gap: 1.4rem; margin-top: 1rem; padding: 1.5rem; border: 1px solid rgba(255,200,106,.35); background: rgba(255,200,106,.045); }
.callout-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--amber); color: var(--amber); font: 700 1rem var(--mono); }
.evidence-callout h3 { margin-bottom: .4rem; font-size: .95rem; }
.evidence-callout p { margin-bottom: 0; color: var(--muted); font-size: .83rem; }

.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.artifact-card { display: block; min-height: 250px; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
a.artifact-card:hover, a.artifact-card:focus-visible { border-color: var(--mint); transform: translateY(-3px); }
.artifact-type { color: var(--mint); font: 700 .68rem var(--mono); letter-spacing: .13em; }
.artifact-card h3 { margin: 3.3rem 0 .7rem; font-size: 1.25rem; }
.artifact-card p { color: var(--muted); font-size: .85rem; }
.artifact-link { display: inline-block; margin-top: 1rem; color: var(--mint); font-size: .82rem; }
.missing-card { border-color: rgba(255,139,123,.25); }
.missing-card .artifact-type, .missing-card .artifact-link { color: var(--danger); }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer p { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .button, .artifact-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 5rem 0; }
  .hero-panel { max-width: 620px; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .reward-layout { grid-template-columns: 1fr; }
  .metrics-grid, .artifact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  nav { display: none; }
  .hero, .section, footer { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero { padding: 4rem 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .section { padding: 5rem 0; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .stage-card { min-height: 320px; }
  .stage-card h3 { margin-top: 2.5rem; }
  .evidence-callout { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

