@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

/* 1. Variables */
:root {
    --bg-primary: #040406;
    --bg-secondary: #0c0f14;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --grad-pink: linear-gradient(135deg, #ff4d8d, #ff85a2);
    --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
    --grad-green: linear-gradient(135deg, #34d399, #22c55e);
    --grad-blend: linear-gradient(135deg, #ff4d8d, #fbbf24, #34d399);
    
    --glow-pink: rgba(255, 77, 141, 0.45);
    --glow-gold: rgba(251, 191, 36, 0.45);
    --glow-green: rgba(52, 211, 153, 0.45);
    
    --text-primary: #f9fafb;
    --text-secondary: #cbd5f5;
    --text-muted: #7c8aa0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-width: 80px;
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
}

/* 2. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Layout & Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-spacing {
    padding: var(--space-desktop) 0;
}

.text-center { text-align: center; }
.text-pink { color: #ff4d8d; }
.text-gold { color: #fbbf24; }
.text-green { color: #34d399; }

.text-gradient-blend {
    background: var(--grad-blend);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-pink);
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-pink);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-pink);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
    transform: translateY(1px);
}

/* 4. Header / Floating Nav */
.side-nav {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #ff4d8d;
    background: rgba(255, 77, 141, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow-pink);
}

.nav-item.active {
    color: #fff;
    background: var(--grad-pink);
    box-shadow: 0 0 20px var(--glow-pink);
}

.top-right-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.glow-pulse {
    animation: pulseGlow 2s infinite;
}

/* 5. Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: var(--nav-width);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/photo-1507608616759-54f48f0af0ee.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(4,4,6,0.2) 0%, rgba(4,4,6,1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
}

/* Floating Petals */
.petal {
    position: absolute;
    background: linear-gradient(135deg, #ff4d8d, #ff85a2);
    border-radius: 15px 0 15px 0;
    opacity: 0.4;
    filter: blur(1px);
    pointer-events: none;
    z-index: -1;
    animation: petal-fall linear infinite;
}

.petal:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 0s; }
.petal:nth-child(2) { left: 30%; width: 15px; height: 15px; animation-duration: 12s; animation-delay: 2s; }
.petal:nth-child(3) { left: 50%; width: 25px; height: 25px; animation-duration: 10s; animation-delay: 4s; }
.petal:nth-child(4) { left: 70%; width: 18px; height: 18px; animation-duration: 9s; animation-delay: 1s; }
.petal:nth-child(5) { left: 90%; width: 22px; height: 22px; animation-duration: 11s; animation-delay: 3s; }

/* 6. Game Section */
.game-section {
    position: relative;
    padding-left: var(--nav-width);
}

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

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.game-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.game-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 2px;
    background: var(--glass-bg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, #ff4d8d 25%, #fbbf24 50%, #34d399 75%, transparent 100%);
    animation: spin 4s linear infinite;
    z-index: 0;
}

.game-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.game-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 7. Features Section (Asymmetric) */
.features-section {
    padding-left: var(--nav-width);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.feature-card {
    grid-column: span 4;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card.large {
    grid-column: span 8;
    background: linear-gradient(135deg, rgba(255,77,141,0.1), rgba(4,4,6,0));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255,77,141,0.15);
    border-color: rgba(255,255,255,0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--grad-blend);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px var(--glow-pink);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Interior Pages */
.page-header {
    padding: calc(var(--space-desktop) * 1.5) 0 var(--space-desktop) 0;
    text-align: center;
    background: radial-gradient(circle at center top, rgba(255,77,141,0.15) 0%, var(--bg-primary) 60%);
    padding-left: var(--nav-width);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--nav-width);
    padding-bottom: var(--space-desktop);
}

.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-block ul {
    list-style: disc inside;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 8. Footer */
.footer {
    padding-left: var(--nav-width);
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--grad-blend);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ff4d8d;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 1rem auto 0;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* 9. Animations */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 77, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0); }
}

@keyframes petal-fall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(110vh) translateX(50px) rotate(360deg); opacity: 0; }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* 10. Responsive */
@media (max-width: 992px) {
    .feature-card, .feature-card.large { grid-column: span 6; }
    
    .hero-content h1 { font-size: 3rem; }
    
    :root {
        --nav-width: 0px;
    }
    
    .side-nav {
        top: auto;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 0.75rem 1.5rem;
        width: 90%;
        justify-content: space-around;
        gap: 0;
    }
    
    .top-right-nav {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hero, .game-section, .features-section, .page-header, .page-content, .footer {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .feature-card, .feature-card.large { grid-column: span 12; }
    
    .section-spacing {
        padding: var(--space-mobile) 0;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    
    .footer { padding-bottom: 6rem; /* space for bottom nav */ }
}