/* ============================================================
   CREATIVE GAMERS STUDIO — Super Kawaii Rainbow CSS
   Fonts: Baloo 2 (display/headings) + Nunito (body)
   Palette: Bright rainbow candy (light) / Deep blueberry night (dark)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Meta theme color for JS */
  --meta-light: #fffcf7;
  --meta-dark: #3c200c;

  /* Rainbow Candy Palette */
  --c-red:    #ff4f70;
  --c-orange: #ff7c2a;
  --c-yellow: #ffb900;
  --c-green:  #2ecc5e;
  --c-teal:   #00d4aa;
  --c-blue:   #34a853;
  --c-violet: #f43f5e;
  --c-pink:   #ff6b8b;

  /* Light mode surfaces */
  --bg:        #fffcf7;
  --bg2:       #fff6e6;
  --bg3:       #f3fbf7;
  --surface:   #ffffff;
  --surface2:  #fffbf5;
  --border:    rgba(255, 124, 42, 0.15);

  /* Light mode text */
  --text:      #3c200c;
  --text2:     #703e1a;
  --text3:     #9c6942;

  /* Accent (primary = warm coral/gold spectrum) */
  --accent:    #ff7c2a;
  --accent2:   #ffb900;
  --accent3:   #2ecc5e;

  /* Rainbow gradient */
  --rainbow:   linear-gradient(135deg, #ff4f70 0%, #ff7c2a 25%, #ffb900 50%, #2ecc5e 75%, #ff6b8b 100%);
  --rainbow-h: linear-gradient(90deg,  #ff4f70 0%, #ff7c2a 20%, #ffb900 40%, #2ecc5e 60%, #00d4aa 80%, #ff6b8b 100%);

  /* Shadow/glow */
  --shadow-sm: 0 4px 16px rgba(255, 124, 42, 0.08);
  --shadow-md: 0 8px 32px rgba(255, 124, 42, 0.12);
  --shadow-lg: 0 16px 64px rgba(255, 124, 42, 0.16);
  --glow-pink: 0 0 32px rgba(255, 79, 112, 0.35);
  --glow-blue: 0 0 32px rgba(255, 124, 42, 0.35);
  --glow-vio:  0 0 32px rgba(255, 185, 0, 0.35);

  /* Typography scale */
  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --r-pill: 9999px;

  /* Spacing */
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark mode overrides */
[data-theme="dark"] {
  --meta-dark: #0d0a2e;

  --bg:        #0d0a2e;
  --bg2:       #120e3a;
  --bg3:       #0a1628;
  --surface:   #1a1540;
  --surface2:  #221b52;
  --border:    rgba(130, 80, 255, 0.22);

  --text:      #f0eaff;
  --text2:     #c4aaff;
  --text3:     #8870cc;

  --accent:    #a855f7;
  --accent2:   #f472b6;
  --accent3:   #22d3ee;

  --shadow-sm: 0 2px 12px rgba(100, 50, 200, 0.3);
  --shadow-md: 0 6px 32px rgba(100, 50, 200, 0.4);
  --shadow-lg: 0 16px 64px rgba(100, 50, 200, 0.5);
  --glow-pink: 0 0 48px rgba(244, 114, 182, 0.5);
  --glow-blue: 0 0 48px rgba(34, 211, 238, 0.5);
  --glow-vio:  0 0 48px rgba(168, 85, 247, 0.5);
  --border:    rgba(160, 100, 255, 0.25);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
}

.rainbow-text {
  background: var(--rainbow-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r-pill);
  border: 2.5px solid transparent;
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s ease, filter 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: scale(1.06) translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-rainbow {
  background: var(--rainbow-h);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}
.btn-rainbow:hover { box-shadow: 0 8px 40px rgba(124, 58, 237, 0.55), var(--glow-vio); filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-white:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }

.btn-lg {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  padding: 1.1rem 2.8rem;
}

/* ── Floating Shapes (Hero decor) ────────────────────────── */
.float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(1px);
}

.shape-star { border-radius: 0; filter: none; font-size: 2rem; opacity: 0.7; }
.shape-blob { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.shape-cloud { border-radius: 50px; opacity: 0.6; }

@keyframes float-a { 0%,100%{ transform: translateY(0) rotate(0deg); } 50%{ transform: translateY(-18px) rotate(8deg); } }
@keyframes float-b { 0%,100%{ transform: translateY(0) rotate(0deg) scale(1); } 50%{ transform: translateY(-12px) rotate(-6deg) scale(1.08); } }
@keyframes float-c { 0%,100%{ transform: translateY(0) scale(1); } 50%{ transform: translateY(-22px) scale(1.05); } }
@keyframes spin-slow { 0%{ transform: rotate(0deg); } 100%{ transform: rotate(360deg); } }
@keyframes pulse-glow { 0%,100%{ opacity: 0.5; } 50%{ opacity: 0.9; } }

.float-a { animation: float-a 3.5s ease-in-out infinite; }
.float-b { animation: float-b 4.2s ease-in-out infinite; }
.float-c { animation: float-c 5s ease-in-out infinite; }

/* ── NAV ─────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding: 0;
}

#header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 2px 24px rgba(124, 58, 237, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  transition: transform 0.2s var(--ease-bounce);
}
.nav-logo:hover { transform: scale(1.04); }

.logo-blob {
  width: 42px; height: 42px;
  background: var(--rainbow-h);
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  animation: float-b 3s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text2);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#themeToggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease-bounce), background 0.2s;
  color: var(--accent);
}
#themeToggle:hover { transform: scale(1.15) rotate(15deg); background: color-mix(in srgb, var(--accent) 20%, transparent); }
#themeToggle .icon-moon { display: none; }
[data-theme="dark"] #themeToggle .icon-sun { display: none; }
[data-theme="dark"] #themeToggle .icon-moon { display: block; }

#navToggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--accent);
}
#navToggle span {
  display: block;
  width: 20px; height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile Menu */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobileMenu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
#mobileMenu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--text);
  transition: color 0.2s;
}
#mobileMenu a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  #navToggle { display: flex; }
  .nav-cta-desktop { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px; /* matched to header height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, color-mix(in srgb, var(--c-yellow) 15%, transparent) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, color-mix(in srgb, var(--c-orange) 12%, transparent) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 80% 10%, color-mix(in srgb, var(--c-pink) 10%, transparent) 0%, transparent 60%),
              var(--bg);
  z-index: 0;
}

[data-theme="dark"] .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(255, 185, 0, 0.25) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 124, 42, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 80% 10%, rgba(255, 79, 112, 0.15) 0%, transparent 60%),
              var(--bg);
}

/* Rainbow arc */
.hero-arc {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  height: 160vw;
  max-width: 1800px;
  max-height: 1800px;
  border-radius: 50%;
  border: 14px solid transparent;
  background: conic-gradient(from 180deg, #ff4f70, #ff7c2a, #ffb900, #2ecc5e, #ff6b8b, #ff4f70) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), white calc(100% - 14px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), white calc(100% - 14px));
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  width: 100%;
  padding-block: clamp(1.5rem, 3.5vh, 2.5rem);
}

.hero-content { display: flex; flex-direction: column; gap: 1.1rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--c-yellow) 25%, transparent);
  border: 2px solid color-mix(in srgb, var(--c-yellow) 60%, transparent);
  color: #a06000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  width: fit-content;
}

[data-theme="dark"] .hero-badge {
  color: var(--c-yellow);
  background: color-mix(in srgb, var(--c-yellow) 15%, transparent);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text2);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.5rem 0.95rem;
  box-shadow: var(--shadow-sm);
  min-width: 85px;
  text-align: center;
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s ease;
}
.stat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-chip .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  background: var(--rainbow-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-chip .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* Hero Image */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img-wrap {
  position: relative;
  z-index: 2;
}

.hero-img-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3d57, #ff7c2a, #ffd600, #2ecc5e, #2196f3, #9c27e8, #ff3dab, #ff3d57);
  animation: spin-slow 8s linear infinite;
  opacity: 0.6;
  filter: blur(4px);
}

.hero-img-frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124, 58, 237, 0.3);
  border: 3px solid rgba(255,255,255,0.3);
  max-width: 375px;
  width: 100%;
}

