/* Shared green accent, strong headings, and quiet reading surfaces. */
:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #fff;
  --surface-alt: #eaf2ee;
  --ink: #101d2b;
  --muted: #445568;
  --line: #ceddd6;
  --accent: #047857;
  --on-accent: #fff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1320;
  --surface: #111e2d;
  --surface-alt: #192b38;
  --ink: #f1f5f9;
  --muted: #bac8d8;
  --line: #334557;
  --accent: #6ee7b7;
  --on-accent: #092519;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1320;
    --surface: #111e2d;
    --surface-alt: #192b38;
    --ink: #f1f5f9;
    --muted: #bac8d8;
    --line: #334557;
    --accent: #6ee7b7;
    --on-accent: #092519;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:is(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 750; }
img { max-width: 100%; height: auto; }
.headerlink { display: none; }
.spectrum-bar { height: 4px; background: var(--accent); }
.skip { position: absolute; top: -100px; left: 20px; z-index: 20; padding: 10px 16px; background: var(--surface); }
.skip:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { max-width: 1220px; margin: auto; padding: 18px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-name { font-size: 23px; font-weight: 850; letter-spacing: -0.04em; }
.brand-badge { font-size: 11px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a { font-size: 13px; font-weight: 650; text-decoration: none; }
.theme-toggle { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); padding: 6px 10px; cursor: pointer; }
main { max-width: 1220px; margin: auto; padding: 0 32px; }
.landing > section > h1 { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; padding: 56px 0 56px; }
.hero-copy { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hero h1 { font-size: clamp(34px, 3.8vw, 52px); font-weight: 850; letter-spacing: -0.05em; line-height: 1.06; margin: 14px 0 20px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; color: var(--accent); margin-bottom: 0; }
.lead { font-size: 18px; line-height: 1.62; color: var(--muted); max-width: 36em; margin-bottom: 0; }
.actions { margin: 26px 0 0; }
.actions p { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.actions a { display: inline-block; border: 1px solid var(--accent); padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 750; text-decoration: none; }
.actions a:first-child { color: var(--on-accent); background: var(--accent); }
.hero-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hero-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.hero-footer p:last-child { margin: 0; font-weight: 650; }
.hero-art { display: flex; flex-direction: column; min-width: 0; }
.hero-terminal { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; background: #0c1724; color: #e2e8f0; border: 1px solid #243548; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(4, 18, 32, 0.45); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #08111c; border-bottom: 1px solid #1e2f42; flex-wrap: wrap; }
.term-dots { display: flex; gap: 7px; align-items: center; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: #34d399; }
.term-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.term-tab { background: #111e2e; border: 1px solid #25384d; color: #94a3b8; border-radius: 6px; padding: 5px 10px; font: 650 11.5px/1.2 system-ui, -apple-system, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.term-tab:hover { color: #f8fafc; border-color: #3b536e; }
.term-tab .tab-num { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 10px; opacity: 0.75; }
.term-tab.is-active[data-mode-target="0"] { background: rgba(56, 189, 248, 0.14); border-color: #38bdf8; color: #e0f2fe; }
.term-tab.is-active[data-mode-target="1"] { background: rgba(110, 231, 183, 0.14); border-color: #6ee7b7; color: #d1fae5; }
.term-tab.is-active[data-mode-target="2"] { background: rgba(252, 211, 77, 0.14); border-color: #fcd34d; color: #fef3c7; }
.term-progress { height: 3px; background: #132234; width: 100%; overflow: hidden; }
.term-progress-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #38bdf8, #6ee7b7, #fcd34d); transform-origin: left center; animation: term-progress-fill 5.2s linear infinite; }
.hero-terminal.is-paused .term-progress-bar { animation-play-state: paused; }
.term-viewport { flex: 1; display: grid; grid-template-areas: "stage"; padding: 18px 20px; font: 12.5px/1.55 ui-monospace, "DejaVu Sans Mono", "Liberation Mono", monospace; align-items: stretch; }
.term-stage { grid-area: stage; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; min-width: 0; }
.term-stage.is-active { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.24s ease, transform 0.24s ease; pointer-events: auto; }
.term-stage.is-active .term-line { opacity: 0; animation: term-line-in 0.3s ease forwards; }
.term-stage.is-active .step-1 { animation-delay: 0.02s; }
.term-stage.is-active .step-2 { animation-delay: 0.14s; }
.term-stage.is-active .step-3 { animation-delay: 0.28s; }
.term-stage.is-active .step-4 { animation-delay: 0.44s; }
.term-stage.is-active .step-5 { animation-delay: 0.62s; }
.term-viewport code { background: rgba(148, 163, 184, 0.15); color: #f8fafc; padding: 1px 5px; border-radius: 3px; font-size: 0.93em; }
.t-prompt { color: #6ee7b7; font-weight: 700; }
.t-cmd { color: #f8fafc; font-weight: 700; }
.t-flag { color: #7dd3fc; }
.t-str { color: #fde68a; }
.t-kw { color: #c084fc; font-weight: 700; }
.t-fn { color: #7dd3fc; }
.t-ty { color: #6ee7b7; }
.t-muted { color: #94a3b8; }
.t-dim-line { color: #94a3b8; font-size: 11.5px; padding-bottom: 2px; border-bottom: 1px dashed #1e2f42; }
.t-cyan { color: #38bdf8; font-weight: 650; }
.t-mint { color: #6ee7b7; font-weight: 650; }
.t-gold { color: #fcd34d; font-weight: 650; }
.t-user { color: #7dd3fc; font-weight: 700; }
.t-check { color: #34d399; font-weight: 800; }
.t-stream-block { display: flex; flex-direction: column; gap: 8px; padding-left: 2px; }
.t-code-block { background: #08111c; border: 1px solid #1e3146; border-left: 3px solid #38bdf8; border-radius: 5px; padding: 8px 12px; font-size: 12px; line-height: 1.5; color: #e2e8f0; }
.t-tui-topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #132538; border: 1px solid #28425c; border-radius: 5px; padding: 5px 10px; font-size: 11px; }
.t-tui-pane { flex: 1; background: #09131f; border: 1px solid #253c54; border-radius: 6px; padding: 8px 11px; display: flex; flex-direction: column; gap: 7px; }
.t-pane-title { font-size: 10.5px; color: #64748b; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; }
.t-chat-msg { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.t-badge-you, .t-badge-ai { display: inline-block; width: fit-content; font-size: 10px; font-weight: 750; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.t-badge-you { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.t-badge-ai { background: rgba(110, 231, 183, 0.16); color: #6ee7b7; border: 1px solid rgba(110, 231, 183, 0.35); }
.t-tui-table { display: grid; gap: 2px; font-size: 11px; background: #0d1b2a; border: 1px solid #1e3146; border-radius: 4px; padding: 5px 8px; }
.t-tui-table > div { display: grid; grid-template-columns: 0.85fr 1.15fr 1.25fr; gap: 8px; padding: 2px 0; border-bottom: 1px dashed #1b2d40; }
.t-tui-table > div:last-child { border-bottom: none; }
.t-tbl-head { color: #94a3b8; font-weight: 700; }
.t-math-box { background: #102133; border: 1px solid #213952; border-radius: 4px; padding: 4px 8px; font-size: 11px; }
.t-tui-inputbox { background: #08111c; border: 1px solid #2b4560; border-radius: 6px; padding: 6px 11px; font-size: 11.5px; }
.t-agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-agent-box { background: #09131f; border: 1px solid #22384f; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.t-box-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: #fcd34d; border-bottom: 1px solid #1b2e42; padding-bottom: 3px; margin-bottom: 1px; }
.t-energy-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 6px; align-items: center; }
.t-bar-track { height: 6px; background: #162638; border-radius: 3px; overflow: hidden; display: block; }
.t-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #34d399); width: 75%; border-radius: 3px; }
.term-stage.is-active .t-bar-fill.fill-zero { animation: term-energy-drop 1.4s ease 0.35s forwards; }
.t-vrow { display: grid; grid-template-columns: 12px 42px 1fr auto; gap: 5px; align-items: center; }
.t-diff-box { background: #08111c; border: 1px solid #22384f; border-radius: 6px; padding: 7px 10px; font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
.t-diff-head { display: flex; justify-content: space-between; color: #94a3b8; font-size: 10.5px; border-bottom: 1px solid #192a3d; padding-bottom: 3px; margin-bottom: 2px; }
.t-diff-del { background: rgba(248, 113, 113, 0.12); color: #fca5a5; padding: 1px 6px; border-radius: 3px; }
.t-diff-add { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; padding: 1px 6px; border-radius: 3px; }
.t-badge-pass { background: rgba(52, 211, 153, 0.16); border: 1px solid #34d399; color: #6ee7b7; border-radius: 4px; padding: 0 5px; font-size: 10.5px; font-weight: 700; width: fit-content; }
.t-review-bar { background: #09131f; border: 1px solid #243b53; border-radius: 5px; padding: 6px 10px; font-size: 11.5px; margin-top: auto; }
.t-key { display: inline-block; white-space: nowrap; background: #16293d; border: 1px solid #2e4760; border-radius: 3px; padding: 1px 6px; color: #e2e8f0; font-size: 11px; margin-left: 4px; }
.t-cursor { color: #6ee7b7; animation: term-blink 1.05s steps(2, start) infinite; }
.term-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #08111c; border-top: 1px solid #1e2f42; font: 750 10px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: 0.08em; color: #94a3b8; flex-wrap: wrap; }
.term-footer-status { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); animation: term-blink 1.8s ease-in-out infinite; }
@keyframes term-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes term-line-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes term-energy-drop { 0% { width: 78%; background: #f59e0b; } 60% { width: 28%; background: #38bdf8; } 100% { width: 8%; background: #34d399; } }
@keyframes term-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .term-progress-bar, .term-stage.is-active .term-line, .t-cursor, .pulse-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
}
.section-heading { margin: 32px 0 24px; max-width: 800px; }
.section-heading .rubric, .split-copy .rubric { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; margin: 8px 0 24px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 76px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; min-width: 0; }
.pillar .rubric { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 16px; }
.pillar p { font-size: 15px; color: var(--muted); }
.pillar a { font-weight: 700; }
pre { font: 13px/1.7 ui-monospace, "DejaVu Sans Mono", monospace; overflow-x: auto; white-space: pre; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-alt); color: var(--ink); }
.pillar pre { font-size: 12px; padding: 14px; margin: 20px 0; }
:not(pre) > code { background: var(--surface-alt); border-radius: 3px; padding: 1px 4px; font-size: 0.86em; overflow-wrap: anywhere; }
.landing > section > p { max-width: 74ch; }
figure { margin: 30px 0 44px; }
figure img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
figcaption { font-size: 14px; color: var(--muted); max-width: 85ch; margin-top: 12px; }
figcaption p { margin: 0; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.split-copy { min-width: 0; }
.split-copy p { font-size: 15px; color: var(--muted); }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; margin: 56px 0 24px; }
.text-links { margin: 32px 0; }
.text-links p { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.text-links a { font-size: 14px; font-weight: 700; }
.site-footer { max-width: 1220px; margin: 64px auto 0; padding: 40px 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; color: var(--muted); font-size: 13px; }
.footer-brand strong { font-size: 20px; }
.footer-heading { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; display: block; margin-bottom: 14px; }
.site-footer a { display: block; margin-bottom: 8px; }
.footer-meta { font-size: 12px; }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .brand-badge { display: none; }
  nav { gap: 16px; }
}
@media (max-width: 650px) {
  .header-inner, main { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 14px; }
  nav { gap: 12px; }
  nav a { font-size: 12px; }
  .hero { padding: 36px 0; }
  .hero-copy { padding: 24px; }
  .term-viewport { padding: 16px; font-size: 11.5px; }
  .t-verify-row { grid-template-columns: 14px 48px 1fr; }
  .t-verify-row > span:last-child { grid-column: 3; }
  .lead { font-size: 17px; }
  .pillars, .split-section, .site-footer { grid-template-columns: 1fr; }
  .pillar { padding: 22px; }
  .split-section { gap: 28px; }
  .site-footer { padding: 32px 20px; }
  .actions a { padding: 10px 14px; }
}
@media print {
  .site-header, .spectrum-bar, .skip, .theme-toggle, .site-footer { display: none; }
  body { background: #fff; color: #111; }
  .hero, .split-section { display: block; }
  .hero-art { max-width: 260px; }
  a { color: inherit; }
}
figure > a { display: block; cursor: zoom-in; }
figure > a::after { content: "Open figure at full size"; display: block; font-size: 12px; margin-top: 8px; }
