:root {
  --bg: #0b1020;
  --bg-elev: #121a30;
  --bg-card: #16203a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --accent: #22d3ee;
  --accent-2: #10b981;
  --accent-ink: #06202a;
  --code-bg: #090e1a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --accent: #0284c7;
  --accent-2: #059669;
  --accent-ink: #ffffff;
  --code-bg: #0f172a;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.theme-btn {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131f;
  border: none;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
}
.trust-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Interactive Preview Card */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-tabs {
  display: flex;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px 0;
  gap: 4px;
}
.preview-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.preview-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.preview-code {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 18px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: auto;
  min-height: 225px;
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.84rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}
.status-badge {
  color: #34d399;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

/* Sections */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 680px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Comparison & Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.price-tag {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 8px 0 4px;
}
.price-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { background: var(--bg-elev); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Privacy Banner */
.privacy-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg-card)), color-mix(in srgb, var(--accent-2) 10%, var(--bg-card)));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
summary {
  font-weight: 700;
  cursor: pointer;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Docs / Legal prose */
.prose {
  max-width: 820px;
  padding: 48px 0 64px;
}
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin-top: 34px; font-size: 1.35rem; }
.prose pre {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.88rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .hero, .pricing-grid, .grid-3 { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
