:root {
  --bg: #111318;
  --surface: #1f2328;
  --surface-alt: #20242b;
  --red: #dc2626;
  --red-dark: #991b1b;
  --white: #ffffff;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --green: #22c55e;
  --orange: #f97316;
  --yellow: #facc15;
  --purple: #8b5cf6;
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--red);
}

img {
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav a:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--muted);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 76px 0 56px;
  text-align: center;
  background: radial-gradient(circle at 50% -10%, rgba(220, 38, 38, 0.18), transparent 60%);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-title .eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 10px;
}

.section-title p {
  color: var(--muted);
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 {
  color: var(--white);
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  color: var(--white);
  margin: 0 0 6px;
  font-size: 1rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.plan {
  background: var(--surface);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plan.plan-pro {
  border: 1.5px solid var(--red);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), var(--surface) 40%);
}

.plan-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.plan-tag {
  font-size: 0.7rem;
  background: var(--red);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 14px 0 4px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-price-yearly {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.plan li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question .icon {
  color: var(--red);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 18px;
}

/* Waitlist */
.waitlist-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-alt);
  color: var(--white);
  padding: 0 16px;
  font-size: 1rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted);
}

.waitlist-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

.section-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}

.waitlist-success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-weight: 600;
}

.waitlist-success.visible {
  display: block;
}

/* Legal / disclaimer */
.legal-box {
  background: var(--surface-alt);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 780px;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.94rem;
}

.legal-box strong {
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 20px;
}

/* Legal pages */
.legal-page {
  padding: 64px 0 80px;
}

.legal-page h1 {
  color: var(--white);
  margin-bottom: 4px;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-top: 32px;
}

.legal-page p,
.legal-page li {
  color: var(--text);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}
