/* =====================================================
   LEARN WITH KIT — Stylesheet
   ===================================================== */

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

:root {
  --red:    #ff6b6b;
  --orange: #ff9f43;
  --yellow: #ffd32a;
  --green:  #1dd1a1;
  --teal:   #4ecdc4;
  --blue:   #54a0ff;
  --purple: #a29bfe;
  --pink:   #fd79a8;

  --bg:     #fffdf7;
  --text:   #2d3436;
  --muted:  #636e72;

  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --radius:  16px;
  --shadow:  0 8px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ----- Typography ----- */
h1 { font-family: 'Fredoka One', cursive; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.15; }
h2 { font-family: 'Fredoka One', cursive; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; }
h3 { font-family: 'Fredoka One', cursive; font-size: 1.35rem; }

.highlight       { color: var(--yellow); }
.highlight.kit   { -webkit-text-stroke: 2px rgba(0,0,0,.15); }

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

.btn--primary  { background: var(--yellow); color: #1a1a2e; }
.btn--secondary { background: rgba(255,255,255,.2); color: #fff; border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn--nav      { background: var(--yellow); color: #1a1a2e; padding: 10px 22px; font-size: .9rem; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #fff;
  transition: color .3s;
}
.nav.scrolled .nav__logo { color: var(--text); }
.logo-icon { font-size: 1.8rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
.nav.scrolled .nav__links a { color: var(--text); }
.nav__links a:not(.btn):hover { color: var(--yellow); }
.nav.scrolled .nav__links a:not(.btn):hover { color: var(--purple); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}
.nav.scrolled .nav__burger { color: var(--text); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--hero-bg);
  overflow: hidden;
}

/* Floating letter bubbles */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: rgba(255,255,255,.7);
  animation: floatUp 8s ease-in-out infinite;
}
.bubble--1 { left: 5%;  top: 20%; animation-delay: 0s;   background: rgba(255,107,107,.3); }
.bubble--2 { left: 12%; top: 65%; animation-delay: 1.2s; background: rgba(84,160,255,.3); }
.bubble--3 { left: 88%; top: 25%; animation-delay: 2.1s; background: rgba(29,209,161,.3); }
.bubble--4 { left: 80%; top: 70%; animation-delay: 0.7s; background: rgba(255,211,42,.3); }
.bubble--5 { left: 55%; top: 10%; animation-delay: 3.3s; background: rgba(162,155,254,.3); }
.bubble--6 { left: 70%; top: 50%; animation-delay: 1.8s; background: rgba(253,121,168,.3); }
.bubble--7 { left: 25%; top: 80%; animation-delay: 2.5s; background: rgba(78,205,196,.3); }
.bubble--8 { left: 40%; top: 30%; animation-delay: 4s;   background: rgba(255,159,67,.3); }

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .7; }
  50%       { transform: translateY(-30px) rotate(8deg); opacity: 1; }
}

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

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
}

