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

:root {
  --blue:        #3B82F6;
  --blue-dark:   #1D4ED8;
  --blue-deep:   #0C1855;
  --blue-mid:    #60A5FA;
  --gold:        #F59E0B;
  --gold-light:  #FEF3C7;
  --gold-dark:   #B45309;
  --green:       #10B981;
  --green-light: #ECFDF5;
  --text:        #111827;
  --text-sec:    #4B5563;
  --text-hint:   #9CA3AF;
  --bg:          #FFFFFF;
  --surface:     #F9FAFB;
  --border:      #E5E7EB;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ───────────────────────────────────────────────────────────── */
.display     { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
.headline    { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.subheadline { font-size: clamp(0.95rem, 1.8vw, 1.125rem); font-weight: 500; line-height: 1.7; color: var(--text-sec); }
.label       { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-family: 'Nunito', sans-serif;
  font-size: 1rem; font-weight: 800; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-dark); color: #fff;
  box-shadow: 0 4px 14px rgba(29,78,216,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(29,78,216,0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.btn-outline {
  background: transparent; color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline:hover { background: var(--blue-dark); color: #fff; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 900; color: var(--blue-dark);
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 700; color: var(--text-sec);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-cta {
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: var(--blue-dark); color: #fff;
  font-size: 0.875rem; font-weight: 800;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(96,165,250,0.15), transparent);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-text { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 14px; margin-bottom: 24px;
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.9);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .subheadline { color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 440px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; gap: 28px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 600;
}
.trust-icon { font-size: 1rem; }

/* ── Phone mockup ─────────────────────────────────────────────────────────── */
.phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 70%);
  border-radius: 50%;
}
.phone {
  width: 264px;
  border-radius: 48px;
  background: #05082e;
  padding: 14px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 28px;
  background: #05082e; border-radius: 0 0 18px 18px; z-index: 10;
}
.phone-screen {
  border-radius: 35px; overflow: hidden; background: #F9FAFB;
}
.app-hdr {
  background: linear-gradient(160deg, #60A5FA 0%, #1D4ED8 100%);
  padding: 42px 16px 18px;
}
.app-hdr-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.app-greeting { font-size: 0.95rem; font-weight: 900; color: #fff; }
.app-sub { font-size: 0.65rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.app-streak {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 4px 10px;
  font-size: 0.75rem; font-weight: 800; color: #fff;
}
.app-level-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.app-lvl-badge {
  background: var(--gold); color: #fff;
  font-size: 0.6rem; font-weight: 900; padding: 3px 7px; border-radius: 5px;
}
.app-lvl-name { font-size: 0.72rem; color: rgba(255,255,255,0.88); font-weight: 700; }
.app-xp-bar {
  height: 7px; background: rgba(255,255,255,0.2); border-radius: 100px; overflow: hidden;
}
.app-xp-fill {
  height: 100%; width: 65%; background: var(--gold); border-radius: 100px;
}
.app-xp-label { font-size: 0.6rem; color: rgba(255,255,255,0.55); margin-top: 5px; font-weight: 600; }

.app-body { padding: 14px 12px; }
.app-section-label {
  font-size: 0.65rem; font-weight: 800; color: var(--text); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.app-lesson-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.app-lesson-chip {
  display: inline-block; background: #EEF2FF;
  color: var(--blue-dark); font-size: 0.55rem; font-weight: 800;
  padding: 3px 7px; border-radius: 4px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.app-lesson-title { font-size: 0.78rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.app-lesson-meta { font-size: 0.6rem; color: var(--text-hint); font-weight: 600; margin-bottom: 10px; }
.app-lesson-btn {
  width: 100%; background: var(--blue-dark); color: #fff;
  text-align: center; font-size: 0.65rem; font-weight: 800;
  padding: 7px; border-radius: 8px;
}
.app-badges { display: flex; gap: 8px; }
.app-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: 1.5px solid var(--border);
  background: var(--surface);
}
.app-badge.earned { background: #FEF9C3; border-color: #FCD34D; }

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-inner {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
}
.stat-item {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--blue-dark); }
.stat-label { font-size: 0.82rem; color: var(--text-sec); font-weight: 600; text-align: center; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block; color: var(--blue-dark); font-size: 0.78rem;
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon.blue  { background: #EEF2FF; }
.feature-icon.gold  { background: var(--gold-light); }
.feature-icon.green { background: var(--green-light); }
.feature-icon.pink  { background: #FDF2F8; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.feature-card p  { font-size: 0.9rem; line-height: 1.7; color: var(--text-sec); }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-section { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; padding: 0 16px; }
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(29,78,216,0.3);
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step p  { font-size: 0.88rem; line-height: 1.7; color: var(--text-sec); }
.steps-connector {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  margin-bottom: -20px; padding: 0 80px;
}

/* ── For families ─────────────────────────────────────────────────────────── */
.for-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.for-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.for-card-header {
  padding: 32px 32px 24px;
  display: flex; align-items: center; gap: 14px;
}
.for-card-header.student { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.for-card-header.parent  { background: linear-gradient(135deg, var(--green-light), #D1FAE5); }
.for-card-icon {
  width: 48px; height: 48px; border-radius: 12px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.for-card-header h3 { font-size: 1.15rem; font-weight: 800; }
.for-card-header .for-sub { font-size: 0.82rem; color: var(--text-sec); font-weight: 600; }
.for-card-body { padding: 24px 32px 32px; background: var(--bg); }
.for-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.for-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-sec);
}
.for-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; margin-top: 1px;
}
.for-check.blue  { background: #EEF2FF; color: var(--blue-dark); }
.for-check.green { background: var(--green-light); color: var(--green); }

/* ── CTA banner ───────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  text-align: center; padding: 96px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.cta-section h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: 36px; position: relative; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ── App Store badge ──────────────────────────────────────────────────────── */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 12px 22px;
  border-radius: 12px; transition: opacity 0.15s;
}
.appstore-btn:hover { opacity: 0.85; }
.appstore-icon { font-size: 1.6rem; }
.appstore-text-wrap { text-align: left; }
.appstore-coming { font-size: 0.6rem; font-weight: 600; opacity: 0.7; line-height: 1; }
.appstore-label  { font-size: 1rem; font-weight: 800; line-height: 1.2; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; max-width: 260px; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 0.82rem; font-weight: 800; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}

/* ── Inner pages (privacy, support) ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  padding: 64px 0 56px; text-align: center; color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1rem; }

.prose {
  max-width: 760px; margin: 0 auto;
  padding: 64px 24px;
}
.prose h2 {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-sec);
  margin-bottom: 14px;
}
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose a  { color: var(--blue-dark); font-weight: 700; }
.prose a:hover { text-decoration: underline; }
.prose .last-updated {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px; font-size: 0.8rem;
  font-weight: 700; color: var(--text-hint); margin-bottom: 36px;
}

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  margin-bottom: 16px;
}
.faq-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.faq-item p  { font-size: 0.9rem; line-height: 1.7; color: var(--text-sec); margin: 0; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  margin-top: 48px;
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.contact-card p  { color: var(--text-sec); margin-bottom: 24px; font-size: 0.95rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-dark); color: #fff;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 800;
  font-size: 1rem; transition: opacity 0.15s;
}
.contact-email:hover { opacity: 0.88; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero .subheadline { max-width: 100%; }
  .hero-actions    { justify-content: center; }
  .hero-trust      { justify-content: center; }
  .phone-wrap      { order: -1; }
  .features-grid   { grid-template-columns: 1fr; }
  .steps           { grid-template-columns: 1fr; gap: 32px; }
  .for-grid        { grid-template-columns: 1fr; }
  .footer-top      { flex-direction: column; }
  .nav-links       { display: none; }
}

@media (max-width: 600px) {
  .stat-item       { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero-trust      { gap: 16px; }
}
