/* ============================================
   AspireAI Website — styles.css
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand */
  --primary: #8B5CF6;
  --primary-dark: #753EF4;
  --primary-light: #EAE2FD;
  --primary-rgb: 139, 92, 246;

  /* Backgrounds */
  --bg-darkest: #070707;
  --bg-dark: #121212;
  --bg-card: #212121;
  --bg-card-hover: #2a2a2a;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A6A6A6;
  --text-muted: #7a7a7a;

  /* Accents */
  --mint: #9FE2BF;
  --mint-rgb: 159, 226, 191;

  /* Layout */
  --container: 1140px;
  --nav-height: 72px;
  --section-padding: 100px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Fonts */
  --font-display: 'Sora', 'Inter', sans-serif;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Focus & Accessibility --- */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.navbar__links a:focus-visible,
.navbar__cta:focus-visible {
  border-radius: var(--radius-xs);
}

.feature-card:focus-visible,
.subject-card:focus-visible,
.learn-card:focus-visible {
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
}

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label--mint {
  background: rgba(var(--mint-rgb), 0.12);
  border-color: rgba(var(--mint-rgb), 0.25);
  color: var(--mint);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 7, 7, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.navbar__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.navbar__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__mobile.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navbar__mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
}

.navbar__mobile a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.navbar__mobile .navbar__cta {
  margin-top: 8px;
  justify-content: center;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--bg-darkest);
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-store:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-store__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store__text span:first-child {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}

.btn-store__text span:last-child {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration img {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(var(--primary-rgb), 0.15));
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* ============================================
   3. TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--bg-dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.trust-bar__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-bar__icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.trust-bar__text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-bar__text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   4. FEATURES GRID
   ============================================ */
.features {
  background: var(--bg-darkest);
}

.features__header {
  text-align: center;
  margin-bottom: 60px;
}

.features__header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.12);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   5. SUBJECTS
   ============================================ */
.subjects {
  background: var(--bg-dark);
}

.subjects__header {
  text-align: center;
  margin-bottom: 60px;
}

.subjects__header .section-subtitle {
  margin: 0 auto;
}

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

.subject-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.15);
}

.subject-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-card__image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.subject-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.subject-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================
   6. HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--bg-darkest);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works__header .section-subtitle {
  margin: 0 auto;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

/* Connecting line */
.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 36px);
  right: calc(16.67% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.3), var(--primary));
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   7. FOR PARENTS
   ============================================ */
.parents {
  background: var(--bg-dark);
}

.parents__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.parents__illustration img {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 16px 48px rgba(var(--mint-rgb), 0.08));
}

.parents__subtitle {
  margin-bottom: 32px;
}

.parents__feature {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.parents__feature:last-child {
  margin-bottom: 0;
}

.parents__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--mint-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.parents__check svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
}

.parents__feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.parents__feature p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   8. STUDENT-PARENT CONNECTION
   ============================================ */
.connection {
  background: var(--bg-darkest);
  text-align: center;
}

.connection__visual {
  max-width: 600px;
  margin: 0 auto 40px;
}

.connection__visual img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(var(--primary-rgb), 0.1));
}

.connection .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   9. ABOUT
   ============================================ */
.about {
  background: var(--bg-dark);
}

.about__header {
  text-align: center;
  margin-bottom: 48px;
}

.about__header .section-subtitle {
  margin: 0 auto;
}

.about__text {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.stat {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================
   10. LEARN ANYWHERE
   ============================================ */
.learn-anywhere {
  background: var(--bg-darkest);
  position: relative;
  overflow: hidden;
}

.learn-anywhere__header {
  text-align: center;
  margin-bottom: 60px;
}

.learn-anywhere__header .section-subtitle {
  margin: 0 auto;
}

.learn-anywhere__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.learn-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.learn-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.learn-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.learn-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.learn-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Purple wave decoration */
.learn-anywhere__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg-dark);
  clip-path: ellipse(70% 100% at 50% 100%);
  opacity: 0.5;
}

/* ============================================
   11. CTA
   ============================================ */
.cta {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #a78bfa);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta__inner .section-title {
  color: white;
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta .btn-store {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.cta .btn-store:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer__logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.footer__social a:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.footer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer__links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* ============================================
   13. LEGAL PAGES (Terms, Privacy, etc.)
   ============================================ */
.legal {
  padding-top: calc(var(--nav-height) + 60px);
  background: var(--bg-darkest);
}

.legal__container {
  max-width: 780px;
}

.legal__header {
  margin-bottom: 48px;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.legal__intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal__body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal__section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal__section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal__section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal__section h3:first-of-type {
  margin-top: 0;
}

.legal__section p {
  margin-bottom: 8px;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal__section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.legal__section ul li:last-child {
  margin-bottom: 0;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal__email {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition);
}

.legal__email:hover {
  color: var(--primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
  :root {
    --section-padding: 80px;
  }

  .hero__inner {
    gap: 40px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subjects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parents__inner {
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  /* Navbar */
  .navbar__links,
  .navbar__cta-desktop {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__illustration {
    order: -1;
  }

  .hero__illustration img {
    max-width: 320px;
  }

  .hero__glow {
    width: 280px;
    height: 280px;
  }

  /* Trust bar */
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .trust-bar__item {
    justify-content: flex-start;
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Subjects */
  .subjects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* How it works */
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-it-works__steps::before {
    display: none;
  }

  /* Parents */
  .parents__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .parents__illustration {
    order: -1;
    text-align: center;
  }

  .parents__illustration img {
    max-width: 360px;
    margin: 0 auto;
  }

  /* About stats */
  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Learn anywhere */
  .learn-anywhere__cards {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta {
    padding: 72px 0;
  }

  /* Legal */
  .legal {
    padding-top: calc(var(--nav-height) + 40px);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  .subjects__grid {
    grid-template-columns: 1fr;
  }
}
