:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #171b21;
  --panel2: #1d222a;
  --border: #2a303a;
  --text: #e8eaed;
  --muted: #9aa4b2;
  --accent: #3ddc84;
  --accent-dim: #234a35;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark { color: var(--accent); }

.nav nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary, .btn-ghost {
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #06210f;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; text-align: center; }

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

.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-note { color: var(--muted); font-size: 0.8rem; }

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

.proof-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.proof-stat .label {
  color: var(--muted);
  font-size: 0.85rem;
}

.section { padding: 60px 0; }
.section h2 { font-size: 1.6rem; text-align: center; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.card h3 { margin: 0 0 10px; font-size: 1rem; }
.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #06210f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; }
.price { font-size: 2.2rem; font-weight: 800; margin-bottom: 18px; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }

.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 0.9rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 32px;
  border-top: 1px solid var(--border);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* An author stylesheet's `display` wins over the UA default [hidden]{display:none}
   rule even at equal specificity, so the modal would show by default without this. */
.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 340px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active { background: var(--accent); color: #06210f; border-color: var(--accent); }

#authForm { display: flex; flex-direction: column; gap: 14px; }
#authForm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
#authForm input {
  background: #0f1216;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.modal-error { color: #ff5e5e; font-size: 0.85rem; margin: 0; }

@media (max-width: 720px) {
  .cards, .plans, .proof { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .hero h1 { font-size: 1.8rem; }
}
