:root {
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #3858f3;
  --accent-dark: #2d47c4;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --bg-elev: #16161a;
    --text: #f5f5f7;
    --muted: #98989d;
    --accent: #6b87ff;
    --accent-dark: #5470f0;
    --border: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01' on, 'cv02' on;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  z-index: 10;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; }
.brand .logo { color: var(--accent); }
.nav nav a { color: var(--muted); margin-left: 24px; font-size: 14px; font-weight: 500; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 96px 0 80px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 800; margin: 12px 0 16px; letter-spacing: -0.02em; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.hero .lead em { color: var(--text); font-style: normal; font-weight: 600; }
.cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--text); color: var(--bg);
  padding: 10px 22px; border-radius: 12px;
  font-weight: 600;
}
.badge span { font-size: 11px; opacity: 0.7; line-height: 1; }
.badge strong { font-size: 18px; line-height: 1; }
.badge:hover { text-decoration: none; opacity: 0.92; }
.ghost { color: var(--text); font-weight: 500; padding: 10px 22px; }
.micro { font-size: 13px; color: var(--muted); margin-top: 12px; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 32px 0 96px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing { padding: 64px 0 96px; }
.pricing h2 { text-align: center; font-size: 36px; letter-spacing: -0.01em; margin: 0 0 32px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.plan--featured { border-color: var(--accent); position: relative; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 48px; font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.02em; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: 15px; }
.plan li { padding: 4px 0; }
.plan .trial { font-size: 13px; color: var(--accent); margin-top: 16px; font-weight: 600; }

.contact { text-align: center; padding: 32px 0 96px; }
.contact h2 { font-size: 28px; margin: 0 0 8px; }
.contact p { color: var(--muted); }

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer p { margin: 4px 0; }
footer a { color: var(--muted); }

/* Legal / support pages */
main.doc {
  max-width: 720px;
  padding: 48px 24px 96px;
}
main.doc h1 { font-size: 40px; letter-spacing: -0.01em; margin: 0 0 8px; }
main.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.005em; }
main.doc h3 { font-size: 17px; margin: 24px 0 6px; }
main.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
main.doc p, main.doc li { color: var(--text); line-height: 1.65; }
main.doc code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 90%;
  font-family: 'SF Mono', ui-monospace, monospace;
}
main.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
main.doc th, main.doc td {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
main.doc th { color: var(--muted); font-weight: 600; }
main.doc .callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}
main.doc .cta { margin: 24px 0 40px; }
main.doc .button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
main.doc .button:hover { background: var(--accent-dark); text-decoration: none; }
.brand a { color: inherit; text-decoration: none; }

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .nav nav a { margin-left: 14px; font-size: 13px; }
}
