:root {
  --bg: #070A14;
  --surface: #0D1122;
  --surface-light: #131A2E;
  --surface-lighter: #1C253C;
  --primary: #4D8EFF;
  --primary-end: #8B5CF6;
  --accent: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --text: #FFFFFF;
  --text-secondary: #94A3B8;
  --divider: #1C253C;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header.site-header {
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav.site-nav { display: flex; gap: 22px; }
nav.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}
nav.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--divider);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  color: white;
  border: none;
}
.btn-primary:hover { opacity: 0.92; text-decoration: none; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-light); text-decoration: none; }

/* ── Sections ───────────────────────────────────────────────────────────── */

section { padding: 48px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }

h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 20px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.card p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 26px;
}

.plan.pro { border-color: var(--warning); }

.plan .tier { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.plan.pro .tier { color: var(--warning); }
.plan .price { font-size: 30px; font-weight: 800; margin: 6px 0 4px; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; }
.plan li { font-size: 13.5px; color: var(--text-secondary); padding: 5px 0; }
.plan li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

details.faq {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--text-secondary); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.contact-box a.email {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
}
.contact-box a.email:hover { opacity: 0.92; text-decoration: none; }

/* ── Legal content ──────────────────────────────────────────────────────── */

.legal {
  padding: 56px 0 80px;
}
.legal .updated {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: -8px;
}
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal h2 {
  text-align: left;
  font-size: 18px;
  margin: 34px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}
.legal p, .legal li { color: var(--text-secondary); font-size: 14.5px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 13.5px;
}
.legal blockquote p { margin: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--divider);
  padding: 32px 0;
  text-align: center;
}
footer p { color: var(--text-secondary); font-size: 13px; margin: 0 0 8px; }
footer .foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer .foot-links a { color: var(--text-secondary); font-size: 13px; }

@media (max-width: 520px) {
  nav.site-nav { gap: 14px; }
  section { padding: 36px 0; }
}
