:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e2d8;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #ccfbf1;
  --accent: #b45309;
  --code-bg: #0c1416;
  --code-text: #d6e4e2;
  --pass: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1213;
    --bg-alt: #141a1b;
    --surface: #182022;
    --text: #ecebe8;
    --muted: #a8a29e;
    --border: #283234;
    --brand: #2dd4bf;
    --brand-ink: #062a27;
    --brand-soft: #123c38;
    --accent: #fbbf24;
    --code-bg: #070b0c;
    --pass: #4ade80;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; }
.logo strong { color: var(--brand); font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font: 700 0.95rem "JetBrains Mono", monospace; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font: 600 0.85rem "Inter", sans-serif; cursor: pointer; }
.lang:hover { border-color: var(--brand); }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 650; border: 0; border-radius: 10px; padding: 12px 20px; font-size: 1rem; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand); background: var(--brand-soft); font-weight: 650; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

.demo { margin: 0; background: var(--code-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #1f2a2c; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #121c1e; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4a4d; }
.demo-bar em { margin-left: 10px; color: #7d9592; font: normal 0.8rem "JetBrains Mono", monospace; }
.code { margin: 0; padding: 18px 20px; color: var(--code-text); font: 0.86rem/1.65 "JetBrains Mono", monospace; overflow-x: auto; }
.code .k { color: #f472b6; }
.code .s { color: #fbbf24; }
.code .f { color: #5eead4; font-weight: 600; }
.checks { border-top: 1px solid #1f2a2c; padding: 14px 20px 6px; }
.checks p { margin: 0 0 8px; font: 0.85rem/1.4 "JetBrains Mono", monospace; color: #86efac; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.icon { font-size: 1.6rem; margin-bottom: 12px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 14px; }

/* Beta form */
.beta { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 40px; box-shadow: var(--shadow); }
.beta p { color: var(--muted); }
.form label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-row { display: flex; gap: 10px; }
.form input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.form input[type=email]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.8rem; margin: 10px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.consent input { margin-top: 3px; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.footer a { color: var(--muted); }
.form-msg { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; font-size: 0.95rem; }
.form-msg.ok { color: var(--pass); }
.form-msg.err { color: #dc2626; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .beta { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 44px 0 40px; }
  .cards { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .beta { padding: 24px; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Legal pages */
.legal h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-top: 8px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text); }
.legal a { color: var(--brand); }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0 32px; }
