:root {
  --bg: #fbfaf8;
  --bg-2: #f3f1ec;
  --card: #ffffff;
  --ink: #16161d;
  --ink-2: #44434f;
  --muted: #6b6a77;
  --line: #e4e1d9;
  --accent: #5546e8;
  --accent-ink: #ffffff;
  --accent-soft: #ecebff;
  --good: #0f8a55;
  --code-bg: #15151d;
  --code-ink: #e9e7f2;
  --code-dim: #9896a8;
  --shadow: 0 1px 2px rgb(20 20 30 / 6%), 0 8px 24px rgb(20 20 30 / 6%);
  --radius: 14px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e14;
    --bg-2: #14141c;
    --card: #17171f;
    --ink: #f2f1f6;
    --ink-2: #c6c5d1;
    --muted: #9b9aa9;
    --line: #272732;
    --accent: #8e82ff;
    --accent-ink: #0e0e14;
    --accent-soft: #221f3f;
    --good: #3fcf8e;
    --code-bg: #0a0a0f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

code, pre { font-family: var(--mono); }
code { font-size: 0.9em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.38em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 8px 14px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 90% 0%, color-mix(in srgb, var(--good) 10%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin: 0 0 18px;
}
h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
h1 .accent { color: var(--accent); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); margin: 0 0 28px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.9rem; margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--good); flex: none; }

/* Terminal */
.term {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--code-ink) 12%, transparent);
  overflow: hidden; min-width: 0;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / 7%); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3946; display: block; }
.term-bar span { margin-left: 8px; font: 12px var(--mono); color: var(--code-dim); }
.term pre { margin: 0; padding: 18px 20px 20px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.t-day { color: #b9b2ff; font-weight: 700; }
.t-dim { color: var(--code-dim); }
.t-ok { color: #4fd99b; }
.t-you { color: #ffd479; }
.term-note { font-size: 0.8rem; color: var(--muted); margin: 10px 2px 0; }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 62px; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--ink-2); max-width: 44em; margin: 0 0 36px; font-size: 1.08rem; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -0.01em; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat .who { font-size: 0.85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.stat .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.stat .big strong { font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; color: var(--good); }
.stat .big span { color: var(--muted); font-size: 1.05rem; }
.stat p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.stat .tag { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.method { margin: 26px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 62em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; margin-bottom: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 0.95rem;
}
.steps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Honest table */
.fit { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fit th, .fit td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.98rem; }
.fit th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-2); }
.fit tr:last-child td { border-bottom: 0; }
.fit td:first-child { font-weight: 600; width: 32%; }
.fit td:last-child { color: var(--ink-2); }
@media (max-width: 680px) {
  .fit th, .fit td { padding: 12px 12px; font-size: 0.92rem; }
  .fit td:first-child { width: 40%; }
}
.fit + .method { margin-top: 16px; }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.install .recommended { grid-column: 1 / -1; }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; display: flex; flex-direction: column; }
.card.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card .badge { align-self: flex-start; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.95rem; }
.code { position: relative; background: var(--code-bg); border-radius: 10px; margin-top: auto; }
.code pre { margin: 0; padding: 14px 72px 14px 16px; color: var(--code-ink); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy {
  position: absolute; top: 8px; right: 8px; border: 1px solid rgb(255 255 255 / 14%); background: rgb(255 255 255 / 6%);
  color: var(--code-ink); border-radius: 8px; padding: 5px 8px; font: 600 12px var(--sans); cursor: pointer;
}
.copy:hover { background: rgb(255 255 255 / 12%); }
.after { margin: 22px 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Teams */
.teams { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .teams { grid-template-columns: 1fr; padding: 26px; } }
.teams h2 { margin-bottom: 10px; }
.teams p { margin: 0; color: var(--ink-2); }
.teams .cta { margin: 0; justify-content: flex-end; }
@media (max-width: 860px) { .teams .cta { justify-content: flex-start; } }

/* Footer */
.site-foot { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.fine { width: 100%; margin: 0; font-size: 0.85rem; }

.notfound { padding: 80px 20px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
