:root {
    --bg-primary: #070A12;
    --bg-secondary: #0B1020;
    --bg-surface: #111A2E;
    
    --neon-blue: #2DE2E6;
    --turbo-pink: #FF3D8D;
    --electric-purple: #7C4DFF;
    --speed-orange: #FF8A00;
    --highway-yellow: #FFD400;
    
    --text-primary: #EAF0FF;
    --text-secondary: #A9B4CC;
    --text-muted: #6E7A99;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(45, 226, 230, 0.5);
    
    --font-main: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    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;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--highway-yellow);
    text-shadow: 0 0 8px var(--highway-yellow);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-neon {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(45, 226, 230, 0.6), 0 0 20px rgba(45, 226, 230, 0.4);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
    font-style: italic;
}

.btn-primary {
    background: linear-gradient(90deg, var(--turbo-pink), var(--speed-orange));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 61, 141, 0.5);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 138, 0, 0.8);
    color: #fff;
    text-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(45, 226, 230, 0.2) inset;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(45, 226, 230, 0.1);
    box-shadow: 0 0 20px rgba(45, 226, 230, 0.5) inset, 0 0 15px rgba(45, 226, 230, 0.4);
    color: var(--neon-blue);
    text-shadow: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #04060b;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    z-index: 1001;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.top-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Header */
.header {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    background-color: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 4px 20px rgba(45, 226, 230, 0.15);
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 1px;
}

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

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

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(45, 226, 230, 0.6);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    position: relative;
    box-shadow: 0 0 5px var(--neon-blue);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    left: 0;
    transition: var(--transition-fast);
    box-shadow: 0 0 5px var(--neon-blue);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/neon-highway-hero-bg.jpg'); /* Descriptive filename placeholder */
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7,10,18,0.9) 0%, rgba(11,16,32,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-style: italic;
    transform: skewX(-5deg);
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections Base */
section {
    padding: 6rem 0;
}

/* Game Section */
.game-section {
    background-color: var(--bg-primary);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-purple), transparent);
}

.game-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.2);
    overflow: hidden;
    position: relative;
}

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

/* Speed Stats Section */
.stats-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: var(--bg-surface);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(45, 226, 230, 0.1);
    transform: translateY(-5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--speed-orange), var(--highway-yellow));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    font-style: italic;
    text-shadow: 0 0 10px rgba(45, 226, 230, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Rewards Section */
.rewards-section {
    background-color: var(--bg-primary);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.reward-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 61, 141, 0.2);
    border-color: rgba(255, 61, 141, 0.5);
}

.reward-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--turbo-pink);
}

.reward-content {
    padding: 2rem;
}

.reward-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-style: italic;
}

.reward-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-secondary);
    text-align: center;
}

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

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover, .faq-question[aria-expanded="true"] {
    color: var(--neon-blue);
    background: rgba(45, 226, 230, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--turbo-pink);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-secondary);
    padding-bottom: 8rem;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(45, 226, 230, 0.2);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    min-height: 24px;
}

.status-success {
    color: var(--neon-blue);
}

.status-loading {
    color: var(--highway-yellow);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 2px solid var(--neon-blue);
    box-shadow: 0 -4px 20px rgba(45, 226, 230, 0.1);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 1rem;
}

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

.footer h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer ul a, .footer-support p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Legal Pages Base Styling */
.legal-page {
    padding-top: 120px;
    padding-bottom: 6rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

.legal-content {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

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

.legal-content ul {
    padding-left: 2rem;
    list-style: disc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--neon-blue);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-container {
        width: 90%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(7, 10, 18, 0.98);
        border-bottom: 1px solid var(--neon-blue);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-smooth);
        gap: 1.5rem;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .game-container {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-desc {
        margin: 0 auto;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}