:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-alt: #f3f1ed;
  --text: #1b1a18;
  --muted: #5d5a54;
  --line: #e4e0d9;
  --accent: #a4521f;
  --accent-hover: #8a4318;
  --accent-text: #ffffff;
  --code-bg: #1d1c1a;
  --code-text: #ece9e2;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1a1a18;
    --surface-alt: #161614;
    --text: #f0eee9;
    --muted: #b3afa6;
    --line: #2d2c29;
    --accent: #e0864e;
    --accent-hover: #ec9a66;
    --accent-text: #1b1208;
    --code-bg: #0b0b0a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top nav a:not(.button) { text-decoration: none; color: var(--muted); }
.top nav a:not(.button):hover { color: var(--text); }
@media (max-width: 720px) { .top nav a:not(.button) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font: 600 0.95rem var(--font); text-decoration: none; cursor: pointer; transition: background 120ms, border-color 120ms; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button--ghost:hover { background: var(--surface); border-color: var(--muted); }
.button--small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 56px; } }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 720; }
.lede { margin: 20px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.proof li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.hero__card { margin: 0; }
.hero__card figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.45); }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.code__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.code__bar em { margin-left: 10px; font: normal 0.8rem var(--mono); color: rgb(255 255 255 / 0.55); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 0.88rem/1.7 var(--mono); }
.code .k { color: #f0a46e; }
.code .s { color: #9fd49a; }
.code .c { color: rgb(255 255 255 / 0.45); }

/* Sections */
.section { padding: 88px 0; }
.section--alt, .band { background: var(--surface-alt); border-block: 1px solid var(--line); }
.band { padding: 72px 0; }
h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.section__lede { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.band p { color: var(--muted); font-size: 1.05rem; }
.gaps { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gaps li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.gaps--plain li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.95rem; }
.compare thead th span { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--text); font-weight: 550; }
.compare thead th:last-child { color: var(--accent); }

.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.steps h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
.form { display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; }
.form input, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 1rem var(--font); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form [aria-invalid='true'] { border-color: #c0392b; }
.form .error { color: #c0392b; font-weight: 500; font-size: 0.85rem; }
@media (prefers-color-scheme: dark) { .form [aria-invalid='true'] { border-color: #ef7a6c; } .form .error { color: #ef7a6c; } }
.form .button { justify-self: start; }
.form__status { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form__status.ok { color: var(--accent); font-weight: 600; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.foot__row span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
