/* ============================================
   Fun Fun Play - Optimized Modern Design
   Earthy Brown & Yellow-Gray Theme
   ============================================ */

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

:root {
    --primary-brown: #8B6F47;
    --primary-brown-dark: #6B4423;
    --yellow-gray: #C4B896;
    --accent-gold: #D4AF37;
    --accent-amber: #E6B547;
    --accent-sand: #F4E5C3;
    --accent-terracotta: #C8825D;
    --black: #2D2416;
    --dark: #3D3226;
    --gray-800: #4D4436;
    --gray-600: #7A6F5D;
    --gray-400: #9D9380;
    --gray-200: #D4CFC3;
    --white: #FFFFFF;
    --cream: #FAF7F0;
    --gradient-hero: linear-gradient(135deg, #8B6F47 0%, #C4B896 100%);
    --gradient-brown: linear-gradient(135deg, #6B4423 0%, #8B6F47 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E6B547 100%);
    --shadow-sm: 0 2px 8px rgba(45, 36, 22, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 36, 22, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 36, 22, 0.16);
    --shadow-xl: 0 16px 48px rgba(45, 36, 22, 0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; }

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar { padding: 1.25rem 0; }

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.logo h1, .logo h3 {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-600);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary-brown);
    background: var(--accent-sand);
}

.nav-cta {
    background: var(--gradient-brown) !important;
    color: var(--white) !important;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-brown);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(107, 68, 35, 0.35);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(107, 68, 35, 0.45);
}

.btn-large { padding: 1.25rem 3rem; }

.btn-download { width: 100%; }

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

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

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 68, 35, 0.12) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(45, 36, 22, 0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.625rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.game-screen {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(30px);
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 3.5rem;
    box-shadow: 0 24px 64px rgba(45, 36, 22, 0.45);
    position: relative;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-screen::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-gold);
    border-radius: 28px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(24px);
}

.game-character {
    font-size: 8rem;
    animation: bounceCharacter 2.5s ease-in-out infinite;
    filter: drop-shadow(0 16px 32px rgba(45, 36, 22, 0.5));
    text-align: center;
    display: block;
}

@keyframes bounceCharacter {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-32px) scale(1.05); }
}

.game-obstacles {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    gap: 1.5rem;
}

.obstacle {
    font-size: 3.25rem;
    animation: floatObstacle 3.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(45, 36, 22, 0.35));
}

.obs-1 { animation-delay: 0s; }
.obs-2 { animation-delay: 0.6s; }
.obs-3 { animation-delay: 1.2s; }

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

/* SECTIONS */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    padding: 0.375rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--primary-brown-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ABOUT */
.about {
    padding: 7rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 2.75rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    color: var(--primary-brown-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--gray-200);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.highlight-card:hover::before {
    transform: scaleX(1);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.highlight-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.highlight-card h3 {
    font-size: 1.75rem;
    color: var(--primary-brown-dark);
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.highlight-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Fredoka', sans-serif;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* TIMELINE */
.how-it-works {
    padding: 7rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

.how-it-works .section-label {
    color: var(--accent-amber);
    background: rgba(230, 181, 71, 0.15);
}

.how-it-works .section-title {
    color: var(--cream);
    text-align: center;
    margin-bottom: 5rem;
}

.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 35px;
    bottom: 35px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-gold) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.timeline-marker {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    z-index: 1;
    border: 4px solid var(--dark);
}

.timeline-content {
    background: rgba(250, 247, 240, 0.08);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(212, 175, 55, 0.35);
    padding: 2.5rem;
    border-radius: 20px;
    flex: 1;
    transition: all 0.35s ease;
}

.timeline-content:hover {
    background: rgba(250, 247, 240, 0.14);
    border-color: var(--accent-gold);
    transform: translateX(12px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
}

.timeline-content h3 {
    color: var(--cream);
    font-size: 1.625rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--gray-200);
    margin: 0;
    line-height: 1.7;
}

/* DOWNLOAD CTA */
.download-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, #C8825D 0%, #F4E5C3 100%);
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    bottom: -250px;
    left: -250px;
}

.download-box {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(40px);
    border: 3px solid rgba(255, 255, 255, 0.6);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: 0 32px 72px rgba(45, 36, 22, 0.35);
    position: relative;
    z-index: 1;
}

.download-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.download-icon {
    font-size: 4.5rem;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(45, 36, 22, 0.3));
}

.download-header h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.download-header p {
    color: var(--gray-800);
    margin: 0.75rem 0 0;
    font-size: 1.125rem;
}

.download-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.download-info {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.download-info:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.info-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Fredoka', sans-serif;
}

.download-notes {
    margin-top: 2rem;
    text-align: center;
}

.download-notes p {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin: 0.625rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* CONTACT */
.contact {
    padding: 7rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-text h2 {
    font-size: 2.75rem;
    color: var(--primary-brown-dark);
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--cream);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(12px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.75rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-weight: 700;
    color: var(--primary-brown-dark);
    font-size: 1.25rem;
}

/* FOOTER */
footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 5rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-column h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.875rem;
}

.footer-column a {
    color: var(--gray-400);
    transition: all 0.25s ease;
}

.footer-column a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* LEGAL PAGES */
.legal-page {
    background: var(--white);
    padding: 140px 0 7rem;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 5rem;
    font-size: 1.125rem;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-gold);
}

.legal-section h3 {
    color: var(--black);
    margin: 2rem 0 1rem;
}

.legal-section p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.legal-section ul li {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.contact-box {
    background: var(--cream);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-gold);
    margin: 1.5rem 0;
}

.contact-box p {
    margin: 0.5rem 0;
}

.legal-footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.legal-footer .btn {
    margin: 0 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero .container,
    .about-content,
    .contact-content,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero .container {
        text-align: center;
        gap: 4rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }

    .navbar .container {
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .game-character { font-size: 5rem; }
    .obstacle { font-size: 2.25rem; }

    .timeline::before { left: 25px; }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .download-details { grid-template-columns: 1fr; }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about, .how-it-works, .download-cta, .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
    }

    .stat {
        flex: 1;
        min-width: 120px;
    }

    .download-header {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }
}
