:root {
  color-scheme: light dark;
  --paper: #f1f3f2;
  --surface: #fafbfa;
  --ink: #182024;
  --muted: #5b686d;
  --line: #cbd2d0;
  --accent: #b44f2d;
  --accent-ink: #ffffff;
  --soft: #e1e6e4;
  --radius: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171b1d;
    --surface: #202629;
    --ink: #edf1ef;
    --muted: #a9b3b6;
    --line: #3c474a;
    --accent: #d16b43;
    --accent-ink: #171b1d;
    --soft: #2a3235;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
.shell { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-weight: 820; letter-spacing: -.04em; text-decoration: none; }
.nav-links { display: flex; gap: 24px; font-size: .9rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }

.hero {
  min-height: min(780px, calc(100dvh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: 56px;
}

.hero-copy { max-width: 590px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .75rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: .92; letter-spacing: -.072em; }
h1 span { display: block; white-space: nowrap; }
.hero-copy > p:not(.eyebrow) { max-width: 42ch; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.hero-image { margin: 0; }
.hero-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 28px 80px color-mix(in srgb, var(--ink) 14%, transparent); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 730; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { border-color: var(--accent); }
.button:active { transform: translateY(1px); }
.button.primary { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.button.primary:hover, .button.primary:focus-visible { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.button.secondary { background: var(--surface); }

section { margin-bottom: 120px; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; letter-spacing: -.03em; }
section header { max-width: 760px; margin-bottom: 34px; }
section header p, .promise > p, .boundary p { color: var(--muted); max-width: 64ch; }

.promise { padding-block: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise h2 { max-width: 17ch; }
.promise dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; }
.promise dl div { padding-right: 20px; }
.promise dt { color: var(--muted); font-size: .76rem; }
.promise dd { margin: 4px 0 0; font-weight: 760; }

.photo-sequence { display: grid; grid-template-columns: 1fr 1fr .72fr; gap: 12px; align-items: end; }
.photo-sequence figure { margin: 0; }
.photo-sequence img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.photo-sequence .difference img { aspect-ratio: 4 / 3; }
.photo-sequence figcaption { padding-top: 8px; color: var(--muted); font-size: .78rem; }

.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.system-grid article { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.system-grid article.wide { grid-column: 1 / -1; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.system-grid p { max-width: 52ch; color: var(--muted); }
.system-grid code { overflow-wrap: anywhere; color: var(--accent); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.boundary { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(30px, 7vw, 100px); align-items: center; padding-block: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
pre { margin: 0; overflow-x: auto; padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: .86rem/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; }

.install { max-width: 900px; margin-inline: auto; text-align: center; }
.install pre { margin: 28px 0 18px; text-align: left; }
.install .actions { justify-content: center; }

.footer { display: flex; justify-content: space-between; gap: 28px; padding-block: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer p { margin-bottom: 0; }
.footer div { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .shell { width: min(100% - 24px, 1220px); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 42px 70px; }
  h1 { max-width: none; font-size: clamp(2.1rem, 9vw, 4.2rem); }
  .hero-image { grid-row: 1; }
  .promise dl { grid-template-columns: 1fr 1fr; gap: 24px; }
  .photo-sequence { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid article.wide { grid-column: auto; }
  .boundary { grid-template-columns: 1fr; }
  section { margin-bottom: 82px; }
}

@media (max-width: 520px) {
  .nav-links { gap: 14px; font-size: .8rem; }
  .actions { display: grid; }
  .button { width: 100%; }
  .promise dl { grid-template-columns: 1fr; }
  .footer { display: grid; }
}

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