:root {
  --bg: #FFF8F0;
  --bg-alt: #FFF1E0;
  --fg: #2D1B4E;
  --fg-light: #5A4478;
  --accent-purple: #7C4DFF;
  --accent-teal: #00BFA5;
  --accent-yellow: #FFD54F;
  --accent-coral: #FF6B6B;
  --accent-green: #66BB6A;
  --accent-blue: #42A5F5;
  --card-purple: #F3E5F5;
  --card-teal: #E0F2F1;
  --card-yellow: #FFF8E1;
  --card-coral: #FFEBEE;
  --card-green: #E8F5E9;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  background: linear-gradient(170deg, #FFF8F0 0%, #F3E5F5 40%, #E8F5E9 70%, #FFF8F0 100%);
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  font-size: 40px;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}
.shape-1 { top: 10%; left: 8%; color: var(--accent-yellow); animation-delay: 0s; }
.shape-2 { top: 20%; right: 12%; color: var(--accent-coral); font-size: 30px; animation-delay: 1s; }
.shape-3 { bottom: 30%; left: 15%; color: var(--accent-teal); font-size: 35px; animation-delay: 2s; }
.shape-4 { bottom: 15%; right: 8%; color: var(--accent-purple); animation-delay: 3s; }
.shape-5 { top: 50%; left: 50%; color: var(--accent-green); font-size: 25px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-badge {
  display: inline-block;
  background: var(--accent-purple);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

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

.highlight-2 {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-light);
  max-width: 560px;
  margin: 0 auto;
}

.hero-characters {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  margin-top: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.char {
  font-size: 48px;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.char-owl { animation-delay: 0s; }
.char-robot { animation-delay: 0.2s; }
.char-star { animation-delay: 0.4s; }
.char-rocket { animation-delay: 0.6s; }
.char-book { animation-delay: 0.8s; }

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

/* ===== CHARACTERS ===== */
.characters {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg);
}

.characters h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--fg-light);
  max-width: 520px;
  margin: 0 auto 48px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.character-card {
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.character-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-purple { background: var(--card-purple); }
.card-teal { background: var(--card-teal); }
.card-yellow { background: var(--card-yellow); }
.card-coral { background: var(--card-coral); }
.card-green { background: var(--card-green); }

.character-emoji { font-size: 56px; margin-bottom: 16px; }
.character-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.character-card p { font-size: 0.95rem; color: var(--fg-light); }

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-block {
  background: white;
  border-radius: var(--radius);
  padding: 40px 28px;
  transition: transform 0.3s ease;
  border-bottom: 4px solid transparent;
}
.feature-block:hover { transform: translateY(-4px); }

.feature-adaptive { border-bottom-color: var(--accent-purple); }
.feature-safe { border-bottom-color: var(--accent-teal); }
.feature-fun { border-bottom-color: var(--accent-yellow); }
.feature-progress { border-bottom-color: var(--accent-coral); }

.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-block h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-block p { font-size: 0.95rem; color: var(--fg-light); line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg);
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 56px;
}

.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step-content p { font-size: 0.95rem; color: var(--fg-light); }

/* ===== CLOSING ===== */
.closing {
  padding: 100px 24px;
  background: linear-gradient(170deg, var(--card-purple) 0%, var(--card-teal) 50%, var(--card-yellow) 100%);
  text-align: center;
}

.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-emoji { font-size: 64px; margin-bottom: 24px; }
.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
  line-height: 1.3;
}
.closing p {
  font-size: 1.05rem;
  color: var(--fg-light);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.footer-brand p { font-size: 0.9rem; margin-top: 8px; }
.footer-links p { font-size: 0.9rem; margin-bottom: 4px; }

.footer-bottom {
  max-width: 900px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== CTA BUTTONS ===== */
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  box-shadow: 0 8px 24px rgba(124,77,255,0.25);
}
.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124,77,255,0.35);
}

.cta-secondary {
  background: white;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}
.cta-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,77,255,0.12);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 80vh; padding: 60px 20px 40px; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .character-grid { grid-template-columns: 1fr; }
  .hero-characters { gap: 10px; }
  .char { font-size: 36px; }
}