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

:root {
    /* Colors */
    --bg-primary: #05070d;
    --bg-secondary: #0f172a;
    
    /* Gradients */
    --neon-orange: linear-gradient(135deg, #ff7a18, #ffb347);
    --electric-blue: linear-gradient(135deg, #00c6ff, #0072ff);
    --desert-gold: linear-gradient(135deg, #d4a373, #f4a261);
    --premium-blend: linear-gradient(135deg, #ff7a18, #00c6ff);
    
    /* Glows */
    --glow-orange: rgba(255, 122, 24, 0.45);
    --glow-blue: rgba(0, 198, 255, 0.45);
    --glow-gold: rgba(212, 163, 115, 0.35);
    
    /* Glass Surface */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --font-main: 'Outfit', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1280px;
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
}

* {
    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-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.text-gradient {
    background: var(--premium-blend);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Header & Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,7,13,0.9), transparent);
    pointer-events: none;
}

.logo-container, .cta-container {
    pointer-events: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--glow-orange));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--neon-orange);
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-orange);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

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

.btn-primary:hover::before {
    left: 100%;
}

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

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

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

/* Floating Side Nav */
.side-nav {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 122, 24, 0.3);
    border-radius: 24px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 122, 24, 0.1);
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
}

.nav-link:hover {
    background: rgba(255, 122, 24, 0.15);
    color: #ff7a18;
}

.nav-link:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--glow-orange));
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-link.active {
    background: var(--neon-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--glow-orange);
}

.nav-link.active svg {
    filter: none;
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/neon-cyber-desert-saloon-background.jpg') center/cover no-repeat;
    filter: blur(4px) brightness(0.4);
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-legal {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Game Section */
.section-padding {
    padding: var(--space-desktop) 0;
}

.game-section {
    position: relative;
    z-index: 5;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    padding: 4px;
    background: var(--premium-blend);
    box-shadow: 0 0 50px rgba(255, 122, 24, 0.15), 0 0 100px rgba(0, 198, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: borderPulse 4s infinite alternate;
}

.game-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(255, 122, 24, 0.3), 0 0 120px rgba(0, 198, 255, 0.2);
}

.game-container-inner {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 16px 24px;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.game-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.game-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #000;
}

/* Features Section (Asymmetric Grid) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,122,24,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: #00c6ff;
    font-size: 24px;
    border: 1px solid rgba(0,198,255,0.2);
}

.fc-large { grid-column: span 8; }
.fc-small { grid-column: span 4; }

/* Internal Pages Layout */
.page-header {
    padding: 160px 0 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(15,23,42,0.8) 0%, var(--bg-primary) 100%);
}

.content-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto 120px auto;
}

.content-panel h2 {
    margin-top: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.content-panel ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

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

/* Contact Form */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff7a18;
    box-shadow: 0 0 15px rgba(255, 122, 24, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-legal {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

@keyframes borderPulse {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .fc-large, .fc-small {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    :root {
        --space-desktop: var(--space-tablet);
    }
    
    .top-bar {
        padding: 0 20px;
    }

    .side-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 12px 24px;
        width: 90%;
        max-width: 400px;
        justify-content: space-between;
        border-radius: 30px;
    }

    .nav-link::after {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .content-panel {
        padding: 30px;
        margin-bottom: 80px; /* space for bottom nav */
    }
    
    body {
        padding-bottom: 80px; /* space for bottom nav */
    }
}

@media (max-width: 480px) {
    :root {
        --space-desktop: var(--space-mobile);
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .game-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}