:root {
    /* Color System */
    --bg-base: #050505;
    --bg-secondary: #0d0d0d;
    --surface: rgba(255, 255, 255, 0.05);
    
    /* Neon Accents */
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-blue: #22d3ee;
    --neon-green: #a3e635;
    
    /* Glow Layers */
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-pink: rgba(236, 72, 153, 0.5);
    --glow-blue: rgba(34, 211, 238, 0.5);
    
    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Layout */
    --container-max: 1320px;
    --section-padding: 100px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
.text-neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px var(--glow-purple); }
.text-neon-pink { color: var(--neon-pink); text-shadow: 0 0 10px var(--glow-pink); }
.text-neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--glow-blue); }

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Layout System */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Glass & Neon Effects */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Floating Neon Header */
.header-wrapper {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-max);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.header-wrapper.scrolled {
    top: 10px;
    width: 100%;
    max-width: 100%;
}

.header-wrapper.scrolled .header-glass {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 5px 25px var(--glow-purple);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--glow-blue);
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: var(--neon-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--glow-purple);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--glow-pink);
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--glow-pink);
}

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

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10000;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-blue);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--glow-blue);
}

/* Buttons */
.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 15px var(--glow-purple);
    transition: all 0.3s ease;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--glow-blue);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-pink);
    box-shadow: inset 0 0 10px var(--glow-pink), 0 0 10px var(--glow-pink);
}

.btn-outline:hover {
    background: rgba(236, 72, 153, 0.1);
    box-shadow: inset 0 0 20px var(--glow-pink), 0 0 20px var(--glow-pink);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(circle at center, rgba(139,92,246,0.1) 0%, var(--bg-base) 70%);
}

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

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

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(34,211,238,0.3));
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Core Game Section */
.game-section {
    background: url('images/abstract-glowing-grid-bg.jpg') center/cover fixed;
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
}

.game-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 26px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 40px var(--glow-purple);
    z-index: 2;
}

.game-iframe-container {
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    height: 650px;
    position: relative;
}

.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    border-top: 2px solid var(--neon-blue);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--glow-blue);
    border-color: var(--neon-pink);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

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

/* Interior Pages Structure */
.interior-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(139,92,246,0.1), var(--bg-base));
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.interior-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--glow-purple);
}

/* Forms */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-blue);
    background: rgba(0, 0, 0, 0.8);
}

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

/* Legal Pages */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.legal-content h2 {
    color: var(--neon-purple);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: var(--neon-blue);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: square;
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
    margin-top: 50px;
}

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

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--neon-purple);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--neon-pink);
    padding-left: 5px;
    text-shadow: 0 0 8px var(--glow-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}