/* =============================================
   Kids Story Galaxy — Award-Winning Website Styles
   ============================================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --bg-deep: #0a0a2e;
    --bg-mid: #12103a;
    --bg-light: #1a1650;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-sky: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-gold: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    --gradient-text: linear-gradient(135deg, #FFD700, #FF6B6B, #C084FC, #60A5FA, #34D399);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; text-align: center; }

.gradient-text {
    background: var(--gradient-text);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#preloader.reveal {
    animation: preloaderReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes preloaderReveal {
    0% { clip-path: circle(100% at 50% 50%); }
    100% { clip-path: circle(0% at 50% 50%); }
}
#preloader.hidden {
    display: none;
}
.preloader-inner { text-align: center; position: relative; z-index: 2; }
.preloader-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    animation: preloaderFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6));
    position: relative;
    z-index: 2;
}
@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6)); }
    50% { transform: translateY(-20px) scale(1.05); filter: drop-shadow(0 0 80px rgba(102, 126, 234, 0.9)); }
}
/* Orbiting rings around logo */
.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.preloader-inner::before,
.preloader-inner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -30px;
    left: calc(50% - 100px);
    border: 2px solid transparent;
    border-top-color: rgba(255, 215, 0, 0.3);
    border-right-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: orbit 3s linear infinite;
    pointer-events: none;
}
.preloader-inner::after {
    width: 240px;
    height: 240px;
    top: -50px;
    left: calc(50% - 120px);
    border-top-color: rgba(192, 132, 252, 0.2);
    border-right-color: rgba(192, 132, 252, 0.08);
    animation-duration: 5s;
    animation-direction: reverse;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.preloader-text {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 40px;
    position: relative;
    z-index: 2;
}
.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}
.preloader-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin: 20px auto 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #FFD700);
    background-size: 300% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: barShimmer 2s ease-in-out infinite;
}
@keyframes barShimmer {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}
/* Preloader floating particles */
.preloader-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.preloader-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: preloaderParticle 4s ease-in-out infinite;
}
.preloader-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.preloader-particles span:nth-child(2) { left: 80%; top: 15%; animation-delay: 0.5s; background: rgba(192, 132, 252, 0.6); }
.preloader-particles span:nth-child(3) { left: 25%; top: 75%; animation-delay: 1s; background: rgba(96, 165, 250, 0.6); }
.preloader-particles span:nth-child(4) { left: 70%; top: 80%; animation-delay: 1.5s; }
.preloader-particles span:nth-child(5) { left: 50%; top: 10%; animation-delay: 0.7s; background: rgba(52, 211, 153, 0.6); }
.preloader-particles span:nth-child(6) { left: 90%; top: 50%; animation-delay: 2s; background: rgba(255, 107, 107, 0.5); }
@keyframes preloaderParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

