:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --surface: #171f3a;
  --surface-2: #1e2748;
  --border: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #a8b0d3;
  --primary: #7c5cff;
  --primary-2: #5b8cff;
  --accent: #22d3a6;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,0.25), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(91,140,255,0.18), transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; border-radius: 999px; padding: 0.7rem 1.15rem;
  font-weight: 650; cursor: pointer; transition: 0.18s ease;
  font-size: 0.95rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; box-shadow: 0 10px 30px rgba(124,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-accent {
  background: linear-gradient(135deg, #14b8a6, #22d3a6);
  color: #042f2e;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero { padding: 4.5rem 0 3rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(124,92,255,0.15); color: #c4b5fd;
  border: 1px solid rgba(124,92,255,0.3); font-size: 0.85rem; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.03em; margin: 1rem 0 1rem;
  max-width: 18ch;
}
.hero h1 span {
  background: linear-gradient(135deg, #c4b5fd, #93c5fd 50%, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 54ch; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.trust { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.trust strong { color: var(--text); }

.grid-2 {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.preview-card { padding: 1rem; }
.preview-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.9rem; color: var(--muted); font-size: 0.85rem;
}
.cover-mock {
  aspect-ratio: 2/3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #312e81, #0f766e 55%, #1e3a8a);
  display: grid; place-items: end start; padding: 1.2rem; position: relative;
}
.cover-mock::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.2), transparent 40%);
}
.cover-title { position: relative; font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.cover-sub { position: relative; opacity: 0.85; font-size: 0.9rem; margin-top: 0.35rem; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; margin-top: 1rem; }
.stat {
  background: var(--surface-2); border-radius: 12px; padding: 0.75rem;
  border: 1px solid var(--border); text-align: center;
}
.stat b { display: block; font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }

.section { padding: 3.5rem 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.section .sub { color: var(--muted); margin: 0 0 1.8rem; max-width: 60ch; }
.features {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.feature .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 0.85rem;
  background: rgba(124,92,255,0.15); font-size: 1.2rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3,1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; background: rgba(255,255,255,0.02);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 0.75rem;
}

.pricing {
  display: grid; gap: 1rem; grid-template-columns: repeat(3,1fr);
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; position: relative;
}
.price-card.featured {
  border-color: rgba(124,92,255,0.55);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.25), var(--shadow);
}
.price-card .tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(124,92,255,0.2); color: #c4b5fd;
  font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700;
}
.price { font-size: 2rem; font-weight: 800; margin: 0.4rem 0; }
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.price-card li {
  padding: 0.35rem 0 0.35rem 1.4rem; position: relative; color: var(--muted);
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

.form-card { max-width: 720px; margin: 0 auto; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.field { margin-bottom: 1rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(124,92,255,0.45); border-color: transparent;
}
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }
.row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.results { margin-top: 1.5rem; display: none; }
.results.show { display: block; }
.kw-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.kw-table th, .kw-table td {
  text-align: left; padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--border);
}
.kw-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 0.15rem 0.45rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
}
.score.high { background: rgba(34,211,166,0.15); color: #5eead4; }
.score.mid { background: rgba(251,191,36,0.15); color: #fcd34d; }
.score.low { background: rgba(251,113,133,0.15); color: #fda4af; }

.wizard-steps {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.wizard-steps .pill {
  padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.82rem;
  border: 1px solid var(--border); color: var(--muted);
}
.wizard-steps .pill.on {
  background: rgba(124,92,255,0.18); color: #ddd6fe; border-color: rgba(124,92,255,0.4);
}
.panel { display: none; }
.panel.active { display: block; }
.book-preview {
  display: grid; gap: 1rem; grid-template-columns: 180px 1fr;
}
@media (max-width: 640px) { .book-preview { grid-template-columns: 1fr; } }
.page-list {
  max-height: 320px; overflow: auto; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-soft);
}
.page-item {
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.page-item:last-child { border-bottom: 0; }
.page-item strong { display: block; }

.waitlist {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem;
}
.waitlist input { flex: 1; min-width: 220px; }

.footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; margin-top: 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.footer-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer a:hover { color: var(--text); }
.footer h4 { margin: 0 0 0.6rem; color: var(--text); font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.35rem; }

.toast {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100;
  background: #052e2b; color: #99f6e4; border: 1px solid rgba(45,212,191,0.35);
  padding: 0.85rem 1rem; border-radius: 12px; display: none; box-shadow: var(--shadow);
}
.toast.show { display: block; animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.progress {
  height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 1rem 0;
}
.progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}
