*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --indigo-light: #eef2ff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--indigo);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf4ff 100%);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid #c7d2fe;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--indigo); }
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s;
  text-decoration: none;
}
.badge-btn:hover { opacity: .85; text-decoration: none; }
.badge-btn.outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.badge-icon { font-size: 22px; }

/* ── Section shared ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 56px;
}

/* ── Features grid ── */
.features { background: #fafafa; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(79,70,229,.1); }
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--indigo);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ── Subjects ── */
.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.subject-pill {
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid #c7d2fe;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--indigo) 0%, #7c3aed 100%);
  text-align: center;
}
.cta .section-title { color: #fff; }
.cta .section-sub { color: rgba(255,255,255,.75); margin-left: auto; margin-right: auto; }
.cta .badge-btn { background: #fff; color: var(--indigo); }
.cta .badge-btn:hover { background: #f5f3ff; }
.cta-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 18px; font-weight: 800; color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: 12px; width: 100%; margin-top: 8px; }

/* ── Legal pages ── */
.legal-hero {
  background: var(--indigo-light);
  padding: 60px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.legal-hero p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.legal-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-body h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal-body p, .legal-body li { font-size: 15px; color: #374151; line-height: 1.75; margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--indigo); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 70px 20px 60px; }
  section { padding: 60px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