/* ---------- COMET CURSOR ---------- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 8px 3px rgba(255, 215, 0, 0.7), 0 0 20px 6px rgba(255, 150, 50, 0.4);
    will-change: transform;
}
.cursor-ring {
    display: none;
}
#cometTrail {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
}

/* ---------- STARFIELD CANVAS ---------- */
#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* ---------- NAVIGATION ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--transition-smooth);
}
#navbar.scrolled {
    background: rgba(10, 10, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    transition: filter 0.3s ease;
}
.nav-logo:hover img { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
    transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-cta-link {
    background: var(--gradient-main);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s ease;
}
.nav-cta-link::after { display: none; }
.nav-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
    position: relative;
    margin-left: 8px;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.lang-flag {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1001;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.lang-option:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.lang-option.active {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

/* ---------- RTL / ARABIC SUPPORT ---------- */
html[dir="rtl"] {
    overflow-x: hidden;
}
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Nunito', sans-serif;
    overflow-x: hidden;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .section-label, html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title, html[dir="rtl"] .download-title,
html[dir="rtl"] .nav-link, html[dir="rtl"] .btn-text,
html[dir="rtl"] .feature-card h3, html[dir="rtl"] .game-label,
html[dir="rtl"] .stat-label, html[dir="rtl"] .phone-label,
html[dir="rtl"] .lang-flag {
    font-family: 'Cairo', 'Fredoka', sans-serif;
}
html[dir="rtl"] p, html[dir="rtl"] span, html[dir="rtl"] a, html[dir="rtl"] div,
html[dir="rtl"] .char-desc, html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .feature-card p, html[dir="rtl"] .reward-parent-note p {
    font-family: 'Cairo', 'Nunito', sans-serif;
}
html[dir="rtl"] .hero-title { line-height: 1.3; }
html[dir="rtl"] .hero-title .gradient-text { line-height: 1.4; }
html[dir="rtl"] .section-title { line-height: 1.3; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links { flex-direction: column; }
    html[dir="rtl"] .hero-actions { flex-direction: column; }
    html[dir="rtl"] .steps-row { flex-direction: column; }
}
html[dir="rtl"] .nav-link::after { left: auto; right: 0; }
html[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .lang-option { text-align: right; }
html[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
html[dir="rtl"] .story-label { text-align: center; }
html[dir="rtl"] .char-info { text-align: right; }
html[dir="rtl"] .music-info { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .reward-hero-left { text-align: right; }
html[dir="rtl"] .reward-stat-row { direction: ltr; }
html[dir="rtl"] .family-card { text-align: right; }
html[dir="rtl"] .age-card { text-align: right; }
html[dir="rtl"] .step { text-align: center; }
html[dir="rtl"] .step-number { right: auto; left: 20px; }
/* RTL: flip all left-aligned text */
html[dir="rtl"] .characters-carousel { text-align: right; }
html[dir="rtl"] .music-grid { text-align: right; }
html[dir="rtl"] .music-info h3, html[dir="rtl"] .music-info p { text-align: right; }
html[dir="rtl"] .reward-parent-note { text-align: right; }
html[dir="rtl"] .reward-hero-left { text-align: right; }
html[dir="rtl"] .pillar-badge-row { direction: ltr; }
/* RTL: flip specific positioned elements */
html[dir="rtl"] .hero-badge { direction: rtl; }
html[dir="rtl"] .scroll-cue { direction: rtl; }
html[dir="rtl"] .download-content { text-align: center; }
html[dir="rtl"] .footer-inner { text-align: right; }
html[dir="rtl"] .footer-brand { text-align: right; }
/* RTL: step connector gradient */
html[dir="rtl"] .step-connector { transform: scaleX(-1); }
html[dir="rtl"] .footer-links { direction: ltr; }
html[dir="rtl"] .reward-parent-note { text-align: right; }
html[dir="rtl"] .stories-scroll-wrap { direction: ltr; }
html[dir="rtl"] .stories-track { direction: ltr; }
html[dir="rtl"] .story-label { direction: rtl; }
html[dir="rtl"] .marquee-strip { direction: ltr; }
html[dir="rtl"] .marquee-track { direction: ltr; }
html[dir="rtl"] .features-grid, html[dir="rtl"] .games-grid,
html[dir="rtl"] .family-grid, html[dir="rtl"] .ages-grid,
html[dir="rtl"] .reward-pillars { direction: rtl; }
html[dir="rtl"] .steps-row { flex-direction: row-reverse; }
@media (max-width: 768px) {
    html[dir="rtl"] .steps-row { flex-direction: column; }
}
html[dir="rtl"] .char-age { direction: ltr; }
/* Arabic: kill letter-spacing and uppercase (breaks cursive joining) */
html[dir="rtl"] * {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ---------- CJK FONT SUPPORT ---------- */
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
    font-family: 'Noto Sans SC', 'Nunito', sans-serif;
}
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
    font-family: 'Noto Sans JP', 'Nunito', sans-serif;
}
html[lang="ko"] body, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] h4 {
    font-family: 'Noto Sans KR', 'Nunito', sans-serif;
}

/* ---------- STICKY DOWNLOAD BUTTON ---------- */
.sticky-download {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: all 0.4s var(--transition-smooth);
}
.sticky-download.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sticky-download:hover {
    background: rgba(102, 126, 234, 1);
}
.sticky-download-icon { flex-shrink: 0; }

/* ---------- INLINE CTA ---------- */
.inline-cta {
    text-align: center;
    padding: 12px 24px;
}
.inline-cta-icon { display: none; }
.inline-cta-text { display: none; }
.inline-cta-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}
.inline-cta-btn:hover {
    color: var(--text-secondary);
}

/* ---------- CHARACTER CARD DOWNLOAD HINT ---------- */
.char-card-inner { position: relative; cursor: pointer; }
.char-cta-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-smooth);
}
.char-card:hover .char-cta-wrap {
    max-height: 70px;
}
.char-card .char-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 4px 20px 20px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.char-card .char-cta:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.45);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}
.char-cta-icon { font-size: 14px; }

