:root {
  color-scheme: dark;
  --bg: #07100d;
  --surface: rgba(14, 29, 24, .78);
  --surface-strong: #12251e;
  --line: rgba(169, 219, 191, .17);
  --text: #edf8f1;
  --muted: #9db2a6;
  --acid: #b7f36b;
  --mint: #60e6b1;
  --blue: #75b8ff;
  --orange: #f6ad55;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -20%, #173428 0, var(--bg) 48%);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; width: 460px; height: 460px; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-one { background: var(--acid); top: -220px; right: -120px; }
.ambient-two { background: var(--blue); bottom: -240px; left: -180px; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(7,16,13,.82); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Space Grotesk"; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--acid); color: #0a160f; }
.view-nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.nav-button { padding: 9px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.nav-button:hover, .nav-button.is-active { background: var(--surface-strong); color: var(--text); }
main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.view { padding: 64px 0 80px; animation: reveal .32s ease; }
.view[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.hero { max-width: 980px; }
.eyebrow { margin: 0 0 12px; color: var(--acid); font-size: 12px; letter-spacing: .16em; font-weight: 700; }
h1, h2, h3 { font-family: "Space Grotesk"; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(44px, 7vw, 94px); line-height: .98; max-width: 1100px; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; }
h3 { font-size: 28px; }
.hero-copy, .section-heading > p:last-child { max-width: 760px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-metrics div { padding: 28px; background: rgba(10,24,19,.92); display: flex; flex-direction: column; gap: 6px; }
.hero-metrics strong { font-family: "Space Grotesk"; font-size: 38px; color: var(--acid); }
.hero-metrics span { color: var(--muted); }
.strategy-flow { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; margin: 64px 0 28px; }
.flow-node { min-height: 160px; padding: 22px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; transition: .2s ease; }
.flow-node:hover, .flow-node.is-selected { transform: translateY(-4px); border-color: rgba(183,243,107,.6); background: #183126; }
.flow-node span, .companies-row span { display: block; color: var(--acid); font-family: "Space Grotesk"; font-size: 13px; margin-bottom: 26px; }
.flow-node strong, .companies-row strong { display: block; font-size: 18px; margin-bottom: 8px; }
.flow-node small, .companies-row small { color: var(--muted); line-height: 1.45; }
.flow-line { height: 1px; background: linear-gradient(90deg, var(--line), var(--acid), var(--line)); }
.detail-panel { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 30px; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(28,52,42,.94), rgba(10,23,18,.94)); }
.detail-panel p, .detail-panel li { color: var(--muted); line-height: 1.55; }
.detail-panel ul { margin: 0; padding-left: 20px; }
.section-heading { margin-bottom: 48px; }
.architecture-map { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.arch-node { padding: 20px 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; cursor: pointer; min-width: 300px; }
.arch-node strong, .arch-node span { display: block; }
.arch-node span { color: var(--muted); margin-top: 5px; }
.founder-node { border-color: rgba(183,243,107,.5); }
.os-node { background: linear-gradient(135deg, #1d3c2e, #11251d); box-shadow: var(--shadow); }
.arch-connector.vertical { width: 1px; height: 28px; background: var(--acid); opacity: .55; }
.os-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.os-grid button { min-height: 86px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,25,19,.8); cursor: pointer; }
.os-grid button:hover, .companies-row button:hover { border-color: rgba(96,230,177,.62); background: #173127; }
.companies-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.companies-row button { padding: 24px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; }
.arch-detail { width: min(780px, 100%); margin: 30px auto 0; padding: 18px 22px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.arch-detail strong { color: var(--text); text-align: right; }
.roadmap-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; }
.phase-list { display: flex; flex-direction: column; gap: 8px; }
.phase { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.phase:hover, .phase.is-active { border-color: var(--line); background: var(--surface); }
.phase > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-strong); color: var(--acid); font-family: "Space Grotesk"; }
.phase strong, .phase small { display: block; }
.phase small { color: var(--muted); margin-top: 4px; }
.phase-detail { padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.phase-detail > p { color: var(--muted); line-height: 1.6; }
.phase-block { margin: 30px 0; }
.phase-block span, .gate span { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.phase-block li { margin: 10px 0; }
.gate { padding: 20px; border-left: 3px solid var(--acid); background: rgba(183,243,107,.06); }
.gate p { margin-bottom: 0; line-height: 1.55; }
.systems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
summary { display: flex; gap: 14px; align-items: center; padding: 22px; cursor: pointer; font-family: "Space Grotesk"; font-size: 19px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--acid); font-size: 12px; }
details p, details small { display: block; margin: 0; padding: 0 22px 18px; color: var(--muted); line-height: 1.55; }
details small { color: var(--mint); }
.autonomy { margin-top: 32px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(19,41,31,.92), rgba(9,22,17,.92)); }
.autonomy-head { display: flex; justify-content: space-between; align-items: end; }
.autonomy-head > strong { font-family: "Space Grotesk"; font-size: 28px; color: var(--acid); }
.autonomy input { width: 100%; margin: 28px 0; accent-color: var(--acid); }
.autonomy-copy { display: flex; justify-content: space-between; gap: 28px; }
.autonomy-copy p { margin: 0; max-width: 700px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Explanations stay readable on desktop and phone, without hover-only help. */
body { font-family: system-ui, -apple-system, sans-serif; }
h1,h2,h3,.brand { font-family: system-ui, -apple-system, sans-serif; }
h1 { font-size: clamp(38px,6vw,78px); line-height: 1.08; }
h2 { font-size: clamp(30px,4vw,52px); line-height: 1.14; }
h3 { font-size: clamp(24px,3vw,34px); line-height: 1.25; }
h4 { margin: 0 0 10px; font-size: 14px; color: var(--mint); line-height: 1.5; }
p,li { overflow-wrap: anywhere; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.view { scroll-margin-top: 150px; }
.hero-metrics small { color: var(--muted); line-height: 1.6; font-size: 14px; }
.intro-note { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 12px; background: rgba(96,230,177,.035); }
.intro-note p,.helper { color: var(--muted); line-height: 1.7; max-width: 90ch; }
.intro-note p:last-child { margin-bottom: 0; }
.helper { margin-top: 28px; }
.strategy-flow { margin-top: 24px; align-items: stretch; }
.flow-line { align-self: center; }
.flow-node em { display: block; margin-top: 18px; color: var(--mint); font-size: 12px; font-style: normal; }
.flow-node small { display: block; }
.os-grid button strong,.os-grid button small,.arch-node small { display: block; }
.os-grid button small,.arch-node small { color: var(--muted); line-height: 1.5; margin-top: 9px; }
.is-selected { border-color: var(--acid) !important; background: #183126 !important; }
.detail-panel,.arch-detail,.phase-detail { display: block; width: 100%; padding: clamp(22px,3vw,38px); margin: 28px 0 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); scroll-margin-top: 150px; }
.phase-detail { margin-top: 0; }
.explain-heading { margin-bottom: 28px; }
.explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; }
.explain-block p,.explain-block li { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }
.explain-block ul { margin: 0; padding-left: 22px; }
.explain-block li+li { margin-top: 9px; }
.gate { margin-top: 28px; border-radius: 0 12px 12px 0; }
.gate h4 { color: var(--acid); }
.gate p { margin-top: 0; color: var(--text); }
.text-button { padding: 12px 0; color: var(--mint); border: 0; background: transparent; text-align: left; cursor: pointer; }
.system-explanation { padding: 0 22px 24px; }
.system-explanation .explain-grid { grid-template-columns: 1fr; gap: 20px; }
.system-explanation .explain-heading { display: none; }
.system-explanation p { padding: 0; }
.systems-grid { align-items: start; }
summary { font-family: inherit; line-height: 1.4; }
summary::after { content: '+'; margin-left: auto; flex-shrink: 0; color: var(--mint); }
details[open] > summary::after { content: '−'; }
summary small { padding: 0; margin-top: 6px; font-size: 13px; }
.autonomy-copy { display: block; }
.autonomy-copy p { max-width: none; }
.glossary { padding: 12px 0 64px; }
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-top: 28px; }
.glossary summary { font-size: 16px; }
.glossary p { font-size: 16px; line-height: 1.7; }
.phase-list { align-self: start; }
.phase > span { flex-shrink: 0; }
.section-heading .eyebrow { letter-spacing: .1em; }
@media (max-width: 900px) { .explain-grid,.glossary-grid { grid-template-columns: 1fr; } .arch-node { min-width: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .view { animation: none; } .flow-node { transition: none; } }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .view-nav { width: 100%; overflow-x: auto; }
  .nav-button { white-space: nowrap; }
  .hero-metrics { grid-template-columns: 1fr; }
  .strategy-flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-line { width: 1px; height: 18px; margin-left: 28px; }
  .flow-node { min-height: auto; }
  .flow-node span { margin-bottom: 12px; }
  .detail-panel, .roadmap-layout { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
  .companies-row, .systems-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  main { width: min(100% - 28px, 1280px); }
  .view { padding-top: 44px; }
  .os-grid { grid-template-columns: 1fr; }
  .arch-detail, .autonomy-copy, footer { flex-direction: column; }
  .arch-detail strong { text-align: left; }
}
