/* ============================================
   HOME PAGE
   ============================================ */

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.moon {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, var(--cream), var(--gold));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 244, 214, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 20px;
    opacity: 0.7;
}

.building {
    flex: 1;
    background: linear-gradient(180deg, #2d1248, #1a0b2e);
    border-radius: 4px 4px 0 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(246, 185, 74, 0.1);
}

/* Lit-up windows pattern */
.building::before {
    content: '';
    position: absolute;
    inset: 12px 8px 0 8px;
    background-image:
        radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px);
    background-size: 12px 14px;
    opacity: 0.6;
}

.b1 { height: 55%; }
.b2 { height: 75%; }
.b3 { height: 90%; }
.b4 { height: 65%; }
.b5 { height: 85%; }
.b6 { height: 70%; }
.b7 { height: 60%; }

.lightning {
    position: absolute;
    top: 15%;
    left: 12%;
    width: 80px;
    height: 160px;
    filter: drop-shadow(0 0 15px var(--gold));
    animation: zap 4s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes zap {
    0%, 90%, 100% { opacity: 0.85; transform: scale(1); }
    93% { opacity: 1; transform: scale(1.1); }
    95% { opacity: 0.3; }
    97% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(4rem, 14vw, 9rem);
    margin: 0.5rem 0;
}

.hero-title .line-1 {
    display: block;
    color: white;
    text-shadow: 0 4px 0 var(--purple), 0 8px 30px rgba(255, 255, 255, 0.3);
    animation: slamIn 0.8s ease-out backwards;
}

.hero-title .line-2 {
    display: block;
    color: var(--gold);
    text-shadow: 0 4px 0 var(--purple), 0 0 40px var(--gold-glow);
    animation: slamIn 0.8s ease-out 0.2s backwards;
}

@keyframes slamIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tag {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 620px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.6;
}

.hero-tag strong { color: var(--gold); }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(246, 185, 74, 0.3);
}

.hero-cat {
    position: absolute;
    bottom: 8%;
    right: 5%;
    width: 220px;
    z-index: 2;
    animation: catBob 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

@keyframes catBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 1024px) {
    .hero-cat { display: none; }
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    z-index: 2;
}

.cue-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(1.3); opacity: 0.5; }
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(246, 185, 74, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    background: rgba(246, 185, 74, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: var(--ic);
    border-radius: 18px;
    color: white;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.feature:hover .feature-icon {
    transform: rotate(5deg) scale(1.08);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.feature p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* KIDS' CORNER */
.kids-corner {
    padding: 4rem 0;
}

.kids-card {
    position: relative;
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-light));
    border-radius: 32px;
    padding: 3.5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 60px rgba(255, 61, 138, 0.3);
}

.kids-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: var(--cream);
    font-size: 1.5rem;
    opacity: 0.5;
    animation: sparkle 3s ease-in-out infinite;
}

.s1 { top: 15%; left: 8%; animation-delay: 0s; font-size: 2rem; }
.s2 { top: 60%; left: 15%; animation-delay: 0.5s; }
.s3 { top: 25%; right: 30%; animation-delay: 1s; font-size: 1.8rem; }
.s4 { bottom: 20%; right: 45%; animation-delay: 1.5s; }
.s5 { top: 50%; right: 18%; animation-delay: 2s; font-size: 2.2rem; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

.kids-card-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.kids-card-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.95;
    margin: 0.5rem 0 1.5rem;
    color: var(--cream);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.kids-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.kids-text em {
    background: var(--gold);
    color: var(--bg-deep);
    padding: 2px 8px;
    font-style: normal;
    font-weight: 700;
    border-radius: 4px;
}

.kids-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.kids-card-cat {
    width: 220px;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: catBob 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    .kids-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    .kids-card-cat { width: 150px; margin: 0 auto; }
}

/* LEVELS PREVIEW */
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    text-shadow: 0 4px 0 var(--purple);
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.level-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(246, 185, 74, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.level-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.level-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--accent);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    letter-spacing: 1px;
}

.level-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.level-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(246, 185, 74, 0.15);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.level-card.boss .level-badge {
    background: rgba(226, 91, 91, 0.2);
    color: var(--red);
}

.level-by {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
}

.level-by strong {
    color: var(--gold);
    font-style: normal;
}

/* DOWNLOAD */
.download-card {
    background: linear-gradient(135deg, var(--purple), var(--bg-mid));
    border: 2px solid rgba(246, 185, 74, 0.3);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.download-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0.5rem 0 1rem;
    color: white;
    text-shadow: 0 4px 0 var(--bg-deep);
}

.download-text p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.download-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 240px;
    height: 480px;
    background: #000;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotate(5deg);
    transition: transform 0.4s;
}

.phone-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--pink));
    border-radius: 22px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-status {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-bottom: 1rem;
}

.phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.phone-presents {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 4px;
    font-family: var(--font-mono);
}

.phone-super {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: white;
    letter-spacing: 3px;
    line-height: 1;
}

.phone-cat {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--gold);
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 0 20px var(--gold-glow);
}

.phone-emoji {
    font-size: 3rem;
    margin: 1rem 0;
}

.phone-btn {
    background: var(--gold);
    color: var(--bg-deep);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 0.5rem;
}

@media (max-width: 860px) {
    .download-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
        text-align: center;
    }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 2rem; }
}
