/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark:  #5B21B6;
  --indigo:       #4F46E5;
  --pink:         #EC4899;
  --green:        #10B981;
  --yellow:       #F59E0B;
  --red:          #EF4444;
  --bg:           #0F0F1A;
  --bg-card:      #1A1A2E;
  --bg-alt:       #13131F;
  --border:       rgba(255,255,255,0.08);
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 4px 32px rgba(0,0,0,0.4);
  --glow:         0 0 40px rgba(124,58,237,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section       { padding: 96px 0; }
.section-alt   { background: var(--bg-alt); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px rgba(124,58,237,0.35);
}
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 0 32px rgba(124,58,237,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; margin-top: 24px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 0;
}

/* Logo — left anchor */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;           /* pushes everything else right */
}

.logo-icon { font-size: 22px; line-height: 1; }
.logo-text  { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

/* Links — centred between logo and CTAs */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;                     /* gap handled by link padding below */
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
}

/* CTAs — right anchor */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  flex-shrink: 0;
}

/* Override ghost to look more like a secondary link-button */
.nav-ctas .btn-ghost {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
}
.nav-ctas .btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-ctas .btn-primary {
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 9px;
}

/* Hamburger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 16px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animated X state */
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 20px;
  background: rgba(15, 15, 26, 0.98);
  border-top: 1px solid var(--border);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.mobile-menu .btn-primary {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 13px;
  border-radius: 10px;
}

/* ── Blobs ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--indigo); bottom: -100px; left: -80px; }
.blob-3 { width: 300px; height: 300px; background: var(--pink); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; gap: 24px; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Phone Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: #0d0d1a;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
  padding: 16px;
}

.phone-screen { border-radius: 24px; overflow: hidden; }

.app-screen {
  background: #111125;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo { font-size: 22px; }

.app-level { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.level-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
}

.xp-bar {
  width: 110px;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 999px;
}
.xp-text { font-size: 10px; color: var(--text-muted); }

.flip-card-preview {
  background: linear-gradient(135deg, var(--purple-dark), var(--indigo));
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.card-text  { font-size: 13px; font-weight: 600; line-height: 1.5; color: #fff; }
.card-tap   { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 12px; }

.rating-row { display: flex; gap: 6px; }
.rating-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.again { background: rgba(239,68,68,0.2); color: #F87171; }
.hard  { background: rgba(245,158,11,0.2); color: #FCD34D; }
.good  { background: rgba(16,185,129,0.2); color: #6EE7B7; }
.easy  { background: rgba(99,102,241,0.2); color: #A5B4FC; }

.streak-bar {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Floating badges ── */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.floating-badge > div { display: flex; flex-direction: column; }
.fb-icon  { font-size: 22px; }
.fb-title { font-size: 11px; color: var(--text-muted); }
.fb-value { font-size: 14px; font-weight: 700; }

.badge-accuracy { bottom: 40px; left: -40px; animation: float 4s ease-in-out infinite; }
.badge-cards    { top: 20px; right: -40px; animation: float 4s ease-in-out infinite 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Social Proof ── */
.social-proof {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 40px;
}

.stat-num   { font-size: 36px; font-weight: 900; color: var(--purple-light); }
.stat-label { font-size: 14px; color: var(--text-muted); text-align: center; }

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
}

.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Study Modes ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.mode-card:hover { border-color: rgba(124,58,237,0.4); }

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mode-icon { font-size: 26px; }

.mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mode-badge.free    { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.mode-badge.premium { background: rgba(124,58,237,0.2); color: var(--purple-light); }

.mode-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mode-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Exam Packs ── */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exam-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.exam-card:hover { border-color: rgba(124,58,237,0.4); }
.exam-card.exam-featured { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.08); }

.exam-icon { font-size: 32px; flex-shrink: 0; }
.exam-info { flex: 1; }
.exam-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.exam-info p  { font-size: 13px; color: var(--text-muted); }

.included-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16,185,129,0.15);
  color: #6EE7B7;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.exam-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--purple-light);
  flex-shrink: 0;
}
.free-price { color: var(--green); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.2s;
}
.plan-card:hover { border-color: rgba(124,58,237,0.4); }

.plan-card.plan-featured {
  border-color: var(--purple);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 0 40px rgba(124,58,237,0.2);
}

.plan-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name   { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.plan-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.plan-amount { font-size: 32px; font-weight: 900; }
.plan-period { font-size: 14px; color: var(--text-muted); }
.plan-desc   { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-features li {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan-features .muted { color: var(--text-muted); }

/* ── Roadmap ── */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}
.roadmap-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}

.roadmap-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

.rm-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: -32px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
}
.rm-dot.done     { background: var(--green); }
.rm-dot.upcoming { background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.rm-dot.future   { background: var(--border); border-color: var(--border); }

.roadmap-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.roadmap-item p  { font-size: 14px; color: var(--text-muted); }

.rm-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
}
.done-badge     { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.upcoming-badge { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.future-badge   { background: rgba(148,163,184,0.1); color: var(--text-muted); }

/* ── Download CTA ── */
.download {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0;
}

.download-bg { position: absolute; inset: 0; z-index: 0; }
.blob-d1 { width: 500px; height: 500px; background: var(--purple); top: -200px; left: -100px; opacity: 0.15; }
.blob-d2 { width: 400px; height: 400px; background: var(--pink); bottom: -150px; right: -80px; opacity: 0.12; }

.download-inner { position: relative; z-index: 1; }
.download h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 16px; }
.download p  { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

.download-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.store-btn:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
}
.store-icon { font-size: 28px; }
.store-btn > div { display: flex; flex-direction: column; text-align: left; }
.store-sub  { font-size: 11px; color: var(--text-muted); }
.store-name { font-size: 17px; font-weight: 700; }

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-left: 8px; }

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
}
.footer-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Legal links — visually separated from nav links */
.footer-legal {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
}
.footer-legal a:hover { color: var(--purple-light); background: rgba(124,58,237,0.08); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .exams-grid { grid-template-columns: 1fr; }
  .nav-links  { display: none; }
  .nav-ctas   { display: none; }
  .nav-burger { display: flex; }
  /* Logo takes full remaining space on mobile */
  .nav-logo   { margin-right: 0; flex: 1; }
  .stat-divider { display: none; }
  .stats-row { gap: 8px; }
}

@media (max-width: 600px) {
  .features-grid  { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .section { padding: 64px 0; }
  .footer-inner   { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Active nav link — handled inside .nav-links a.active above ── */
