/* OpenMAO one-pager v2 — narrative arc. Depends on colors_and_type.css + components.css */
html, body { margin: 0; }
.page { background: var(--bg); color: var(--fg-1); min-height: 100vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.band { border-top: 1px solid var(--line); }

/* ---- Nav ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--fg-1); text-decoration: none; }
.brand img { height: 26px; width: 26px; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .stars { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.nav .navlink { font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color 0.18s ease; }
.nav .navlink:hover { color: var(--fg-1); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 92px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 56px; line-height: 1.03; letter-spacing: -0.028em; font-weight: 700; margin: 18px 0 0; text-wrap: balance; }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--fg-2); margin: 22px 0 0; max-width: 32em; text-wrap: pretty; }
.hero .pull { margin: 28px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg-1); font-weight: 600; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); flex: none; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 82%; max-width: 380px; animation: spin 56s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .fw-core img { animation: none !important; } }

/* ---- §2 The bet --------------------------------------------------------- */
.bet { padding: 80px 0; }
.bet .wrap { max-width: 820px; }
.bet .enemy { font-size: 20px; line-height: 1.5; color: var(--fg-3); text-wrap: pretty; margin: 0; }
.bet .reframe { font-size: 34px; line-height: 1.1; letter-spacing: -0.018em; font-weight: 700; color: var(--fg-1); margin: 14px 0 0; text-wrap: balance; }
.bet .body { font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 22px 0 0; max-width: 40em; text-wrap: pretty; }
.bet .body b { color: var(--fg-1); font-weight: 600; }

/* ---- §3 Flywheel -------------------------------------------------------- */
.fly { padding: 88px 0; }
.fly-head { max-width: 660px; margin: 0 auto 8px; text-align: center; }
.fly-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 0; }
.fly-head .lead { font-size: 18px; line-height: 1.55; color: var(--fg-2); margin: 16px 0 0; text-wrap: pretty; }
.fly-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 8px; }
.fly-legend { display: flex; justify-content: center; gap: 22px; margin: 28px 0 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); }
.fly-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.lg-dot.live { background: var(--accent); }
.lg-dot.frontier { background: transparent; border: 1.5px dashed var(--fg-3); }

.fw { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 8px auto 0; }
.fw-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fw-core { position: absolute; top: 50%; left: 50%; width: 30%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.fw-core img { width: 100%; animation: spin 56s linear infinite; }
.fw-node { position: absolute; transform: translate(-50%, -50%); width: 156px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 13px; box-shadow: var(--shadow-sm); }
.fw-node .nlabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.fw-node h4 { font-size: 15px; margin: 4px 0 5px; letter-spacing: -0.01em; }
.fw-node p { font-size: 12px; line-height: 1.4; color: var(--fg-2); margin: 0; }
.fw-node.live { border-color: var(--accent-weak-line); }
.fw-node.live .nlabel { color: var(--accent); }
.fw-node.frontier { border-style: dashed; border-color: var(--line-strong); background: var(--surface-1); }
.fw-node.earn { border-color: var(--accent-weak-line); }
.fw-node.earn .nlabel { color: var(--accent); }

/* traveling green highlight (cycles every 2.5s) */
.fw-node { transition: background-color .65s ease, border-color .65s ease, box-shadow .65s ease, transform .65s ease; }
.fw-node h4, .fw-node p, .fw-node .nlabel { transition: color .65s ease; }
.fw-node.active { background: var(--accent); border-color: var(--accent); border-style: solid; box-shadow: var(--shadow-md); transform: translate(-50%, -50%) scale(1.05); }
.fw-node.active .nlabel { color: color-mix(in srgb, var(--fg-on-accent) 75%, transparent); }
.fw-node.active h4 { color: var(--fg-on-accent); }
.fw-node.active p { color: color-mix(in srgb, var(--fg-on-accent) 88%, transparent); }
.fl-item { transition: background-color .65s ease, border-color .65s ease, box-shadow .65s ease; }
.fl-item h4, .fl-item p, .fl-item .nlabel { transition: color .65s ease; }
.fl-item.active { background: var(--accent); border-color: var(--accent); border-style: solid; box-shadow: var(--shadow-md); }
.fl-item.active .nlabel { color: color-mix(in srgb, var(--fg-on-accent) 75%, transparent); }
.fl-item.active h4 { color: var(--fg-on-accent); }
.fl-item.active p { color: color-mix(in srgb, var(--fg-on-accent) 88%, transparent); }
.fly-list { display: none; }
.fly-closer { max-width: 660px; margin: 36px auto 0; text-align: center; font-size: 16px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.fly-closer b { color: var(--fg-1); font-weight: 600; }

/* ---- §4 Bring your own stack ------------------------------------------- */
.stack { padding: 88px 0; }
.stack-head { max-width: 680px; margin-bottom: 40px; }
.stack-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.018em; margin: 14px 0 0; }
.stack-head p { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 16px 0 0; text-wrap: pretty; }
.stack-head p b { color: var(--fg-1); font-weight: 600; }
.gate { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gate-workers { padding: 22px 24px; background: var(--surface-1); }
.gate-lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.gate-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gate-flow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gate-flow svg { color: var(--accent); }
.gate-owns { padding: 26px 24px; background: var(--accent-weak); border-top: 1px solid var(--accent-weak-line); }
.gate-owns .gate-lbl { color: var(--accent); }
.gate-owns h3 { font-size: 17px; margin: 10px 0 0; color: var(--fg-1); }
.gate-gateline { display: flex; align-items: center; gap: 10px; padding: 14px 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--state-pending-fg); background: var(--state-pending-bg); border-top: 1px solid var(--state-pending-line); }
.gate-gateline svg { flex: none; }
.stack-punch { margin: 26px 0 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 44em; text-wrap: pretty; }
.stack-punch b { color: var(--fg-1); font-weight: 600; }

/* ---- §5 Autonomy dial --------------------------------------------------- */
.dial { padding: 88px 0; }
.dial-head { max-width: 660px; margin-bottom: 44px; }
.dial-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.018em; margin: 14px 0 0; }
.dial-head .lead { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 16px 0 0; text-wrap: pretty; }
.dialviz { position: relative; margin: 0 0 8px; }
.role-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.role-track span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-3); text-align: center; }
.dline { position: relative; height: 4px; border-radius: 999px; background: var(--autonomy-track); }
.dline .fillbar { position: absolute; left: 0; top: 0; height: 100%; width: 50%; border-radius: 999px; background: linear-gradient(90deg, var(--autonomy-advisory), var(--autonomy-supervised)); }
.dstops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -9px; }
.dstop { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dstop .dot { position: relative; z-index: 2; width: 16px; height: 16px; border-radius: 999px; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.dstop[data-lv="advisory"] .dot { background: var(--autonomy-advisory); }
.dstop[data-lv="supervised"] .dot { background: var(--autonomy-supervised); box-shadow: 0 0 0 1px var(--autonomy-supervised), var(--focus-ring); }
.dstop[data-lv="bounded"] .dot { background: var(--autonomy-bounded); }
.dstop[data-lv="board-governed"] .dot { background: var(--autonomy-board); opacity: 0.4; }
.dstop .here { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--autonomy-supervised); margin-top: 8px; height: 12px; }
.dstop .lvl { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--fg-1); margin-top: 4px; }
.dstop.ghost .lvl { color: var(--fg-3); }
.dstop .desc { font-size: 12.5px; line-height: 1.45; color: var(--fg-2); margin-top: 8px; max-width: 18em; }
.dstop.ghost .desc { color: var(--fg-3); }
.dial-closer { margin-top: 40px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dial-closer b { color: var(--accent); font-weight: 600; }

/* ---- §6 Run it today ---------------------------------------------------- */
.run { padding: 88px 0; }
.run .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.run-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.018em; margin: 14px 0 0; }
.run-head p { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 18px 0 0; text-wrap: pretty; }
.run-head p b { color: var(--fg-1); font-weight: 600; }
.run-invite { font-size: 16px; color: var(--fg-1); margin-top: 22px; font-weight: 500; }
.term { background: var(--terminal-bg); color: var(--terminal-fg); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--terminal-line); }
.term-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--terminal-line); }
.term-bar .ttl { margin-left: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--terminal-muted); }
.term-copy { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--terminal-muted); background: transparent; border: 1px solid var(--terminal-line); border-radius: var(--r-sm); padding: 4px 9px; cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.term-copy:hover { color: var(--terminal-fg); border-color: var(--terminal-muted); }
.term-body { padding: 18px 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; }
.term-body .ln { white-space: pre-wrap; }
.term-body .pmt { color: #6fd0b3; }
.term-body .cmd { color: var(--terminal-fg); }
.term-body .cmt { color: var(--terminal-muted); }
.run-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-1); font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); flex: none; }