/* ---------- HERO ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}
.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.6);
}
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.btn-primary:hover .btn-shine { left: 100%; }
.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 20px;
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-3px);
}
.btn-lg {
    padding: 20px 48px;
    font-size: 18px;
}
.apple-icon { flex-shrink: 0; }

/* Floating Characters */
.hero-characters {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-char {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    object-fit: contain;
    animation: charFloat 6s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.4))
           drop-shadow(0 0 20px rgba(102, 126, 234, 0.15));
    opacity: 0;
    transition: opacity 1s ease, transform 0.5s var(--transition-bounce), filter 0.5s ease;
}
.hero-char.visible { opacity: 1; }
.hero-char:hover {
    filter: drop-shadow(0 10px 50px rgba(0,0,0,0.5))
           drop-shadow(0 0 40px rgba(255, 215, 0, 0.3));
    z-index: 10;
}

@keyframes charFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-18px) rotate(2deg); }
    50% { transform: translateY(-6px) rotate(-1.5deg); }
    75% { transform: translateY(-22px) rotate(1deg); }
}

/* Hero logo glow pulse */
.hero-logo-wrap {
    display: block;
    width: fit-content;
    margin: 0 auto 32px;
    position: relative;
}
.hero-logo-wrap img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
    animation: logoGlow 4s ease-in-out infinite;
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5)); }
    50% { filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.6)); }
}
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: logoRing 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}
.scroll-cue span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.01% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- FEATURES ---------- */
.section-dark { background: var(--bg-mid); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.feature-icon-wrap { margin-bottom: 20px; }
.feature-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- APP PREVIEW (iPhone Mockups) ---------- */
.section-preview {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    overflow: hidden;
}
.phones-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    perspective: 1200px;
}
.phone-wrap {
    text-align: center;
    transition: transform 0.6s var(--transition-smooth);
}
.phone-left { transform: rotateY(12deg) rotateX(2deg) translateY(20px); }
.phone-right { transform: rotateY(-12deg) rotateX(2deg) translateY(20px); }
.phone-center { transform: translateY(-10px) scale(1.08); z-index: 2; }
.phone-wrap:hover { transform: rotateY(0) rotateX(0) translateY(-10px) scale(1.05); z-index: 3; }
.phone-center:hover { transform: translateY(-20px) scale(1.12); }

.phone-frame {
    width: 260px;
    height: 530px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.4s ease;
}
.phone-wrap:hover .phone-frame {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(102, 126, 234, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 5;
}
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #0f0f23;
    position: relative;
}
.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 5;
}
/* Screen content */
.screen-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(rgba(0,0,0,0.4), transparent);
}
.screen-icons { letter-spacing: 2px; font-size: 8px; }
.screen-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screen-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}
.screen-narration-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}
.screen-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 50%;
    font-size: 10px;
    flex-shrink: 0;
}
.screen-story-text {
    line-height: 1.3;
    font-style: italic;
}
/* Character selection screen */
.screen-char-grid {
    padding: 40px 12px 12px;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}