.hero-img-frame img {
  width: 100%;
  border-radius: 26px;
  display: block;
}

/* Mascot Blob */
.mascot {
  position: absolute;
  font-size: 3rem;
  background: var(--rainbow-h);
  width: 70px; height: 70px;
  border-radius: 55% 45% 65% 35% / 45% 55% 40% 60%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
  animation: float-a 3s ease-in-out infinite;
  z-index: 3;
  font-size: 2rem;
  transition: transform 0.2s var(--ease-bounce);
}
.mascot:hover { transform: scale(1.15); }
.mascot-tl { top: -20px; left: -20px; animation-delay: -1s; }
.mascot-br { bottom: -10px; right: -20px; animation-delay: -2.2s; }
.mascot-tr { top: 20px; right: -30px; animation-delay: -0.6s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: hero-fade-up 0.7s var(--ease-out) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero-content > *:nth-child(5) { animation-delay: 0.58s; }

.hero-visual {
  animation: hero-fade-up 0.9s var(--ease-out) 0.3s both;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-frame { max-width: 340px; }
}

/* Floating shape decorations */
.shape-s1 {
  position: absolute; top: 15%; left: 5%;
  font-size: 2.2rem;
  animation: float-a 4s ease-in-out infinite;
  z-index: 0;
}
.shape-s2 {
  position: absolute; top: 70%; left: 8%;
  font-size: 1.8rem;
  animation: float-b 5s ease-in-out 1s infinite;
  z-index: 0;
}
.shape-s3 {
  position: absolute; top: 25%; right: 3%;
  font-size: 2.5rem;
  animation: float-c 3.8s ease-in-out 0.5s infinite;
  z-index: 0;
}
.shape-s4 {
  position: absolute; bottom: 20%; right: 8%;
  font-size: 2rem;
  animation: float-a 4.5s ease-in-out 2s infinite;
  z-index: 0;
}
.shape-s5 {
  position: absolute; top: 50%; left: 50%;
  font-size: 1.5rem;
  animation: float-b 6s ease-in-out 1.5s infinite;
  z-index: 0;
  opacity: 0.5;
}

/* ── TRUST STRIP (Parents section) ─────────────────────────── */
.trust-strip {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe8f8 50%, #e8f4ff 100%);
  border-top: 2px solid color-mix(in srgb, var(--c-yellow) 30%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--c-blue) 20%, transparent);
  padding: 1.5rem 0;
  overflow: hidden;
}

