:root {
  color-scheme: light dark;
  --bg: #fbfaf9;
  --panel: #ffffff;
  --ink: #14131a;
  --muted: #6a6875;
  --line: rgba(20, 19, 26, 0.10);
  --accent: #2f7d5e;
  --accent-ink: #ffffff;
  --ok: #0f7b4f;
  --danger: #c22b2b;
  --shadow: 0 1px 2px rgba(20, 19, 26, .04), 0 18px 40px rgba(20, 19, 26, .07);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b10;
    --panel: #16151c;
    --ink: #f3f2f7;
    --muted: #9a97a8;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #4fcf9c;
    --accent-ink: #0b1310;
    --ok: #45d69a;
    --danger: #ff7d7d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0b10;
  --panel: #16151c;
  --ink: #f3f2f7;
  --muted: #9a97a8;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #4fcf9c;
  --accent-ink: #0b1310;
  --ok: #45d69a;
  --danger: #ff7d7d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .5);
}

:root[data-theme="light"] { color-scheme: light; }

html { background: var(--bg); }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
code, pre {
  font: 500 0.88em/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--line);
  padding: 3px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

section { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  max-width: 1000px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.mark {
  width: 25px; height: 25px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.cta, .nav nav a.cta:hover { color: var(--accent-ink); }
.theme-toggle {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; padding: 0;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 76px; padding-bottom: 42px; text-align: center; }
.eyebrow {
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 18.5px; }

.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 26px; border-radius: 11px;
  font-weight: 620; font-size: 16px; text-decoration: none;
  transition: transform 130ms cubic-bezier(.2,.8,.2,1), filter 130ms ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.install {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
  padding: 12px 16px; font-size: 14.5px; box-shadow: var(--shadow);
}
.install code { background: transparent; padding: 0; }
.install button {
  border: 0; background: var(--line); color: var(--ink); border-radius: 7px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}

/* ----------------------------------------------------------------- claims */
.claim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 84px; padding-bottom: 20px; }
.claim h3 { font-size: 18.5px; margin-bottom: 9px; }
.claim p { color: var(--muted); font-size: 15.5px; }

/* -------------------------------------------------------------------- how */
.how { padding-top: 96px; }
.how h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps .n {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 650;
}
.steps strong { display: block; margin-bottom: 3px; }
.steps p, .steps code { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ tools */
.tools { padding-top: 96px; }
.tools h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.tools .sub { color: var(--muted); margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.grid h4 { font-size: 16px; margin-bottom: 6px; }
.grid p { color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------------- oss */
.oss { padding-top: 96px; }
.oss h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.oss p { color: var(--muted); font-size: 16.5px; max-width: 680px; margin-bottom: 14px; }
.oss .cta-row { justify-content: flex-start; margin-top: 18px; }

/* ---------------------------------------------------------------- honest */
.honest { padding-top: 96px; }
.honest h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 20px; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.honest li {
  color: var(--muted); font-size: 15.5px;
  padding: 15px 18px; border: 1px dashed var(--line); border-radius: var(--radius);
}
.honest strong { color: var(--ink); }

/* ------------------------------------------------------------------ final */
.final { padding-top: 110px; padding-bottom: 30px; text-align: center; }
.final h2 { font-size: clamp(32px, 5vw, 48px); }
.final p { color: var(--muted); max-width: 520px; margin: 16px auto 30px; }

footer { max-width: 1000px; margin: 80px auto 0; padding: 26px 24px 50px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 13.5px; max-width: 680px; margin-bottom: 10px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
footer nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 22px; }

@media (max-width: 860px) {
  .claim, .grid { grid-template-columns: 1fr; gap: 20px; }
  .nav nav a:not(.cta) { display: none; }
}