.screen-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}
.screen-avatars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 8px;
}
.screen-avatars img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 6px;
    transition: transform 0.3s var(--transition-bounce);
}
.screen-avatars img:hover { transform: scale(1.1); }
/* Game screen */
.screen-game-bar {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
}
/* Phone labels */
.phone-label {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---------- CHARACTERS ---------- */
.section-characters {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}
.characters-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    perspective: 1000px;
    text-align: left;
}
.char-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.5s var(--transition-smooth);
    transform-style: preserve-3d;
    display: flex;
}
.char-card:hover { transform: translateY(-12px); }
.char-card-inner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}
.char-card:hover .char-card-inner {
    border-color: var(--accent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent),
                0 20px 60px rgba(0, 0, 0, 0.4);
}
.char-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
    transition: background 0.4s ease;
}
.char-card:hover .char-img-wrap {
    background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 70%);
}
.char-img-wrap img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.5s var(--transition-bounce);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}
.char-card:hover .char-img-wrap img { transform: scale(1.1) rotate(-3deg); }
.char-info { padding: 20px 24px 28px; flex: 1; }
.char-age {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: 8px;
}
.char-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.char-series {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.char-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- STORY GALLERY ---------- */
.section-stories {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0d1b2a 50%, var(--bg-deep) 100%);
    padding-bottom: 0;
    overflow: hidden;
}
/* Story features row */
.story-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
    text-align: center;
}
.story-feat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
}
.story-feat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.story-feat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}
.story-feat h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}
.story-feat p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stories-scroll-wrap {
    overflow: hidden;
    padding: 40px 0 80px;
    -webkit-user-select: none;
    user-select: none;
}
.stories-track {
    display: inline-flex;
    gap: 28px;
    animation: stories-scroll 45s linear infinite;
}
.stories-scroll-wrap:hover .stories-track {
    animation-play-state: paused;
}
/* stories-scroll keyframe is set dynamically by JS for pixel-perfect looping */
.story-card {
    flex: 0 0 340px;
    border-radius: var(--radius-md);
    overflow: visible;
    position: relative;
    will-change: transform, box-shadow;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.story-card:hover {
    transform: translateY(-6px);
}
.story-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}
.story-card:hover .story-img-wrap {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.story-img-wrap img {
    display: block;
    width: 100%;
    transition: transform 0.6s var(--transition-smooth);
}
.story-card:hover .story-img-wrap img {
    transform: scale(1.05);
}
.story-label {
    padding: 14px 4px 12px;
    text-align: center;
}
.story-char {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}
.story-label h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-top: 2px;
    color: var(--text-primary, rgba(255,255,255,0.9));
    line-height: 1.2;
}

