:root {
  --brand: #4c5bd4;
  --brand-strong: #3a48b8;
  --brand-soft: #eceefc;
  --ink: #14162b;
  --muted: #565a75;
  --line: #e2e4f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fc;
  --card: #ffffff;
  --term-bg: #12142a;
  --term-ink: #dfe2ff;
  --term-muted: #8a8fb8;
  --ok: #3ccf91;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 22 43 / 6%), 0 8px 24px rgb(20 22 43 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8e9bff;
    --brand-strong: #a9b3ff;
    --brand-soft: #23264a;
    --ink: #eceef8;
    --muted: #a5a9c6;
    --line: #2a2d4a;
    --bg: #0d0f1f;
    --bg-alt: #13152a;
    --card: #171a33;
    --term-bg: #080918;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--brand-soft); padding: 0.1em 0.35em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: none; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.4em; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
@media (prefers-color-scheme: dark) { .btn { color: #0d0f1f; } }
.btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-sm { padding: 0.5em 1em; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: #2b3594; }
.btn-light:hover { background: #eef0ff; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1000px 420px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 96px 0 80px; } .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8em; }
.accent { color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Terminal */
.terminal { margin: 0; background: var(--term-bg); color: var(--term-ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3e63; }
.terminal-bar em { margin-left: 8px; font-style: normal; font-family: var(--mono); font-size: 0.8rem; color: var(--term-muted); }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; }
.terminal code { background: none; padding: 0; font-size: inherit; color: inherit; }
.terminal .c { color: var(--term-muted); }
.terminal .p { color: #8e9bff; }
.terminal .ok { color: var(--ok); }
.terminal b { color: #fff; font-weight: 600; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 26px; }
@media (min-width: 820px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; font-size: 1.1rem; }
.strip span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 40px; }

.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.ico { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } .two-col.reverse > :first-child { order: 2; } }
.two-col p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.callout p { margin: 0; }

.price-card { display: grid; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); max-width: 860px; }
@media (min-width: 820px) { .price-card { grid-template-columns: 1fr auto; padding: 40px; } }
.price-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2em; }
.price-sub { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

.final { background: linear-gradient(135deg, #4c5bd4, #2b3594); color: #fff; padding: 72px 0; text-align: center; }
.final h2 { margin-bottom: 0.3em; }
.final p { opacity: 0.85; font-size: 1.1rem; margin-bottom: 1.6em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
