/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Gradient Background Colors */
    --bg-top: #cfbdf3;
    --bg-mid: #c5d8dd;
    --bg-bottom: #b4d9d2;
    
    /* Card Colors (matching Momo Match app) */
    --card-green: #d0e2c4;
    --card-blue: #b0d6f5;
    --card-pink: #e3c9c6;
    --card-mint: #b9e2df;
    
    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    
    /* Accent Colors */
    --accent-primary: #7c3aed;
    --accent-secondary: #10b981;
    
    /* Neutral Colors */
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: 'Nunito', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background: linear-gradient(
        180deg,
        var(--bg-top) 0%,
        var(--bg-mid) 50%,
        var(--bg-bottom) 100%
    );
    min-height: 100vh;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-blue), var(--card-mint));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: var(--spacing-2xl) var(--spacing-md);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Phone / App preview */
.phone-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image {
    width: 320px;
    max-width: 100%;
    border-radius: 28px;
    box-shadow: 0 16px 50px rgba(50,40,80,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
    display: block;
}

@media (min-width: 768px) {
    .phone-image { width: 380px; }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

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

.phone-card {
    background: linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
    padding: var(--spacing-lg);
    border-radius: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 300px;
    width: 100%;
}

.phone-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.phone-tiles {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.tile {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    box-shadow: 0 4px 10px var(--shadow);
}

.tile-green {
    background: var(--card-green);
}

.tile-blue {
    background: var(--card-blue);
}

.tile-pink {
    background: var(--card-pink);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

/* ==========================================
   GAMES SECTION
   ========================================== */
.games-section {
    padding: var(--spacing-xl) 0;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.game-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 30px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.card-momo-match {
    background: linear-gradient(135deg, var(--card-green), var(--card-blue));
}

.card-coming-soon {
    background: linear-gradient(135deg, var(--card-pink), var(--card-mint));
}

.game-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.game-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.game-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.game-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-free {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-secondary);
}

.badge-premium {
    background: var(--accent-primary);
    color: var(--white);
}

.game-upcoming {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.game-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================
   FOR PARENTS SECTION
   ========================================== */
.parents-section {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.benefit-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 25px;
    box-shadow: 0 6px 20px var(--shadow);
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.benefit-card ul {
    list-style: none;
    text-align: left;
}

.benefit-card li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.benefit-card li::before {
    content: "✓ ";
    color: var(--accent-secondary);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-section {
    padding: var(--spacing-xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.pricing-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 25px;
    box-shadow: 0 6px 20px var(--shadow);
    position: relative;
    text-align: center;
}

.pricing-card-premium {
    border: 3px solid var(--accent-primary);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.pricing-card li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

/* ==========================================
   COMING SOON SECTION
   ========================================== */
.coming-soon-section {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.2);
}

.coming-soon-chips {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(255, 255, 255, 0.4);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.separator {
    color: var(--text-light);
}

/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */
@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE DESIGN - DESKTOP
   ========================================== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .nav-links {
        gap: var(--spacing-lg);
    }
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */
@media (max-width: 767px) {
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   GAMES SECTION - custom styles for the new markup
   ========================================== */
#games {
    padding: 5rem 1.5rem; /* py-20 px-6 */
    background: linear-gradient(180deg, #D8CFF7 0%, #C7E0F4 100%);
}

@media (min-width: 768px) {
    #games { padding-left: 5rem; padding-right: 5rem; /* md:px-20 */ }
}

/* Games heading (centered, large) */
#games > h2 {
    text-align: center;
    font-size: 3rem; /* text-4xl */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3.5rem; /* mb-14 */
    line-height: 1.05;
}

@media (min-width: 768px) {
    #games > h2 { font-size: 4.25rem; /* md:text-5xl */ }
}

#games .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem; /* gap-10 */
    max-width: var(--max-content-width);
    margin: 0 auto;
}

@media (min-width: 768px) {
    #games .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Card appearance (rounded-3xl, p-10, bg-white/30, backdrop-blur, shadow-xl) */
#games .rounded-3xl {
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 2.5rem; /* p-10 */
    background-color: rgba(255,255,255,0.30);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 45px rgba(16,24,40,0.06); /* shadow-xl */
}

#games h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

#games p { color: var(--text-secondary); }

#games .space-y-1 > li { margin-bottom: 0.25rem; }

/* small helper classes used in the markup */
#games .flex { display: flex; }
#games .gap-4 { gap: 1rem; }
#games .rounded-full { border-radius: 9999px; }
#games .shadow-md { box-shadow: 0 8px 20px rgba(16,24,40,0.06); }

/* Buttons inside the games cards */
#games a {
    text-decoration: none;
}

#games a:hover { opacity: 0.98; }

/* Buttons: slightly smaller pill styles for games section */
#games .buttons-row { 
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#games .ads-btn {
    background: #ffffff;
    color: var(--accent-secondary);
    padding: 0.5rem 1.5rem; /* reduced pill */
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(16,24,40,0.06);
    display: inline-block;
    transition: transform 160ms ease, box-shadow 160ms ease, background 120ms ease;
}

#games .ads-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16,24,40,0.08);
}

#games .premium-btn {
    background: var(--accent-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(124,58,237,0.16);
    display: inline-block;
    transition: transform 160ms ease, box-shadow 160ms ease, background 120ms ease;
}

#games .premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(124,58,237,0.20);
}