/* ---------- GAMES ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.game-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}
.game-card:hover img {
    transform: scale(1.08);
}
.game-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: left;
}

/* ---------- COLORING ---------- */
.section-coloring {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0d1b2a 100%);
}
.coloring-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.coloring-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    transition: transform 0.5s var(--transition-bounce), box-shadow 0.5s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
}
.coloring-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.coloring-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: filter 0.6s ease;
}
/* Rainbow color wash on hover */
.coloring-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 105, 180, 0.35) 0%,
        rgba(255, 215, 0, 0.35) 20%,
        rgba(52, 211, 153, 0.35) 40%,
        rgba(96, 165, 250, 0.35) 60%,
        rgba(192, 132, 252, 0.35) 80%,
        rgba(255, 99, 71, 0.35) 100%
    );
    background-size: 300% 300%;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: var(--radius-md);
    pointer-events: none;
}
.coloring-card:hover::after {
    opacity: 1;
    animation: colorWash 3s ease infinite;
}
@keyframes colorWash {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- MUSIC ---------- */
.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}
.music-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}
.music-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}
.music-video-wrap {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    cursor: pointer;
}
.music-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth), filter 0.4s ease;
}
.music-card:hover .music-poster {
    transform: scale(1.05);
    filter: brightness(0.85);
}
.music-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 2;
}
/* Play button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s var(--transition-bounce);
}
.play-btn:hover {
    background: rgba(102, 126, 234, 0.7);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.6);
}
.play-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
.music-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}
.music-char {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.music-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.music-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- REWARDS & ENGAGEMENT ---------- */
.section-rewards {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}
/* Main showcase card */
.reward-hero-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.03), rgba(102,126,234,0.05), rgba(192,132,252,0.03));
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.reward-hero-card:hover {
    border-color: rgba(255,215,0,0.2);
    box-shadow: 0 0 60px rgba(255,215,0,0.06), 0 20px 60px rgba(0,0,0,0.3);
}
.reward-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.08), transparent 60%);
    pointer-events: none;
    animation: rewardGlow 8s ease-in-out infinite;
}
@keyframes rewardGlow {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.5; }
    50% { transform: translate(-30px, 20px) scale(1.1); opacity: 1; }
}
.reward-hero-left { flex: 1; text-align: left; }
.reward-emoji-big { font-size: 48px; margin-bottom: 16px; }
.reward-hero-left h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
}
.reward-hero-left p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.reward-stat-row {
    display: flex;
    gap: 24px;
}
.reward-mini-stat {
    text-align: center;
}
.reward-mini-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}
.reward-mini-stat span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Floating avatars */
.reward-hero-right {
    flex: 0 0 240px;
    position: relative;
    height: 240px;
}
.reward-avatars-float { position: relative; width: 100%; height: 100%; }
.float-avatar {
    position: absolute;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,215,0,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.08);
    animation: avatarFloat 5s ease-in-out infinite;
    transition: transform 0.3s var(--transition-bounce), border-color 0.3s ease, box-shadow 0.3s ease;
}
.float-avatar:hover {
    transform: scale(1.35) !important;
    border-color: rgba(255,215,0,0.6);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 25px rgba(255,215,0,0.2);
    z-index: 5;
}
.fa-1 { top: 5%; left: 10%; animation-delay: 0s; }
.fa-2 { top: 0%; left: 55%; animation-delay: 0.8s; }
.fa-3 { top: 35%; left: 0%; animation-delay: 0.4s; }
.fa-4 { top: 35%; left: 65%; animation-delay: 1.2s; }
.fa-5 { top: 65%; left: 20%; animation-delay: 0.6s; }
.fa-6 { top: 65%; left: 55%; animation-delay: 1s; }
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 3 Pillars */
.reward-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    text-align: center;
}
.reward-pillar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 36px 24px 28px;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
}
.reward-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px color-mix(in srgb, var(--glow-color, #667eea) 10%, transparent);
    border-color: color-mix(in srgb, var(--glow-color, #667eea) 30%, transparent);
}
.reward-pillar:nth-child(1) { --glow-color: #FF6B6B; }
.reward-pillar:nth-child(2) { --glow-color: #FFD700; }
.reward-pillar:nth-child(3) { --glow-color: #60A5FA; }
.pillar-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.pillar-icon { font-size: 44px; position: relative; z-index: 1; }
.pillar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color), transparent 70%);
    opacity: 0.15;
    filter: blur(10px);
    z-index: 0;
}
.reward-pillar h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.reward-pillar p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.pillar-badge-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pillar-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s var(--transition-bounce);
}
.pillar-badge:hover { transform: scale(1.25) rotate(-5deg); }
.pillar-challenges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.mini-challenge {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
}

/* Parent callout */
.reward-parent-note {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(52,211,153,0.05), rgba(96,165,250,0.05));
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: left;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.reward-parent-note:hover {
    border-color: rgba(52,211,153,0.25);
    box-shadow: 0 0 40px rgba(52,211,153,0.06);
}
.parent-note-icon { font-size: 36px; flex-shrink: 0; }
.reward-parent-note p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.reward-parent-note strong { color: #34D399; font-size: 17px; }

/* ---------- HOW IT WORKS ---------- */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step {
    flex: 0 0 280px;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}
.step-number {
    position: absolute;
    top: 8px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(192,132,252,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: stepBounce 3s ease-in-out infinite;
}
.step:nth-child(1) .step-icon { animation-delay: 0s; }
.step:nth-child(3) .step-icon { animation-delay: 0.3s; }
.step:nth-child(5) .step-icon { animation-delay: 0.6s; }
@keyframes stepBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.step h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.step-connector {
    width: 80px;
    height: 2px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(90deg, rgba(102,126,234,0.4), rgba(192,132,252,0.4));
    border-radius: 1px;
    overflow: hidden;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -30px;
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.6), transparent);
    border-radius: 2px;
    animation: connectorGlow 2s ease-in-out infinite;
}
@keyframes connectorGlow {
    0% { left: -30px; }
    100% { left: 100%; }
}

/* ---------- STATS ---------- */
.section-stats {
    background: var(--bg-deep);
    padding: 80px 0;
    position: relative;
}
.section-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    background: var(--gradient-text);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- AGE GROUPS ---------- */
.section-ages {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}
.ages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.age-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.age-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--transition-smooth);
}
.age-card:hover::after { transform: scaleX(1); }
.age-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.age-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}
.age-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}
.age-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.age-chars {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.age-chars img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
    transition: transform 0.3s var(--transition-bounce);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.age-chars img:hover { transform: scale(1.3) translateY(-6px); }

/* ---------- LANGUAGES ---------- */
.lang-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.lang-pill {
    padding: 14px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.4s var(--transition-bounce);
    cursor: default;
}
@media (max-width: 768px) {
    .lang-grid {
        flex-wrap: wrap;
        gap: 10px;
        max-width: 360px;
    }
    .lang-pill {
        padding: 10px 20px;
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .lang-grid {
        gap: 8px;
        max-width: 300px;
    }
    .lang-pill {
        padding: 8px 16px;
        font-size: 14px;
    }
}
.lang-pill-btn {
    cursor: pointer;
    user-select: none;
}
.lang-pill-btn.active {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.25), rgba(65, 105, 225, 0.25));
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2), 0 0 40px rgba(65, 105, 225, 0.1);
    transform: translateY(-4px) scale(1.05);
}
.lang-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- LANGUAGE DEMO PLAYER ---------- */
.lang-demo {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.lang-demo-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}
.lang-demo-card:hover {
    border-color: rgba(255, 105, 180, 0.3);
}
.lang-demo-left {
    flex-shrink: 0;
}
.lang-demo-char {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: demoBounce 3s ease-in-out infinite;
}
@keyframes demoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.lang-demo-right {
    flex: 1;
    min-width: 0;
}
.lang-demo-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.lang-demo-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 44px;
    transition: opacity 0.3s ease;
}
.lang-demo-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-demo-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF69B4, #4169E1);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.3);
}
.lang-demo-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 105, 180, 0.4);
}
.lang-demo-play:active {
    transform: scale(0.95);
}
.lang-demo-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    height: 32px;
    overflow: hidden;
}
.lang-demo-wave span {
    display: block;
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: height 0.15s ease, background 0.15s ease;
}
.lang-demo-wave.playing span {
    background: linear-gradient(180deg, #FF69B4, #4169E1);
    animation: waveBar 0.6s ease-in-out infinite alternate;
}
.lang-demo-wave.playing span:nth-child(1) { animation-delay: 0s; }
.lang-demo-wave.playing span:nth-child(2) { animation-delay: 0.05s; }
.lang-demo-wave.playing span:nth-child(3) { animation-delay: 0.1s; }
.lang-demo-wave.playing span:nth-child(4) { animation-delay: 0.15s; }
.lang-demo-wave.playing span:nth-child(5) { animation-delay: 0.2s; }
.lang-demo-wave.playing span:nth-child(6) { animation-delay: 0.25s; }
.lang-demo-wave.playing span:nth-child(7) { animation-delay: 0.3s; }
.lang-demo-wave.playing span:nth-child(8) { animation-delay: 0.35s; }
.lang-demo-wave.playing span:nth-child(9) { animation-delay: 0.4s; }
.lang-demo-wave.playing span:nth-child(10) { animation-delay: 0.45s; }
.lang-demo-wave.playing span:nth-child(11) { animation-delay: 0.5s; }
.lang-demo-wave.playing span:nth-child(12) { animation-delay: 0.55s; }
.lang-demo-wave.playing span:nth-child(13) { animation-delay: 0.6s; }
.lang-demo-wave.playing span:nth-child(14) { animation-delay: 0.65s; }
.lang-demo-wave.playing span:nth-child(15) { animation-delay: 0.7s; }
@keyframes waveBar {
    0% { height: 6px; }
    100% { height: 28px; }
}
.lang-demo-time {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}
@media (max-width: 480px) {
    .lang-demo-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    .lang-demo-char { width: 56px; height: 56px; }
    .lang-demo-controls { justify-content: center; }
    .lang-demo-text { min-height: auto; }
}

/* ---------- LANGUAGE CTA ---------- */
.lang-cta {
    margin-top: 48px;
    text-align: center;
}
.lang-cta-headline {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.lang-cta-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ---------- FOR FAMILIES ---------- */
.section-families {
    background: linear-gradient(180deg, var(--bg-mid) 0%, #0f1628 100%);
}
.family-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.family-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}
.family-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.family-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #60A5FA;
    transition: all 0.4s var(--transition-bounce);
}
.family-card:hover .family-icon {
    transform: scale(1.15);
    color: #93C5FD;
}
.family-icon svg { width: 100%; height: 100%; }
.family-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.family-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- DOWNLOAD CTA ---------- */
.section-download {
    background: var(--bg-deep);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}
.download-content { position: relative; z-index: 2; }
.download-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.download-desc {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.qr-download {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.qr-code {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 24px rgba(255, 105, 180, 0.15), 0 0 60px rgba(65, 105, 225, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.qr-code:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.25), 0 0 80px rgba(65, 105, 225, 0.15);
}
.qr-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .qr-download { display: none; }
}
.download-parade {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 80px;
    flex-wrap: wrap;
}
.parade-char {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    opacity: 0;
    transform: translateY(40px);
    animation: paradeIn 0.6s var(--transition-bounce) forwards;
    transition: transform 0.3s var(--transition-bounce);
}
.parade-char:hover { transform: translateY(-12px) scale(1.2) rotate(-5deg); }

@keyframes paradeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- FOOTER ---------- */
#footer {
    background: #050510;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Safety: if GSAP is slow, show content after 4s */
@keyframes forceReveal {
    to { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
    animation: forceReveal 0s 4s forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .family-grid { grid-template-columns: repeat(2, 1fr); }
    .ages-grid { grid-template-columns: repeat(3, 1fr); }
    .story-features { grid-template-columns: repeat(3, 1fr); }
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .coloring-gallery { grid-template-columns: repeat(3, 1fr); }
    .music-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TABLET (iPad) ===== */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }
    .container { padding: 0 20px; }

    /* Nav → hamburger */
    .hamburger { display: flex; z-index: 1002; position: relative; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 32px;
        transition: right 0.4s var(--transition-smooth);
        z-index: 1001;
    }
    .nav-links.open { right: 0; }
    .nav-link { font-size: 22px; }
    .nav-cta-link { text-align: center; }

    /* Hero */
    .hero-char { display: none; }
    #hero { min-height: auto; padding: 120px 20px 40px; }
    .hero-title { font-size: 38px; }
    .hero-desc { font-size: 16px; }
    .hero-logo-wrap img { width: 90px; height: 90px; }
    .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
    #hero { flex-direction: column; }
    .scroll-cue {
        position: static;
        transform: none;
        margin-top: 24px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Grids → fewer columns */
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .characters-carousel { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .story-features { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .coloring-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .music-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .reward-hero-card { flex-direction: column; padding: 28px; }
    .reward-hero-right { flex: none; width: 100%; height: 160px; }
    .reward-stat-row { flex-wrap: wrap; gap: 16px; }
    .reward-pillars { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .steps-row { flex-direction: column; gap: 0; }
    .step { flex: none; width: 100%; }
    .step-connector { width: 2px; height: 40px; margin: 0 auto; }
    .step-connector::after { width: 4px; height: 20px; top: -20px; left: -1px; animation-name: connectorGlowV; }
    @keyframes connectorGlowV { 0% { top: -20px; } 100% { top: 100%; } }
    .ages-grid { grid-template-columns: 1fr; gap: 20px; }
    .family-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    /* Story gallery */
    .story-card { flex: 0 0 260px; }
    .stories-scroll-wrap { padding: 20px 0 60px; }

    /* iPhone mockups → horizontal scroll */
    .phones-showcase {
        gap: 16px; flex-wrap: nowrap; overflow-x: auto;
        padding: 0 20px 20px; justify-content: flex-start;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .phones-showcase::-webkit-scrollbar { display: none; }
    .phone-frame { width: 200px; height: 410px; border-radius: 30px; }
    .phone-left, .phone-right, .phone-center { transform: none; }
    .phone-notch { width: 80px; height: 20px; }
    .phone-wrap:hover { transform: none; }

    /* Comet cursor → off */
    .cursor-dot, .cursor-ring { display: none; }
    #cometTrail { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }

    /* Download */
    .parade-char { width: 52px; height: 52px; }
    .download-parade { gap: 10px; }
    .download-title { font-size: 36px; }
    .download-desc { font-size: 16px; }

    /* Marquee */
    .marquee-track span { font-size: 14px; letter-spacing: 2px; }

    /* Ambient orbs smaller */
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 350px; height: 350px; }
    .orb-4 { width: 200px; height: 200px; }
}

/* ===== PHONE (iPhone SE, small phones) ===== */
@media (max-width: 480px) {
    .section { padding: 48px 0; }
    .container { padding: 0 16px; }

    #hero { padding: 100px 16px 32px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 14px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }
    .hero-logo-wrap img { width: 72px; height: 72px; }

    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 14px; }
    .section-label { font-size: 11px; letter-spacing: 2px; }

    .features-grid { grid-template-columns: 1fr; }
    .characters-carousel { grid-template-columns: 1fr; }
    .story-features { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .coloring-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .family-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .btn { padding: 14px 24px; font-size: 14px; }
    .btn-lg { padding: 16px 28px; font-size: 15px; }
    .download-title { font-size: 28px; }

    .feature-card { padding: 28px 20px; }
    .feature-number { font-size: 36px; }
    .feature-card h3 { font-size: 18px; }

    .char-info h3 { font-size: 20px; }
    .char-desc { font-size: 13px; }

    .story-card { flex: 0 0 240px; }
    .story-feat { padding: 20px 16px; }
    .story-feat h4 { font-size: 15px; }

    .stat-number { font-size: 42px; }
    .stat-label { font-size: 13px; }

    .age-card { padding: 32px 24px; }
    .age-badge { font-size: 28px; }

    .phone-frame { width: 170px; height: 350px; border-radius: 26px; }
    .screen-title { font-size: 13px; }
    .screen-avatars { gap: 6px; padding: 0 4px; }

    .music-grid { max-width: 100%; }

    .parade-char { width: 44px; height: 44px; }
    .download-parade { gap: 8px; }

    .footer-links { gap: 16px; font-size: 13px; }
    .back-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; }
    .rocket { font-size: 18px; }
}

/* ---------- SCROLL PROGRESS BAR ---------- */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #FF69B4, #FFD700, #34D399, #60A5FA, #C084FC, #FF6B6B);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 10001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* ---------- BACK TO TOP ROCKET ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}
.back-to-top:active .rocket {
    animation: rocketLaunch 0.5s ease-out;
}
.rocket { font-size: 22px; transition: transform 0.3s ease; }
.back-to-top:hover .rocket { transform: translateY(-3px); }
@keyframes rocketLaunch {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.3); }
    100% { transform: translateY(0) scale(1); }
}

/* ---------- CONFETTI CANVAS ---------- */
#confettiCanvas {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
}

/* ---------- ANIMATED HERO GRADIENT ---------- */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.08) 25%,
        rgba(240, 147, 251, 0.05) 50%,
        rgba(52, 211, 153, 0.05) 75%,
        rgba(102, 126, 234, 0.08) 100%
    );
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* ---------- FLOATING AMBIENT ORBS (like Apple/Stripe) ---------- */
.ambient-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: orbFloat linear infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #667eea, transparent 70%);
    top: 10%; left: -5%;
    animation-duration: 25s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #f093fb, transparent 70%);
    top: 40%; right: -10%;
    animation-duration: 30s;
    animation-delay: -10s;
}
.orb-3 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #4facfe, transparent 70%);
    bottom: 20%; left: 30%;
    animation-duration: 35s;
    animation-delay: -5s;
}
.orb-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #FFD700, transparent 70%);
    top: 60%; left: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -80px) scale(1.1); }
    50% { transform: translate(-40px, 40px) scale(0.9); }
    75% { transform: translate(80px, 60px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ---------- SCROLLING MARQUEE STRIP ---------- */
.marquee-strip {
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.marquee-track span::after {
    content: '✦';
    margin-left: 40px;
    color: rgba(255, 215, 0, 0.2);
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- GRADIENT BORDER GLOW ON CARDS ---------- */
.feature-card::after,
.age-card::after,
.family-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102,126,234,0) 0%, rgba(102,126,234,0.3) 50%, rgba(192,132,252,0) 100%);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderGlow 4s ease infinite;
}
.feature-card:hover::after,
.age-card:hover::after,
.family-card:hover::after {
    opacity: 1;
}
@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.feature-card, .age-card, .family-card { position: relative; }

/* ---------- ENHANCED CHAR CARD SPARKLE ---------- */
.char-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.char-card:hover::before { opacity: 1; }

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    color: #FFD700;
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Lenis smooth scroll overrides */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

@keyframes cardBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.08) translateY(-6px); }
    60% { transform: scale(0.98) translateY(2px); }
    80% { transform: scale(1.02) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

/* ---------- ACTIVE NAV INDICATOR ---------- */
.nav-link.active {
    color: #fff;
}
.nav-link.active::after {
    width: 100%;
    background: var(--gradient-gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ---------- PARALLAX HERO ON SCROLL ---------- */
#hero .hero-content {
    will-change: transform, opacity;
}

/* ---------- SPECIAL EFFECTS ---------- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Magnetic button extra glow */
.magnetic:hover {
    filter: brightness(1.1);
}

/* Glass morphism */
.glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
