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

:root {
  --violet:   #1A0A3E;
  --grape:    #331C4A;
  --purple:   #6B2FD4;
  --violet2:  #7B3FE4;
  --yellow:   #FFD700;
  --yellow2:  #F5BC00;
  --orange:   #F5821F;
  --orange2:  #D85A30;
  --red:      #E24B4A;
  --green:    #1D9E75;
  --blue:     #378ADD;
  --indigo:   #534AB7;
  --navy:     #185FA5;
  --brown:    #BA7517;
  --darkgreen:#27500A;
  --text-gray: #666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--violet);
  overflow-x: hidden;
  background: #fff;
}

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

/* ── Nav ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1024px, calc(100% - 32px));
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  height: 72px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled .nav-inner {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--grape);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-block;
  background: var(--yellow2);
  color: var(--grape);
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  padding: 8px 24px;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245,188,0,.45);
  background: var(--yellow);
}
.nav-cta:active { transform: translateY(0); }

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2a1a0e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.1) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 100vh;
}

.hero-logo img {
  width: min(480px, 100%);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-logo img:hover {
  transform: scale(1.03) rotate(-1deg);
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.4));
}

.hero-text { padding-top: 20px; }

.hero-headline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.hero-sub {
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 22px);
  color: #fff;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-kids {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-55%);
  width: 65%;
  max-width: 920px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 -8px 24px rgba(0,0,0,.2));
  animation: heroKidsFloat 5s ease-in-out infinite;
}

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

/* ── Store buttons ─────────────────────────────────────── */
.store-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #292929;
  color: #fdfdfd;
  border-radius: 70px;
  padding: 10px 20px;
  height: 64px;
  min-width: 185px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.store-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  background: #3a3a3a;
}
.store-btn:active { transform: translateY(0) scale(.98); }

.store-btn-icon { width: 36px; height: 36px; flex-shrink: 0; }
.store-btn-icon img, .store-btn-icon svg { width: 100%; height: 100%; object-fit: contain; }

.store-btn-label { display: flex; flex-direction: column; }
.store-btn-label small { font-size: 11px; font-family: 'Nunito', sans-serif; opacity: .85; }
.store-btn-label strong { font-size: 16px; font-weight: 600; }

/* ── About band ────────────────────────────────────────── */
.about-band {
  background: linear-gradient(128deg, #FFD700 0%, #F5821F 100%);
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.about-quote {
  max-width: 760px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--violet);
  line-height: 1.65;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 64px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
  transition: transform 0.2s ease;
}
.stat:hover { transform: scale(1.1); }

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--violet);
  line-height: 1;
}

.stat-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #2D0F5E;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* ── Section common ────────────────────────────────────── */
.section { padding: 88px 32px; }
.sec-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--violet);
  text-align: center;
  margin-bottom: 12px;
}
.sec-sub {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-gray);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

/* ── Features ──────────────────────────────────────────── */
.features { background: #fff; text-align: center; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.feat-card {
  border-radius: 22px;
  padding: 32px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.15) 0%, transparent 55%);
  pointer-events: none;
}
.feat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}
.feat-card:active { transform: translateY(-2px) scale(.99); }

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.feat-card:hover .feat-icon-wrap {
  background: rgba(255,255,255,0.3);
  transform: rotate(-5deg) scale(1.1);
}

.feat-icon-wrap img, .feat-icon-wrap svg {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.feat-title {
  font-family: 'Fredoka One', cursive;
  font-size: 21px;
  color: #fff;
  margin-top: 8px;
}

.feat-desc {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
}

/* ── Letters ───────────────────────────────────────────── */
.letters { background: #fff; text-align: center; padding-bottom: 88px; }

.letters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 40px auto 0;
}

.letter-tile {
  border-radius: 18px;
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}
.letter-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.2) 0%, transparent 50%);
  pointer-events: none;
}
.letter-tile:hover {
  transform: translateY(-8px) rotate(-3deg) scale(1.1);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
  filter: brightness(1.08);
}
.letter-tile:active {
  transform: translateY(-2px) scale(.95);
  transition-duration: 0.1s;
}

/* Ripple on click */
.letter-tile .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

.letter-char {
  font-family: 'Fredoka One', cursive;
  font-size: 44px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.letter-count {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

/* ── CTA section ───────────────────────────────────────── */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #F4741F 0%, #FFC60A 100%);
  padding: 80px 184px;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/cta-pattern.png');
  background-size: cover;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: .6;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1152px;
  margin: 0 auto;
}

.cta-text { flex: 1; }

.cta-headline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(32px, 3.5vw, 48px);
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
}

.cta-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
  max-width: 448px;
  margin-bottom: 32px;
}

.cta-store-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Phone mockups ─────────────────────────────────────── */
.phones {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}

.phone {
  position: absolute;
  border-radius: 40px;
  overflow: hidden;
  background: #1a1a1a;
  border: 4px solid #2a2a2a;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: #000;
  border-radius: 9999px;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-center {
  width: 200px;
  height: 433px;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-center:hover {
  transform: translateX(-50%) translateY(-12px) scale(1.04);
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
}

.phone-left {
  width: 175px;
  height: 372px;
  bottom: 16px;
  left: 0;
  transform: rotate(-12deg);
  z-index: 1;
}
.phone-left:hover {
  transform: rotate(-6deg) translateY(-10px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}

.phone-right {
  width: 175px;
  height: 372px;
  bottom: 16px;
  right: 0;
  transform: rotate(12deg);
  z-index: 1;
}
.phone-right:hover {
  transform: rotate(6deg) translateY(-10px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--grape);
  color: #fff;
  padding: 62px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: start;
}

.footer-brand img { height: 56px; width: auto; margin-bottom: 8px; }
.footer-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-nav {
  display: flex;
  gap: 24px;
  padding-top: 16px;
}

.footer-nav a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  transition: opacity .2s;
}
.footer-nav a:hover { opacity: .7; }

.footer-store { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

.footer-divider {
  max-width: 1152px;
  margin: 32px auto 0;
  padding: 24px 32px 0;
  border-top: .8px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-legal { display: flex; gap: 16px; }
.footer-legal a {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-legal a:hover { color: #fff; }

/* ── Mobile nav overlay ────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,10,62,.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #fff;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--yellow); }
.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s;
}
.nav-mobile-close:hover { transform: rotate(90deg); }

/* ── Scroll-reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 24px 320px;
    min-height: auto;
  }
  .hero-logo { display: flex; justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-btns { justify-content: center; }
  .hero-kids { width: 100%; transform: translateX(-50%); bottom: 0; }

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

  .letters-grid { grid-template-columns: repeat(4, 1fr); }

  .cta-section { padding: 60px 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .phones { width: 100%; height: 320px; max-width: 400px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-store { align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .letters-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { gap: 20px 40px; }
  .about-quote { font-size: 15px; }
  .footer-divider { flex-direction: column; gap: 12px; text-align: center; }
}
