@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #082a19;
  --grid: #103a26;
  --surface: #0d3321;
  --surface-strong: #123a27;
  --text: #c8d9cd;
  --bright: #f2f5e9;
  --dim: #94b49f;
  --faint: #75977f;
  --edge: #174a2f;
  --edge-strong: #2b7b4b;
  --accent: #38e684;
  --accent-fill: #38e684;
  --accent-contrast: #0b2b1b;
  --accent-soft: rgba(56, 230, 132, 0.13);
  --surface-wash: rgba(13, 51, 33, 0.9);
  --stage-shadow: 0 26px 80px rgba(1, 18, 10, 0.52);
  --chrome-bg: #061f13;
  --section-field: #0a2f1e;
  --rule: #1d5637;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #fbfcf8;
  --grid: #e7efe3;
  --surface: #fff;
  --surface-strong: #f2f7ee;
  --text: #31483a;
  --bright: #0b2b1b;
  --dim: #587260;
  --faint: #607966;
  --edge: #d7e4d5;
  --edge-strong: #9ebaa5;
  --accent: #236b3f;
  --accent-fill: #2dd47a;
  --accent-contrast: #0b2b1b;
  --accent-soft: rgba(45, 212, 122, 0.11);
  --surface-wash: rgba(234, 247, 223, 0.66);
  --stage-shadow: 0 20px 60px rgba(31, 64, 40, 0.1);
  --chrome-bg: #f8faf5;
  --section-field: #eef8e7;
  --rule: #cfe0cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--text);
  font: 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in srgb, var(--accent-fill) 32%, transparent); color: var(--bright); }
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 8px 12px; background: var(--bright); color: var(--canvas); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.nav { position: relative; z-index: 0; display: flex; align-items: center; justify-content: space-between; padding: 25px 0; font-family: var(--sans); }
.nav::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); border-bottom: 1px solid var(--rule); background: var(--chrome-bg); }
.wordmark { display: inline-flex; align-items: center; color: var(--bright); font: 24px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; }
.wordmark svg { width: 23px; height: 23px; margin-right: 9px; color: var(--accent-fill); }
.wordmark span { color: inherit; }
.accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--dim); text-decoration: none; }
.nav-links a:hover { color: var(--bright); }
.theme-toggle { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface-wash); color: var(--bright); cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease; }
.theme-toggle:hover { border-color: var(--edge-strong); background: var(--accent-soft); }
.theme-toggle svg { display: block; width: 16px; height: 16px; }

.hero { padding: 84px 0 36px; text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font: 600 12px/1 var(--mono); letter-spacing: .1em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--bright); font-size: clamp(42px, 6.4vw, 72px); font-weight: 480; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy { max-width: 700px; margin: 29px auto 0; font-size: 21px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; font-family: var(--sans); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 6px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 650; text-decoration: none; transition: transform 120ms ease, border-color 120ms ease, background 120ms ease; }
.cta-row .button { width: 220px; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent-fill); color: var(--accent-contrast); }
.button.primary:hover { filter: brightness(1.04); }
.button.secondary { border-color: var(--edge); background: var(--surface-wash); color: var(--bright); }
.button.secondary:hover { border-color: var(--edge-strong); }

.stage { position: relative; aspect-ratio: 1612 / 906; margin: 66px auto 0; overflow: hidden; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: var(--stage-shadow); line-height: 0; }
.stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 420ms ease; }
html[data-theme="dark"] .stage:not([data-media-ready]) .theme-video[data-media-theme="dark"],
html[data-theme="light"] .stage:not([data-media-ready]) .theme-video[data-media-theme="light"],
.stage[data-media-ready] .theme-video.is-active { opacity: 1; }
.stage-caption { margin: 20px 0 0; color: var(--accent); font: 500 14px/1.4 var(--mono); letter-spacing: .02em; }