[data-theme="dark"] .trust-strip {
  background: linear-gradient(135deg, #1a1a3e 0%, #221a3a 50%, #0e1a35 100%);
  border-top-color: rgba(255, 210, 0, 0.2);
  border-bottom-color: rgba(33, 150, 243, 0.2);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text2);
  white-space: nowrap;
}

.trust-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-icon.red    { background: color-mix(in srgb, var(--c-red) 15%, transparent); }
.trust-icon.orange { background: color-mix(in srgb, var(--c-orange) 15%, transparent); }
.trust-icon.green  { background: color-mix(in srgb, var(--c-green) 15%, transparent); }
.trust-icon.blue   { background: color-mix(in srgb, var(--c-blue) 15%, transparent); }
.trust-icon.violet { background: color-mix(in srgb, var(--c-violet) 15%, transparent); }

/* ── STATS SECTION ──────────────────────────────────────────── */
.stats-section {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rainbow-h);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.stat-card.s1::before { background: var(--c-red); }
.stat-card.s2::before { background: var(--c-green); }
.stat-card.s3::before { background: var(--c-blue); }
.stat-card.s4::before { background: var(--c-violet); }

.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.stat-card .stat-emoji { font-size: 2.4rem; margin-bottom: 0.75rem; display: block; }
.stat-card .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  background: var(--rainbow-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-desc {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text2);
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── GAMES SHOWCASE ─────────────────────────────────────────── */
.games-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

.games-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (max-width: 960px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.game-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.game-thumb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.game-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.gc-red    .game-thumb::before { background: linear-gradient(135deg, #ff6b8a, #ff3d57); }
.gc-orange .game-thumb::before { background: linear-gradient(135deg, #ffa06b, #ff7c2a); }
.gc-yellow .game-thumb::before { background: linear-gradient(135deg, #ffe580, #ffd600); }
.gc-green  .game-thumb::before { background: linear-gradient(135deg, #7de8a0, #2ecc5e); }
.gc-teal   .game-thumb::before { background: linear-gradient(135deg, #7ef5e0, #00d4aa); }
.gc-blue   .game-thumb::before { background: linear-gradient(135deg, #7ec8ff, #2196f3); }
.gc-violet .game-thumb::before { background: linear-gradient(135deg, #d09aff, #9c27e8); }

.game-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }

.game-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.game-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--bg3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
}

.age-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  color: #fff;
}
.age-2-4 { background: linear-gradient(90deg, var(--c-orange), var(--c-yellow)); color: #5a3000; }
.age-3-6 { background: linear-gradient(90deg, var(--c-green), var(--c-teal)); color: #003020; }
.age-4-7 { background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); color: #001040; }
.age-5-8 { background: linear-gradient(90deg, var(--c-violet), var(--c-blue)); color: #fff; }
.age-2-8 { background: var(--rainbow-h); color: #fff; }

.game-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.2;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border);
}

.game-platform {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--rainbow-h);
  color: #fff;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.game-play-btn:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4); }

/* ── FEATURES / WHY US ──────────────────────────────────────── */
.features-section {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.features-section::after {
  content: '';
  position: absolute;
  top: 50%; right: -100px;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-violet) 15%, transparent), transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.fi-1 { background: color-mix(in srgb, var(--c-red) 15%, transparent); }
.fi-2 { background: color-mix(in srgb, var(--c-orange) 15%, transparent); }
.fi-3 { background: color-mix(in srgb, var(--c-green) 15%, transparent); }
.fi-4 { background: color-mix(in srgb, var(--c-blue) 15%, transparent); }
.fi-5 { background: color-mix(in srgb, var(--c-violet) 15%, transparent); }
.fi-6 { background: color-mix(in srgb, var(--c-pink) 15%, transparent); }

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-text p {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ── ABOUT / STORY ──────────────────────────────────────────── */
.about-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-wrap {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.about-img-wrap img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-card {
  position: absolute;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.about-card.ac1 { bottom: -20px; right: -20px; }
.about-card.ac2 { top: -15px; left: -20px; }

.about-card .ac-icon { font-size: 1.5rem; }
.about-card .ac-text { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--text2); }
.about-card .ac-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--rainbow-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-content p { color: var(--text2); line-height: 1.75; }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.value-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--text2);
  transition: transform 0.2s var(--ease-bounce);
}
.value-chip:hover { transform: scale(1.05); }

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    color-mix(in srgb, var(--c-violet) 12%, transparent) 0%,
    color-mix(in srgb, var(--c-blue) 8%, transparent) 50%,
    transparent 100%);
  pointer-events: none;
}

.cta-band {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--c-violet) 0%, var(--c-blue) 50%, var(--c-teal) 100%);
  border-radius: var(--r-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124, 58, 237, 0.35);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='2' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}
.cta-band p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-inline: auto;
  position: relative;
}
.cta-band .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-band .cta-emoji {
  position: absolute;
  font-size: 3rem;
  opacity: 0.4;
  animation: float-a 4s ease-in-out infinite;
}
.cta-band .cta-emoji.ce1 { top: 10%; left: 5%; }
.cta-band .cta-emoji.ce2 { top: 20%; right: 8%; animation-delay: -1.5s; }
.cta-band .cta-emoji.ce3 { bottom: 15%; left: 12%; animation-delay: -0.8s; }
.cta-band .cta-emoji.ce4 { bottom: 10%; right: 5%; animation-delay: -2.3s; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

.contact-info p {
  color: var(--text2);
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}
.contact-link:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-link .cl-icon { font-size: 1.5rem; }
.contact-link .cl-info { display: flex; flex-direction: column; }
.contact-link .cl-label { font-size: 0.75rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-link .cl-val { font-weight: 700; font-size: 0.95rem; color: var(--accent); }

/* Form */
.contact-form-wrap {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-sub {
  font-size: 0.9rem;
  color: var(--text3);
  margin-bottom: 1.75rem;
}

.form-alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.alert-ok   { background: color-mix(in srgb, var(--c-green) 15%, transparent); border: 1.5px solid var(--c-green); color: #1a6b38; }
.alert-err  { background: color-mix(in srgb, var(--c-red) 12%, transparent);   border: 1.5px solid var(--c-red);   color: #a00020; }
[data-theme="dark"] .alert-ok  { color: #7de8a0; }
[data-theme="dark"] .alert-err { color: #ff8090; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text2);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }

.honeypot-field { display: none !important; visibility: hidden !important; }

.form-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 2px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 28ch;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
  color: var(--text2);
  text-decoration: none;
}
.social-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text2);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--border);
  font-size: 0.83rem;
  color: var(--text3);
}
.footer-rainbow-bar {
  height: 4px;
  background: var(--rainbow-h);
  border-radius: 0 0 8px 8px;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float-a, .float-b, .float-c, .spin-slow { animation: none !important; }
  .hero-content > * { animation: none !important; }
}

/* ── Focus Styles ───────────────────────────────────────────── */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── Misc. Helpers ──────────────────────────────────────────── */
.pb-sm  { padding-bottom: 0.5rem; }
.mb-sm  { margin-bottom: 0.5rem; }
.nowrap { white-space: nowrap; }
