:root {
  --ink: #f4f1e8;
  --muted: #aaa99f;
  --line: #30332f;
  --panel: #171916;
  --acid: #c8ff3d;
  --orange: #ff8a4c;
  --black: #0d0f0d;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  color: var(--ink);
  background: var(--black);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 5%, rgb(200 255 61 / 8%), transparent 28rem),
    var(--black);
}

a { color: inherit; text-underline-offset: .25em; }

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.brand-mark { color: var(--acid); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover { color: var(--acid); }

.hero { padding: clamp(72px, 11vw, 145px) 0 72px; }
.eyebrow,
.section-number,
.fact-label {
  color: var(--acid);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 38px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: .93;
}

.protocol-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 720px);
  gap: 28px;
  align-items: start;
}

.protocol-line p { margin: 0; color: var(--muted); line-height: 1.7; }
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 7px 12px;
  color: var(--acid);
  font-size: .78rem;
  font-weight: 800;
}
.pill.legacy { color: var(--orange); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.fact-card { min-height: 195px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-label { margin: 0 0 32px; }
.fact-value { margin: 0; font-family: system-ui, sans-serif; font-size: 1.2rem; font-weight: 680; overflow-wrap: anywhere; }
.fact-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

.map-section,
.browser-section,
.terminal {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 100px);
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

h2 { margin: 15px 0 24px; font-family: system-ui, sans-serif; font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1; }
.map-copy > p:not(.section-number), .lede { color: var(--muted); line-height: 1.7; }
.map-copy a { display: inline-block; margin-top: 20px; color: var(--acid); }
.map-frame { position: relative; min-height: 440px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; filter: grayscale(1) contrast(1.1); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.attribution { position: absolute; right: 4px; bottom: 4px; z-index: 2; padding: 4px 6px; background: rgb(13 15 13 / 88%); color: var(--ink); font-size: .65rem; }

.browser-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.browser-grid div { min-height: 118px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.browser-grid .wide { grid-column: 1 / -1; }
.browser-grid dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.browser-grid dd { margin: 13px 0 0; font-family: system-ui, sans-serif; font-weight: 650; }

.terminal { align-items: end; }
.terminal-copy h2 { margin-bottom: 0; }
.code-lines { padding: 12px 24px; border: 1px solid var(--line); background: var(--panel); }
.code-lines code { display: block; padding: 17px 0; overflow-x: auto; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.code-lines code:last-child { border: 0; }
.code-lines span { color: var(--acid); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0 70px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.6;
}
footer p { max-width: 480px; }

@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .map-section, .browser-section, .terminal { grid-template-columns: 1fr; padding: 80px 0; }
  .map-frame { min-height: 360px; }
}

@media (max-width: 520px) {
  .topbar, main, footer { width: min(100% - 24px, 1180px); }
  nav { gap: 14px; }
  nav a:first-child { display: none; }
  .hero { padding-top: 70px; }
  .protocol-line { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr; }
  .fact-card { min-height: 155px; }
  .browser-grid { grid-template-columns: 1fr; }
  .browser-grid .wide { grid-column: auto; }
  footer { flex-direction: column; }
}

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