.section { position: relative; z-index: 0; padding: 116px 0 24px; scroll-margin-top: 30px; }
.section::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); border-top: 1px solid var(--rule); pointer-events: none; }
.ways::before { background: var(--section-field); }
.section-heading { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-heading h2 { margin-bottom: 16px; color: var(--bright); font-size: clamp(34px, 5vw, 50px); font-weight: 480; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.section-heading > p:last-child { color: var(--dim); font-size: 19px; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.path-card { display: flex; min-height: 385px; flex-direction: column; padding: 30px; border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
.path-card + .path-card { border-left: 1px solid var(--rule); }
.path-card.featured { background: var(--surface); }
.path-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; font-family: var(--mono); }
.path-number { color: var(--accent); font: 600 12px/1 var(--mono); }
.pill { padding: 5px 8px; border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); font-size: 11px; }
.path-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--bright); font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.path-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 8px; color: var(--accent); }
.path-icon svg { display: block; width: 18px; height: 18px; }
.path-card p { font-size: 17px; }
.path-card .path-note { color: var(--dim); font: 13px/1.5 var(--mono); }
.text-link { margin-top: auto; color: var(--accent); font: 600 14px/1.3 var(--sans); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps article { padding: 26px 25px; border-top: 1px solid var(--edge); }
.steps article > span { color: var(--accent); font: 600 11px/1 var(--mono); }
.steps h3 { margin: 24px 0 9px; color: var(--bright); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.steps p { margin-bottom: 0; color: var(--dim); font-size: 16px; }
.map-stage { margin-top: 52px; }

.install { padding-bottom: 100px; }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.command-card { overflow: hidden; border: 1px solid var(--edge); border-radius: 13px; background: var(--surface); }
.command-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--edge); background: var(--surface-strong); font-family: var(--sans); }
.command-head strong { color: var(--bright); font-size: 14px; }
.command-head span { color: var(--accent); font: 11px/1 var(--mono); }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.code-row code { overflow-x: auto; padding: 21px 18px; color: var(--text); font: 12px/1.6 var(--mono); white-space: nowrap; }
.code-row button { margin: 14px 14px 14px 0; padding: 0 12px; border: 1px solid var(--edge); border-radius: 8px; background: transparent; color: var(--dim); font: 600 11px/1 var(--sans); cursor: pointer; }
.code-row button:hover { border-color: var(--edge-strong); color: var(--bright); }
.install-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.install-links a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--edge); border-radius: 12px; text-decoration: none; }
.install-links a:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--edge)); background: var(--accent-soft); }
.install-links strong { color: var(--bright); font: 600 14px/1.3 var(--sans); }
.install-links span { color: var(--dim); font: 12px/1.45 var(--mono); }

footer { position: relative; z-index: 0; display: grid; justify-items: center; gap: 12px; padding: 68px 0 46px; color: var(--dim); text-align: center; }
footer::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); border-top: 1px solid var(--rule); background: var(--chrome-bg); }
.footer-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-fill); }
.footer-mark svg { width: 26px; height: 26px; }
footer p { margin: 0; color: var(--bright); font-size: 18px; }
footer > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; font: 12px/1.5 var(--mono); }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--bright); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1100px); }
  .nav { align-items: center; }
  .nav-links { gap: 10px; }
  .nav-links a { display: none; }
  .hero { padding-top: 54px; }
  .hero-copy { font-size: 18px; }
  .cta-row { display: grid; }
  .cta-row .button { width: min(100%, 310px); }
  .stage { margin-top: 45px; border-radius: 11px; }
  .section { padding-top: 86px; }
  .path-grid, .command-grid, .install-links { grid-template-columns: 1fr; }
  .path-card { min-height: 340px; padding: 24px; }
  .path-card + .path-card { border-top: 1px solid var(--rule); border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article { padding: 22px 10px; }
  .code-row { grid-template-columns: 1fr; }
  .code-row button { min-height: 40px; margin: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .stage video { transition: none; }
}
