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

:root {
    /* Base Colors */
    --bg-primary: #07070a;
    --bg-secondary: #11131a;
    --bg-card: rgba(76, 201, 240, 0.06);
    
    /* Accent System */
    --accent-primary: #4cc9f0;
    --accent-secondary: #9d4edd;
    --accent-gradient: linear-gradient(135deg, #4cc9f0, #9d4edd);
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    /* Structure */
    --max-width: 1400px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 22px;
    
    /* Spacing */
    --space-y: 100px;
}

@media (max-width: 992px) {
    :root {
        --space-y: 70px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-y: 50px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4);
}

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

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(76, 201, 240, 0.15);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 992px) {
    .main-nav, .header-right .btn {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(17, 19, 26, 0.95);
        backdrop-filter: blur(16px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(76, 201, 240, 0.15);
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.legal-badge strong {
    color: var(--text-primary);
    margin-right: 6px;
}

/* Game Section - Core Experience */
.game-section {
    position: relative;
    background: radial-gradient(circle at center, rgba(76, 201, 240, 0.05) 0%, transparent 70%);
}

.game-container {
    max-width: 1300px; /* Specific requirement */
    margin: 0 auto;
    width: 90%;
}

.game-wrapper {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(76, 201, 240, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: glow-pulse 4s infinite alternate;
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 60px rgba(76, 201, 240, 0.15);
    border-color: rgba(76, 201, 240, 0.4);
}

.game-frame {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-primary);
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 20px rgba(76, 201, 240, 0.05); }
    100% { box-shadow: 0 0 40px rgba(157, 78, 221, 0.15); }
}

@media (max-width: 992px) {
    .game-container { width: 95%; }
    .game-frame { height: 600px; }
}

@media (max-width: 768px) {
    .game-container { width: 100%; }
    .game-wrapper { padding: 12px; border-radius: var(--border-radius-md); }
    .game-frame { height: 500px; }
}

/* Cards & Features */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 201, 240, 0.3);
    background: rgba(76, 201, 240, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Statistics Section */
.stats-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.1);
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(157, 78, 221, 0.1));
    border-radius: var(--border-radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    border: 1px solid rgba(76, 201, 240, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Internal Pages Typography & Content */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(76, 201, 240, 0.05), var(--bg-primary));
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin: 2.5rem 0 1rem;
    color: var(--accent-primary);
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(76, 201, 240, 0.05);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-legal-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.footer-legal-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Utility for responsive images spacing */
.img-placeholder {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
}