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

:root {
    --primary: #FFCA08;
    --primary-glow: rgba(255, 202, 8, 0.4);
    --secondary: #00A8C6;
    --secondary-glow: rgba(0, 168, 198, 0.3);
    --accent: #E62415;
    --dark: #121212;
    --dark-surface: #1E1E1E;
    --light: #F8FAFC;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 900;
    line-height: 1.1;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    font-family: 'Lexend Deca';
}

.logo img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--secondary);
    opacity: 1;
}

.btn-launch {
    background: var(--secondary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--secondary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-launch:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--secondary-glow);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    padding: 160px 8% 100px;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 168, 198, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(255, 202, 8, 0.05) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    color: var(--dark);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.7;
}

/* --- Modal & Notifications --- */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-content i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 24px;
    display: block;
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.modal-content p {
    color: #4B5563;
    margin-bottom: 32px;
}

.btn-close {
    background: var(--dark);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    transform: scale(1.05);
}

.btn-primary {
    display: inline-block;
    background: var(--dark);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.store-badges {
    display: flex;
    gap: 20px;
    margin-top: 48px;
}

.badge-link img {
    height: 48px;
    transition: transform 0.3s;
}

.badge-link:hover img {
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: floating 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.1));
}

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

/* --- Shared Layouts --- */
.l-section {
    padding: 120px 8%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748B;
}

/* --- Modules Grid --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.module-card {
    background: white;
    padding: 48px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.module-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1);
    border-color: var(--secondary-glow);
}

.module-card i {
    width: 72px;
    height: 72px;
    background: #F1F5F9;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 32px;
    transition: all 0.3s;
}

.module-card:hover i {
    background: var(--secondary);
    color: white;
    transform: rotate(5deg);
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.module-card p {
    color: #64748B;
    font-size: 1rem;
}

/* --- Stats Section --- */
.stats {
    background: var(--dark);
    color: white;
    padding: 100px 8%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 60px;
    border-radius: 60px;
    margin: 0 20px;
}

.stat-item h4 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 600;
}

/* --- Games --- */
.games {
    background: #F1F5F9;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.game-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

/* --- Community --- */
.community {
    background: white;
}

.comm-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.comm-link {
    text-decoration: none;
    color: var(--dark);
    text-align: center;
    transition: transform 0.3s;
}

.comm-link:hover {
    transform: translateY(-10px);
}

.comm-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.comm-link.telegram .comm-icon { color: #229ED9; }
.comm-link.whatsapp .comm-icon { color: #25D366; }
.comm-link.linkedin .comm-icon { color: #0077B5; }

/* --- Footer --- */
footer {
    padding: 100px 8% 60px;
    background: white;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    font-family: 'Lexend Deca';
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-contact {
    margin-bottom: 40px;
}

.social-links {
    margin-bottom: 60px;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .nav-links { gap: 20px; }
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-content { margin: 0 auto; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-btns, .store-badges { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
    .stats { flex-direction: column; gap: 40px; border-radius: 0; margin: 0; }
}