/* ---- §7 Principles / non-goals ----------------------------------------- */
.prin { padding: 88px 0; }
.prin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.prin h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.018em; margin: 14px 0 28px; }
.plist { display: flex; flex-direction: column; }
.plist .pi { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plist .pi:last-child { border-bottom: 0; }
.plist .pi h4 { font-size: 15.5px; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.01em; }
.plist .pi p { font-size: 14px; color: var(--fg-2); line-height: 1.5; margin: 0; text-wrap: pretty; }
.nongoals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.nongoals li { font-size: 14.5px; color: var(--fg-2); padding-left: 26px; position: relative; line-height: 1.45; }
.nongoals li::before { content: "—"; position: absolute; left: 0; color: var(--danger); font-family: var(--font-mono); }
.prin-note { font-size: 13.5px; color: var(--fg-3); margin-top: 26px; line-height: 1.6; max-width: 30em; text-wrap: pretty; }

/* ---- §8 Close ----------------------------------------------------------- */
.close { padding: 96px 0; text-align: center; }
.close .big { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; max-width: 16em; margin: 0 auto; text-wrap: balance; }
.close .cta { display: flex; gap: 12px; margin-top: 32px; justify-content: center; flex-wrap: wrap; }
.close .bookend { margin-top: 40px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--fg-3); }

/* ---- Footer ------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot .brand img { height: 22px; width: 22px; }
.foot .muted { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 10px; }
.foot .fl { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .fl a { font-size: 13px; color: var(--fg-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.foot .fl a:hover { color: var(--fg-1); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .run .wrap { grid-template-columns: 1fr; }
  .prin-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .hero h1 { font-size: 40px; }
  .bet .reframe { font-size: 28px; }
  /* flywheel -> stacked list */
  .fw { display: none; }
  .fly-stage { grid-template-columns: 1fr; }
  .fly-list { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 28px auto 0; }
  .fl-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
  .fl-item.frontier { border-style: dashed; background: var(--surface-1); }
  .fl-item.earn { border-color: var(--accent-weak-line); }
  .fl-item .nlabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
  .fl-item.frontier .nlabel { color: var(--fg-3); }
  .fl-item h4 { font-size: 15px; margin: 5px 0 5px; }
  .fl-item p { font-size: 13px; line-height: 1.45; color: var(--fg-2); margin: 0; }
  .dstops, .role-track { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .dline { display: none; }
  .dstop .dot { display: none; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 32px; }
  .dstops, .role-track { grid-template-columns: 1fr; }
}
