/* ── Variables ── */
:root {
    --amber:      #F59E0B;
    --amber-dark: #D97706;
    --green:      #22C55E;
    --green-dark: #15803D;
    --coral:      #F87171;
    --dark:       #1A1A2E;
    --cream:      #FFFBF0;
    --white:      #FFFFFF;
    --text:       #2D2D2D;
    --text-muted: #6B7280;
}

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

html { scroll-behavior: smooth; }

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

img, video { display: block; max-width: 100%; }

/* ── Shared ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.75rem;
}
.section-title.light { color: var(--white); }

.section-sub {
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.play-badge {
    height: 68px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25));
    transition: transform 0.2s;
}
.play-badge:hover { transform: scale(1.06); }

/* ── Navbar ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    padding: 0.25rem 0;
}
nav.scrolled {
    background: rgba(255, 251, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--amber);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
nav.scrolled .nav-logo { color: var(--amber-dark); }

.btn-nav {
    background: var(--amber);
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(245,158,11,0.4);
}
.btn-nav:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245,158,11,0.45);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(245,158,11,0.78) 0%,
        rgba(248,113,113,0.65) 45%,
        rgba(34,197,94,0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 1.5rem 3rem;
    max-width: 680px;
}

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.55);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3.8rem, 11vw, 7.5rem);
    color: var(--white);
    text-shadow: 0 4px 24px rgba(0,0,0,0.2);
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.8);
    animation: bounce 1.8s ease-in-out infinite;
    text-decoration: none;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Features ── */
.features {
    background: var(--white);
    padding: 5.5rem 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--cream);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.13);
}

.card-img-wrap {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #e2f5ea;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s;
}
.feature-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-body {
    padding: 1.1rem 1.1rem 1.4rem;
    flex: 1;
}
.card-body h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.45rem;
}
.card-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Levels ── */
.levels-section {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 60%, #15803D 100%);
    padding: 5.5rem 1.5rem;
}

.levels-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.levels-img {
    width: 240px;
    flex-shrink: 0;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}

.levels-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
}

.levels-text h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.levels-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

.levels-sub {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: var(--white) !important;
    margin-bottom: 2rem !important;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--green-dark);
    text-decoration: none;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* ── Videos ── */
.videos-section {
    background: var(--dark);
    padding: 5.5rem 1.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.game-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.45);
    background: #0d0d1a;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--amber) 0%, #F97316 50%, var(--coral) 100%);
    padding: 6.5rem 1.5rem;
    text-align: center;
}

.cta-inner h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    color: var(--white);
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.cta-inner p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
}

/* ── Contact ── */
.contact-section {
    background: var(--cream);
    padding: 5rem 1.5rem;
    text-align: center;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--amber-dark);
    text-decoration: none;
    border-bottom: 2.5px solid var(--amber);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover {
    color: var(--green-dark);
    border-color: var(--green-dark);
}

/* ── Footer ── */
footer {
    background: var(--dark);
    padding: 2rem 1.5rem;
    border-top: 2px solid rgba(245,158,11,0.25);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--amber);
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); border-color: var(--amber); }

.footer-copy {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .levels-inner {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .levels-img { width: 200px; }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .card-body h3 { font-size: 0.95rem; }
    .card-body p  { font-size: 0.78rem; }

    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-bg video { display: none; }
    .hero-overlay  { background: linear-gradient(150deg, #F59E0B 0%, #F87171 50%, #22C55E 100%); }
    .scroll-hint   { animation: none; }
}
