/* 1. VARIABLES */
:root {
    /* Colors */
    --bg-primary: #0a0a0d;
    --bg-secondary: #141417;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --accent-sky: #38bdf8;
    --accent-deep: #2563eb;
    --accent-cyan: #67e8f9;
    --accent-purple: #bf7af0;
    --accent-light: #dbeafe;
    
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    
    /* Layout */
    --container-max: 1400px;
    --game-max: 1200px;
    
    /* Spacing */
    --space-desktop: 100px;
    --space-tablet: 70px;
    --space-mobile: 50px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-sky);
}

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* 3. BASE */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

.text-accent {
    color: var(--accent-sky);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.max-w-content { max-width: 800px; margin: 0 auto; }
.mt-spacing { margin-top: 3rem; }
.mt-small { margin-top: 1rem; }
.p-large { padding: 3rem; }

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

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

/* Background Particle Container */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.2; }
    100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* 5. COMPONENTS */

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(103, 232, 249, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    animation: gentleFloat 3s ease-in-out infinite;
}

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

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-cyan);
}

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

.mobile-toggle {
    display: none;
    background: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-purple));
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(191, 122, 240, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid rgba(103, 232, 249, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(103, 232, 249, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 232, 249, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(103, 232, 249, 0.1);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

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

.legal-disclaimer-small {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Game Section */
.game-section {
    position: relative;
    z-index: 10;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid rgba(103, 232, 249, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Iframe Game */
.iframe-game-wrapper {
    max-width: var(--game-max);
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
}

.iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1rem;
}

.status-dot {
    width: 10px; height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* Features Section */
.bg-secondary {
    background-color: var(--bg-secondary);
}

.feature-card {
    padding: 2.5rem 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Page Headers */
.page-main {
    padding-top: 100px;
    min-height: calc(100vh - 300px);
}

.page-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.1), transparent);
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Lists and Text */
.styled-list {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.styled-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.styled-list li::before {
    content: '🪁';
    position: absolute;
    left: -1.5rem;
    font-size: 0.9em;
}

.text-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-light);
}

.text-content p {
    margin-bottom: 1rem;
}

.box-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 8px;
    color: #fca5a5;
}

/* Forms */
.contact-form-container {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(103, 232, 249, 0.2);
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #050508;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(103, 232, 249, 0.1);
}

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

.footer-desc {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

.footer-bottom .box-warning {
    margin-bottom: 1rem;
    display: inline-block;
}

/* 6. RESPONSIVE UTILITIES */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-desc {
        margin: 1rem auto;
    }
    
    section { padding: var(--space-tablet) 0; }
    
    .game-iframe { height: 500px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
    }
    
    .nav.active { left: 0; }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    section { padding: var(--space-mobile) 0; }
    
    .p-large { padding: 1.5rem; }
}