:root {
  color-scheme: dark;
  --bg: #070b11;
  --bg-elev: #0d131d;
  --surface: #121a28;
  --border: #222f45;
  --text: #f4f7fc;
  --muted: #98a6be;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.16);
  --rose: #fb7185;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.12), transparent 36%),
              radial-gradient(circle at 82% 10%, rgba(245, 158, 11, 0.08), transparent 32%),
              var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 17, 0.82);
  border-bottom: 1px solid rgba(34, 47, 69, 0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s, filter 0.14s, border-color 0.14s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #031f16;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.28);
}
.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1f1302;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.24);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0 auto 18px;
}
.hero h1 .hl {
  background: linear-gradient(120deg, #6ee7b7, #10b981 55%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17.5px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

/* Interactive Demo Widget */
.demo-shell {
  max-width: 920px;
  margin: 38px auto 0;
  background: #0b0f17;
  border: 1px solid #28364e;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: #121927;
  border-bottom: 1px solid #1f2a3e;
}
.demo-tabs {
  display: flex;
  gap: 6px;
}
.demo-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.demo-tab.active {
  background: #1c263a;
  color: var(--text);
  border-color: #2f3e59;
}
.demo-bar {
  padding: 12px 16px;
  border-bottom: 1px solid #1b2436;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #0e141f;
}
.demo-bar input {
  flex: 1;
  background: #080c12;
  border: 1px solid #2b3850;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
}
.demo-results {
  padding: 14px 16px;
  max-height: 310px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12.5px;
}
.demo-group {
  border: 1px solid #1f2a3d;
  border-radius: 9px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #101622;
}
.demo-group-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  background: #161f30;
  color: #e2e8f0;
  font-weight: 600;
}
.demo-row {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid rgba(34, 47, 69, 0.5);
  color: #cbd5e1;
}
.demo-ln { color: #64748b; min-width: 28px; text-align: right; }
.demo-hl {
  background: rgba(245, 158, 11, 0.32);
  color: #fef3c7;
  padding: 0 2px;
  border-radius: 3px;
}

/* Sections */
section { padding: 68px 0; }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card h3 {
  font-size: 17px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 14.5px; }
.pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: #6ee7b7;
}
.pill-gold {
  background: var(--gold-soft);
  color: #fcd34d;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 47, 69, 0.7);
}
th {
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
.col-win { background: rgba(16, 185, 129, 0.06); color: #ecfdf5; font-weight: 600; }
.yes { color: var(--emerald-bright); font-weight: 700; }
.no { color: var(--rose); font-weight: 600; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), var(--bg-elev) 45%);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.12);
}
.price-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}
.price-num span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-list {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: #cbd5e1;
  flex: 1;
}
.price-list li::before { content: "✓ "; color: var(--emerald-bright); font-weight: 800; }

/* FAQ & Prose */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 22px 84px;
}
.prose h1 { font-size: 34px; margin-bottom: 12px; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; color: #f8fafc; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.prose ul { padding-left: 20px; }

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-links { display: flex; gap: 18px; }

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