@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #E60026;
    --primary-grad: linear-gradient(135deg, #E60026 0%, #B8001B 100%);
    --dark: #0F0F11;
    --dark-muted: #1A1A1E;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    display: block;
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--dark);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.2rem 0;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 8%;
    background: var(--primary-grad);
    color: var(--white);
    min-height: 75vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.06;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.hero-image img {
    max-width: 85%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: floatAnimation 6s ease-in-out infinite;
}

.games-section {
    padding: 7rem 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-icon-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.game-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info h3 {
    margin-bottom: 0;
    font-size: 2rem;
}

.game-genre {
    display: inline-block;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.game-card p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    min-height: 50px;
}

.store-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.btn-store-image {
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-store-image img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.btn-store-image:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.legal-container {
    max-width: 900px;
    margin: 4rem auto 6rem;
    padding: 0 2rem;
}

.legal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.legal-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.legal-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.legal-card p {
    color: var(--gray);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legal-card ul {
    margin: 1.5rem 0 1.5rem 1.2rem;
}

.legal-card ul li {
    margin-bottom: 0.8rem;
    color: var(--gray);
    font-size: 1.05rem;
    padding-left: 0.5rem;
}

.legal-card ul li::marker {
    color: var(--primary);
}

footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 8% 2rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    display: inline-block;
}

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

.footer-social a img {
    height: 24px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

footer p {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 2rem;
    font-size: 0.85rem;
}

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

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 5% 3rem;
        gap: 3rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-image {
        justify-content: center;
    }
    .hero-image img {
        max-width: 70%;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 1rem 5%; 
    }
    
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        order: 3;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        text-align: center;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1.5rem 0;
    }

    .legal-card { 
        padding: 2rem 1.5rem; 
    }
    
    .legal-card h1 {
        font-size: 2rem;
    }

    .game-card {
        text-align: center;
    }

    .game-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .store-group {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .footer-social, .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}