/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
   :root {
    /* Base Colors */
    --bg-primary: #050507;
    --bg-secondary: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.03);
    
    /* Accent Colors (Speed Energy) */
    --neon-blue: #22d3ee;
    --electric-purple: #a855f7;
    --speed-pink: #ec4899;
    --highlight-cyan: #67e8f9;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Gradients */
    --gradient-speed: linear-gradient(135deg, var(--neon-blue), var(--electric-purple), var(--speed-pink));
    --gradient-border: linear-gradient(to bottom right, var(--neon-blue), var(--speed-pink));
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-mobile: 50px;
    --space-tablet: 70px;
    --space-desktop: 100px;

    /* Containers */
    --container-max: 1400px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
    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;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

@media (min-width: 768px) {
    section { padding: var(--space-tablet) 0; }
}

@media (min-width: 1024px) {
    section { padding: var(--space-desktop) 0; }
}

/* ==========================================================================
   4. UTILITIES & COMPONENTS
   ========================================================================== */
.text-gradient {
    background: var(--gradient-speed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-neon {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--card-bg);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-primary:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--gradient-speed);
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.motion-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.5;
    margin: 20px 0;
}

.motion-divider.alternate {
    background: linear-gradient(90deg, transparent, var(--speed-pink), transparent);
}

/* ==========================================================================
   5. HEADER — RACING DASH NAV
   ========================================================================== */
.racing-dash-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 4px 30px rgba(34, 211, 238, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    /* Hide broken image icon if missing, fallback to text */
    text-indent: -9999px;
    background: var(--gradient-speed);
    border-radius: 4px;
}

.main-nav {
    display: none;
}

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

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: block;
}

.mobile-menu-btn img {
    width: 30px;
    height: 30px;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    .mobile-menu-btn {
        display: none;
    }
    .logo {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   6. HERO SECTION — SPEED ENTRY
   ========================================================================== */
.hero-speed-entry {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

/* Abstract racing lines & motion blur streaks */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 100px);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--speed-pink), transparent);
    box-shadow: 0 0 20px var(--neon-blue);
    opacity: 0.2;
    transform: translateY(-50%) rotate(-10deg) scale(2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .hero-desc { font-size: 1.25rem; }
}

/* ==========================================================================
   7. GAME SECTION — CORE ENGINE
   ========================================================================== */
.game-core-engine {
    background: var(--bg-secondary);
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.title-icon {
    width: 32px;
    height: 32px;
}

.game-header p {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.game-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4px;
    background: var(--gradient-border);
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 50px rgba(168, 85, 247, 0.25);
}

.game-container {
    background: var(--bg-primary);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .game-wrapper {
        border-radius: 12px;
        padding: 2px;
    }
    .game-container {
        border-radius: 10px;
        aspect-ratio: 4 / 3; /* Taller on mobile for slot machines usually */
    }
}

/* ==========================================================================
   8. FEATURES / SPEED ELEMENTS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* ==========================================================================
   9. INNER PAGES (ABOUT, CONTACT, LEGAL)
   ========================================================================== */
.page-content {
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
}

.content-card {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.text-block {
    margin-bottom: 30px;
}

.text-block h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    border-left: 3px solid var(--neon-blue);
    padding-left: 15px;
    text-transform: uppercase;
}

.text-block p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.text-block strong {
    color: var(--text-primary);
}

.cta-container.center {
    text-align: center;
    margin-top: 40px;
}

.text-heavy p {
    line-height: 1.8;
}

/* Contact Form */
.contact-card {
    max-width: 600px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.neon-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--speed-pink);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

/* ==========================================================================
   10. FOOTER — LEGAL SECTION
   ========================================================================== */
.legal-section {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.footer-domain {
    color: var(--neon-blue);
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-legal {
    max-width: 800px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.6;
}

.legal-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.legal-icon {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.copyright {
    margin-top: 20px;
    opacity: 0.5;
}

/* ==========================================================================
   11. ANIMATIONS (Subtle Motion)
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 0.8s ease forwards;
}

.game-wrapper {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.feature-card {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }