:root {
  color-scheme: dark;
  --bg: #080c0f;
  --surface: #10171b;
  --surface-strong: #151f24;
  --line: #27343a;
  --text: #e9f0ee;
  --muted: #93a39f;
  --green: #74d9a0;
  --green-dim: #183d2c;
  --gold: #d9bd74;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 12%, rgba(49, 113, 81, 0.13), transparent 28rem),
    linear-gradient(rgba(255,255,255,0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.017) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--text);
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 680; letter-spacing: -0.02em; }
.brand-mark { position: relative; display: inline-flex; align-items: center; gap: 4px; width: 28px; height: 24px; }
.brand-mark::before { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 1px; background: var(--green); }
.brand-mark i { z-index: 1; width: 7px; height: 7px; border: 1px solid var(--green); border-radius: 50%; background: var(--bg); }
.brand-mark i:nth-child(2) { margin-left: 2px; }
.environment { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 0.75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.environment > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(116, 217, 160, 0.55); }
.intro { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.75fr); gap: clamp(32px, 7vw, 88px); align-items: end; padding: 80px 0 64px; }
.eyebrow { margin: 0 0 16px; color: var(--green); font: 600 0.72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { max-width: 750px; margin: 0; font-size: clamp(2.3rem, 5.5vw, 4.7rem); font-weight: 570; line-height: 1.03; letter-spacing: -0.055em; }
.lede { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.13rem); line-height: 1.75; }
.data-note { padding: 24px; border: 1px solid #566044; border-radius: 10px; background: rgba(217, 189, 116, 0.035); }
.note-label, .step-state { display: block; margin-bottom: 10px; color: var(--gold); font: 600 0.67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.09em; text-transform: uppercase; }
.data-note strong { font-size: 1rem; font-weight: 620; }
.data-note p { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.map-preview { padding: 40px; border: 1px solid var(--line); border-radius: 14px; background: rgba(16, 23, 27, 0.9); box-shadow: 0 24px 80px rgba(0,0,0,0.22); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 8px; }
h2 { margin: 0; font-size: 1.45rem; font-weight: 580; letter-spacing: -0.025em; }
.phase { color: var(--muted); font: 500 0.7rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 38px 0 4px; list-style: none; }
.pipeline-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 0 28px 0 0; }
.pipeline-step:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 31px; width: calc(100% - 26px); height: 1px; background: var(--line); }
.step-index { z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font: 500 0.65rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.is-current .step-index { border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(116, 217, 160, 0.13); }
.is-current:not(:last-child)::after { background: linear-gradient(90deg, var(--green), var(--line)); }
.pipeline-step > div { padding-top: 48px; }
.pipeline-step .step-state { color: var(--muted); }
.pipeline-step.is-current .step-state { color: var(--green); }
h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 590; }
.pipeline-step p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.checks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0 72px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.checks > div { padding: 20px 24px; }
.checks > div:not(:last-child) { border-right: 1px solid var(--line); }
.checks span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.72rem; }
.checks strong { font-size: 0.8rem; font-weight: 570; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font: 500 0.68rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .data-note { max-width: 460px; }
  .map-preview { padding: 28px; }
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipeline-step { grid-template-columns: 34px 1fr; padding-right: 0; }
  .pipeline-step > div { padding-top: 0; }
  .pipeline-step:not(:last-child)::after { top: 31px; bottom: -29px; left: 15px; width: 1px; height: auto; }
  .is-current:not(:last-child)::after { background: linear-gradient(var(--green), var(--line)); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .checks > div:nth-child(2) { border-right: 0; }
  .checks > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1120px); }
  .topbar { min-height: 72px; }
  .environment { font-size: 0.62rem; }
  .intro { padding-top: 44px; }
  h1 { font-size: 2.45rem; }
  .map-preview { padding: 22px; }
  .section-heading { display: block; }
  .phase { display: block; margin-top: 14px; }
  .checks > div { padding: 16px; }
  footer { display: block; }
  footer span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