.hero__title { color: #fff; margin-bottom: 20px; }
.hero__subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note { color: rgba(255,255,255,.65); font-size: .9rem; font-weight: 600; }

/* Phone mockup */
.hero__phone { display: flex; justify-content: center; }
.phone-mockup {
  width: 280px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.1);
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  height: 500px;
}
.app-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8f9ff 0%, #eef1ff 100%);
}
.app-header {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 16px;
  text-align: center;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  flex: 1;
}
.app-tile {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.app-tile:hover { transform: scale(1.05); }
.app-tile span { font-size: .65rem; font-family: 'Nunito', sans-serif; font-weight: 700; opacity: .9; }
.tile--red    { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.tile--blue   { background: linear-gradient(135deg, #54a0ff, #2980b9); }
.tile--green  { background: linear-gradient(135deg, #1dd1a1, #10ac84); }
.tile--yellow { background: linear-gradient(135deg, #ffd32a, #f9ca24); color: #1a1a2e; }
.tile--purple { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.tile--orange { background: linear-gradient(135deg, #ff9f43, #ee5a24); }
.app-cat {
  font-size: 2.5rem;
  text-align: center;
  padding: 12px;
  animation: catBounce 1.5s ease-in-out infinite;
}
@keyframes catBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero__wave svg { width: 100%; height: 80px; }

/* =====================================================
   STATS
   ===================================================== */
.stats {
  padding: 60px 0;
  background: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  display: block;
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
  margin-top: 4px;
}

/* =====================================================
   SECTION HEADER (shared)
   ===================================================== */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border-radius: 50px;
  padding: 4px 16px;
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  padding: 100px 0;
  background: var(--bg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.feature-card--alpha::before   { background: linear-gradient(90deg, var(--red), var(--orange)); }
.feature-card--numbers::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.feature-card--shapes::before  { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.feature-card--colors::before  { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.feature-card--animals::before { background: linear-gradient(90deg, var(--green), var(--teal)); }
.feature-card--words::before   { background: linear-gradient(90deg, var(--pink), var(--purple)); }

.feature-card__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 10px; color: var(--text); }
.feature-card p  { color: var(--muted); font-size: .95rem; margin-bottom: 18px; line-height: 1.7; }

.feature-list { list-style: none; }
.feature-list li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0e6ff 0%, #e6f0ff 100%);
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition: transform .3s;
}
.step:hover { transform: translateY(-4px); }
.step__number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(102,126,234,.4);
}
.step__content h3 { margin-bottom: 10px; }
.step__content p  { color: var(--muted); font-size: .95rem; }
.step__arrow {
  font-size: 2rem;
  color: var(--purple);
  font-weight: 900;
  opacity: .5;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: 100px 0;
  background: #fff;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.testimonial {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.testimonial:hover { transform: translateY(-4px); }
.testimonial--featured {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  transform: scale(1.04);
}
.testimonial--featured:hover { transform: scale(1.04) translateY(-4px); }

.testimonial__stars {
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial p {
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 24px;
  color: inherit;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-weight: 800; }
.testimonial__author span   { font-size: .85rem; opacity: .7; }

/* =====================================================
   TRUST / SAFE
   ===================================================== */
.trust {
  padding: 100px 0;
  background: var(--bg);
}
.trust__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.trust__text .section-tag { margin-bottom: 14px; }
.trust__text h2 { margin-bottom: 16px; }
.trust__text > p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.trust__list { list-style: none; }
.trust__list li {
  padding: 10px 0;
  font-size: .98rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust__list li:last-child { border: none; }

.trust__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.badge {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .3s;
}
.badge:hover { transform: translateY(-4px); }
.badge__icon { font-size: 2.2rem; }

/* =====================================================
   DOWNLOAD CTA
   ===================================================== */
.download {
  position: relative;
  padding: 120px 0;
  background: var(--hero-bg);
  text-align: center;
  overflow: hidden;
}
.download__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.download__bubbles span {
  position: absolute;
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  color: rgba(255,255,255,.07);
  animation: floatUp 7s ease-in-out infinite;
}
.download__bubbles span:nth-child(1) { left: 5%;  top: 10%; animation-delay: 0s; }
.download__bubbles span:nth-child(2) { left: 20%; top: 70%; animation-delay: 1s; }
.download__bubbles span:nth-child(3) { left: 75%; top: 15%; animation-delay: 2s; }
.download__bubbles span:nth-child(4) { left: 85%; top: 60%; animation-delay: .5s; }
.download__bubbles span:nth-child(5) { left: 45%; top: 80%; animation-delay: 3s; }
.download__bubbles span:nth-child(6) { left: 60%; top: 5%;  animation-delay: 1.5s; }

.download__inner { position: relative; z-index: 1; }
.download__cat { font-size: 5rem; margin-bottom: 20px; animation: catBounce 2s ease-in-out infinite; }
.download h2 { color: #fff; margin-bottom: 16px; }
.download p  { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 40px; }

.download__buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  transition: background .2s, transform .2s, box-shadow .2s;
  min-width: 200px;
}
.store-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.store-btn small { display: block; font-size: .75rem; opacity: .8; font-weight: 600; }
.store-btn strong { display: block; font-size: 1.15rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: #1a1a2e; color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .logo-icon { font-size: 2rem; }
.footer__brand .logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer__brand p { font-size: .9rem; line-height: 1.7; opacity: .7; }

.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links strong {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.footer__links a {
  font-size: .9rem;
  opacity: .65;
  transition: opacity .2s;
}
.footer__links a:hover { opacity: 1; color: var(--yellow); }

.footer__bottom {
  text-align: center;
  padding: 20px;
  font-size: .85rem;
  opacity: .5;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26,26,46,.97);
    padding: 24px;
    gap: 20px;
    backdrop-filter: blur(12px);
  }
  .nav__links.open a { color: #fff !important; }
  .nav__burger { display: block; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__cta { justify-content: center; }
  .hero__phone { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial--featured { transform: none; }
  .trust__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats__grid   { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .download__buttons { flex-direction: column; align-items: center; }
  .trust__badges { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   ANIMATIONS — scroll reveal
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
