:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --white: #fffef8;
  --ink: #111411;
  --muted: #62675f;
  --line: #cfd1c8;
  --acid: #c8f455;
  --coral: #ff6b55;
  --blue: #86b8ff;
  --font: "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.5; letter-spacing: 0; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--acid); padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.site-header, footer, .band, .band-dark, .band-acid { width: min(100% - 40px, 1380px); margin-inline: auto; }
.site-header { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; font-weight: 740; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; position: relative; background: var(--ink); color: var(--white); line-height: 1; }
.brand-mark b { transform: translateY(-3px); font-size: 18px; }
.brand-mark small { position: absolute; bottom: 4px; color: var(--acid); font: 8px var(--mono); }
.site-nav { display: flex; gap: 30px; color: var(--muted); font-size: 13px; }
.site-nav a, footer a, .text-link { text-decoration: none; }
.site-nav a:hover, footer a:hover, .text-link:hover { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.text-link { font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 1px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 650; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-dark:hover { background: var(--acid); color: var(--ink); }
.button-acid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.button-acid:hover { background: var(--white); border-color: var(--white); }
.button-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.button-outline:hover { border-color: var(--white); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.hero { position: relative; width: min(100% - 40px, 1380px); height: calc(100svh - 154px); min-height: 650px; max-height: 820px; margin: 0 auto 40px; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.route-grid { position: absolute; inset: 34px; border: 1px solid rgba(255,255,255,.12); z-index: -2; }
.hero-copy { position: relative; z-index: 5; width: min(680px, 58%); padding: 70px 0 76px 68px; }
.eyebrow { margin: 0 0 18px; color: var(--acid); font: 11px var(--mono); }
.eyebrow.dark { color: #52731d; }
.hero h1 { margin: 0; font-size: 108px; line-height: .94; font-weight: 780; }
.hero-statement { margin: 34px 0 20px; font-size: 34px; line-height: 1.24; font-weight: 660; }
.hero-description { max-width: 570px; margin: 0; color: #bdc0b8; font-size: 16px; }
.hero-description strong { color: var(--acid); font-size: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.hero-facts { position: absolute; left: 68px; right: 68px; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.28); }
.hero-facts div { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-facts div + div { padding-left: 28px; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts span { color: #aeb2aa; font-size: 12px; }
.hero-facts strong { font: 26px var(--mono); color: var(--acid); }

.route-node { position: absolute; z-index: 3; width: 176px; min-height: 84px; padding: 14px 16px; background: var(--white); color: var(--ink); border-left: 5px solid var(--blue); box-shadow: 0 18px 42px rgba(0,0,0,.25); }
.route-node small { display: block; color: var(--muted); font: 9px var(--mono); }
.route-node strong { display: block; margin: 7px 0 2px; font-size: 16px; }
.route-node span { display: block; overflow: hidden; color: var(--muted); font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.node-request { right: 28%; top: 15%; }
.node-router { right: 9%; top: 41%; background: var(--acid); border-color: var(--acid); }
.node-upstream { right: 30%; top: 67%; border-color: var(--coral); }
.route-line { position: absolute; height: 2px; z-index: 1; transform-origin: left center; background: var(--acid); opacity: .55; }
.route-line-a { width: 250px; right: 18%; top: 31%; transform: rotate(32deg); }
.route-line-b { width: 245px; right: 19%; top: 55%; transform: rotate(148deg); }
.route-line-c { width: 260px; right: 23%; top: 52%; transform: rotate(203deg); opacity: .28; }

.band, .band-dark, .band-acid { display: grid; grid-template-columns: 190px 1fr; gap: 48px; padding: 110px 0; border-bottom: 1px solid var(--ink); }
.band-dark { padding-inline: 48px; background: var(--ink); color: var(--white); border-bottom: 0; }
.band-acid { padding-inline: 48px; background: var(--acid); border-bottom: 0; }
.section-label { display: flex; align-items: flex-start; gap: 14px; }
.section-label span { font: 12px var(--mono); color: #52731d; }
.section-label p { margin: 0; color: var(--muted); font-size: 13px; }
.band-dark .section-label span, .band-dark .section-label p { color: #aeb2aa; }
.principle-copy h2, .status-heading h2, .join h2 { margin: 0; font-size: 52px; line-height: 1.12; }
.principle-copy > p { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.steps article { min-height: 240px; padding: 26px 32px 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.steps article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.steps article:nth-child(even) { padding-left: 32px; }
.steps article > span, .rule-list article > span { color: var(--acid); font: 20px var(--mono); }
.steps h3 { margin: 48px 0 10px; font-size: 22px; }
.steps p { max-width: 42ch; margin: 0; color: #b9bdb5; font-size: 14px; }
.steps a { display: inline-block; margin-top: 22px; color: var(--acid); text-underline-offset: 5px; }

.status-content { min-width: 0; }
.status-heading { display: grid; grid-template-columns: 1fr 270px; align-items: end; gap: 40px; }
.status-message { margin: 0; color: var(--muted); font: 12px var(--mono); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-block: 1px solid var(--ink); }
.metric-row div { min-height: 140px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-right: 1px solid var(--line); }
.metric-row div + div { padding-left: 32px; }
.metric-row div:last-child { border-right: 0; }
.metric-row span { color: var(--muted); font-size: 12px; }
.metric-row strong { font: 34px var(--mono); }
.activity-list { border-bottom: 1px solid var(--ink); }
.activity-row { min-height: 66px; display: grid; grid-template-columns: 1fr 1.4fr 110px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row code { overflow: hidden; color: var(--muted); font: 12px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { text-align: right; color: var(--muted); font-size: 12px; }
.empty-state { margin: 0; padding: 26px 0; color: var(--muted); }
.privacy-note { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }

.rule-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.rule-list article { min-height: 220px; padding: 28px 32px 28px 0; border-bottom: 1px solid rgba(17,20,17,.3); }
.rule-list article:nth-child(odd) { border-right: 1px solid rgba(17,20,17,.3); }
.rule-list article:nth-child(even) { padding-left: 32px; }
.rule-list article > span { color: #52731d; }
.rule-list h3 { margin: 46px 0 10px; font-size: 22px; }
.rule-list p { max-width: 40ch; margin: 0; color: #46503d; font-size: 14px; }

.join { grid-template-columns: 1fr auto; align-items: end; }
.join-copy > p:last-child { max-width: 660px; margin: 28px 0 0; color: #b9bdb5; }
.join-actions { display: flex; gap: 14px; }
footer { min-height: 120px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 28px; color: var(--muted); font: 10px var(--mono); }
footer p { text-align: center; }
footer nav { display: flex; gap: 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { height: auto; min-height: 760px; max-height: none; }
  .hero-copy { width: 72%; padding-left: 48px; }
  .hero h1 { font-size: 86px; }
  .node-request { right: 8%; top: 14%; }
  .node-router { right: 6%; top: 42%; }
  .node-upstream { right: 9%; top: 68%; }
  .route-line { display: none; }
  .band, .band-dark, .band-acid { grid-template-columns: 150px 1fr; gap: 30px; }
  .status-heading { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
  .join-actions { margin-top: 10px; }
}

@media (max-width: 680px) {
  .site-header, footer, .band, .band-dark, .band-acid, .hero { width: min(100% - 28px, 1380px); }
  .site-header { height: 66px; }
  .brand > span:last-child { display: none; }
  .header-actions { gap: 12px; }
  .button { min-height: 42px; padding-inline: 14px; }
  .hero { min-height: 0; margin-bottom: 14px; }
  .hero-copy { width: auto; padding: 32px 22px 22px; }
  .hero h1 { font-size: 62px; }
  .hero-statement { margin-top: 28px; font-size: 27px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .route-node { display: none; }
  .hero-facts { position: static; grid-template-columns: 1fr; margin: 0 22px 14px; }
  .hero-facts div { min-height: 42px; padding: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-facts div + div { padding-left: 0; }
  .band, .band-dark, .band-acid { grid-template-columns: 1fr; gap: 28px; padding: 72px 0; }
  .principle { padding-top: 36px; }
  .band-dark, .band-acid { padding-inline: 22px; }
  .principle-copy h2, .status-heading h2, .join h2 { font-size: 36px; }
  .steps, .rule-list { grid-template-columns: 1fr; }
  .steps article, .steps article:nth-child(even), .rule-list article, .rule-list article:nth-child(even) { min-height: 0; padding: 28px 0; border-right: 0; }
  .steps h3, .rule-list h3 { margin-top: 28px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div, .metric-row div + div { min-height: 96px; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .activity-row { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .activity-row time { text-align: left; }
  .join-actions { flex-direction: column; align-items: stretch; }
  footer { grid-template-columns: 1fr; padding: 30px 0; }
  footer p { text-align: left; }
}
