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

:root {
  --purple:       #7C3AED;
  --purple-light: #EDE9FE;
  --purple-dark:  #5B21B6;
  --teal:         #0D9488;
  --amber:        #F59E0B;
  --navy:         #1E1B4B;
  --text:         #1F2937;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --white:        #FFFFFF;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--white); }
a { color: inherit; text-decoration: none; }

/* ── Section helpers ──────────────────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--purple); margin-bottom: 12px;
}
.section-sub { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 640px; margin: 12px auto 40px; text-align: center; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); z-index: 100;
}
.nav-brand { font-size: 20px; font-weight: 700; color: var(--purple); }
.nav-links  { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; padding: 10px 20px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .18s; gap: 6px; }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); }
.btn-outline  { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple-light); }
.btn-kid { background: linear-gradient(135deg, #F59E0B, #EF4444); color: #fff; border: none; }
.btn-kid:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.4); }
.btn-white { background: #fff; color: var(--purple); border-color: #fff; }
.btn-white:hover { background: var(--purple-light); border-color: var(--purple-light); }
.btn-kid-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-kid-outline:hover { background: rgba(255,255,255,.15); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 80px 40px 72px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 40%, #DBEAFE 100%);
  min-height: 560px;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .02em;
}
.hero-content h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; font-weight: 900; color: var(--navy); }
.hero-highlight { color: var(--purple); }
.hero-sub { font-size: 18px; color: var(--muted); margin: 20px 0 32px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stat { font-size: 14px; color: var(--muted); }
.hero-stat span { font-size: 22px; font-weight: 800; color: var(--navy); margin-right: 4px; }
.hero-stat-div { width: 1px; height: 20px; background: var(--border); }

/* Hero art */
.hero-art { position: relative; width: 360px; height: 360px; flex-shrink: 0; }
.art-circle {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 32px; animation: float 6s ease-in-out infinite;
}
.c1 { width: 110px; height: 110px; background: #7C3AED22; top: 5%;  left: 15%; animation-delay: 0s; }
.c2 { width: 80px;  height: 80px;  background: #F59E0B22; top: 48%; left: 62%; animation-delay: 1s; }
.c3 { width: 90px;  height: 90px;  background: #EF444422; top: 12%; left: 62%; animation-delay: 2s; }
.c4 { width: 70px;  height: 70px;  background: #05966922; top: 68%; left: 12%; animation-delay: 0.5s; }
.c5 { width: 105px; height: 105px; background: #2563EB22; top: 55%; left: 35%; animation-delay: 1.5s; }
.c6 { width: 75px;  height: 75px;  background: #DC262622; top: 28%; left: 40%; animation-delay: 2.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* ── Skill tree section ───────────────────────────────────────────────────── */
.skills-section { padding: 80px 0; text-align: center; }
.skills-section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 12px; }

.tier-flow {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 12px; margin-top: 48px; flex-wrap: wrap;
}
.tier-arrow { font-size: 28px; color: #D1D5DB; padding-top: 48px; flex-shrink: 0; }
.tier-col { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 180px; max-width: 220px; }
.tier-chip {
  font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.t1 { background: #FEF9C3; color: #854D0E; }
.t2 { background: #DBEAFE; color: #1E3A8A; }
.t3 { background: #EDE9FE; color: #4C1D95; }
.tier-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.tier-card {
  background: #F9FAFB; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: var(--text);
  text-align: left;
}
.tc-more { color: var(--muted); font-weight: 400; font-size: 13px; text-align: center; }

/* ── Tools section ────────────────────────────────────────────────────────── */
.tools-section { background: #F9FAFB; padding: 80px 0; text-align: center; }
.tools-section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; text-align: left; }
.tool-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-icon { width: 56px; height: 56px; border-radius: 14px; font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tool-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.tool-card p  { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.tool-tag { display: inline-block; background: var(--purple-light); color: var(--purple); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ── Star system section ──────────────────────────────────────────────────── */
.stars-section {
  background: var(--navy); padding: 80px 0; text-align: center;
  color: #fff;
}
.stars-section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.star-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: 48px;
}
.star-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 20px 20px 16px; min-width: 100px;
}
.star-step-final { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.star-step-icon  { font-size: 28px; }
.star-step-label { font-size: 13px; font-weight: 600; color: #E9D5FF; text-align: center; line-height: 1.4; }
.star-step-label span { font-size: 11px; color: #A78BFA; font-weight: 400; }
.star-step-arrow { font-size: 22px; color: #6D28D9; flex-shrink: 0; }

/* ── Parent section ───────────────────────────────────────────────────────── */
.parent-section { padding: 80px 0; }
.parent-inner { display: flex; align-items: flex-start; gap: 64px; flex-wrap: wrap; }
.parent-text  { flex: 1; min-width: 300px; }
.parent-text h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 32px; }
.parent-features { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.parent-features li { display: flex; align-items: flex-start; gap: 16px; }
.pf-icon { font-size: 24px; width: 44px; height: 44px; background: var(--purple-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.parent-features strong { font-size: 16px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.parent-features p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Mock dashboard cards */
.parent-art { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.pa-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: var(--shadow);
}
.pa-c1 { transform: rotate(-1deg); }
.pa-c2 { transform: rotate(.8deg); }
.pa-card-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.pa-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.pa-bar-row span:first-child { width: 38px; color: var(--muted); }
.pa-bar { height: 8px; border-radius: 4px; flex: 1; }
.pa-bar-row span:last-child { width: 30px; text-align: right; font-size: 12px; color: var(--muted); }
.pa-skill-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pa-skill-row:last-child { border-bottom: none; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-it-works { background: #F5F3FF; padding: 80px 0; text-align: center; }
.how-it-works h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 48px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { max-width: 240px; text-align: center; }
.step-num {
  width: 56px; height: 56px; background: var(--purple); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.step p   { color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-arrow { font-size: 28px; color: var(--purple); }

/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, #4F46E5 50%, var(--teal) 100%);
  padding: 80px 40px; text-align: center; color: #fff;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 12px; }
.cta-section p  { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; padding: 28px 40px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--purple); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .hero { flex-direction: column; padding: 48px 20px 48px; min-height: unset; }
  .hero-art { display: none; }
  .skills-section, .tools-section, .stars-section,
  .parent-section, .how-it-works { padding: 56px 0; }
  .cta-section { padding: 56px 20px; }
  .tier-flow { flex-direction: column; align-items: center; }
  .tier-arrow { transform: rotate(90deg); padding-top: 0; }
  .star-steps { flex-direction: column; align-items: center; }
  .star-step-arrow { transform: rotate(90deg); }
  .parent-inner { flex-direction: column; }
  .footer { padding: 20px; flex-direction: column; text-align: center; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
