@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Backgrounds */
    --bg-primary: #0b0a08;
    --bg-secondary: #1a140f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(26, 20, 15, 0.6);
    
    /* Accents - Banditos Theme */
    --gold-dust: #f5c542;
    --burnt-orange: #ff7a18;
    --desert-red: #c44536;
    --whiskey-brown: #6b3e26;
    --neon-ember: #ffae00;
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-muted: rgba(203, 213, 245, 0.6);
    
    /* Gradients */
    --grad-sunset: linear-gradient(135deg, var(--burnt-orange), var(--gold-dust));
    --grad-ember: linear-gradient(135deg, var(--desert-red), var(--neon-ember));
    --grad-dark: linear-gradient(to bottom, transparent, var(--bg-primary));
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1400px;
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --spacing-sm: 20px;
}

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

html {
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(images/%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
}

/* Vignette */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 9998;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-dust);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* UI Elements */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-primary);
    background: var(--grad-sunset);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--grad-ember);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn:hover {
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 122, 24, 0.5);
    transform: translateY(-2px);
}

.btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--gold-dust);
    border: 1px solid var(--gold-dust);
    box-shadow: none;
}

.btn-outline::before {
    background: rgba(245, 197, 66, 0.1);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 197, 66, 0.15);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(245, 197, 66, 0.4);
    transform: translateY(-5px);
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 197, 66, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-dust);
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--burnt-orange);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--gold-dust);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 80%), 
                      linear-gradient(to bottom, rgba(11, 10, 8, 0.3), var(--bg-primary)),
                      url('images/photo-1508435234994-67cfd72b535d.png'); /* Desert sunset fallback */
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: sepia(0.4) contrast(1.2);
}

#dust-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    padding-top: 10vh;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 122, 24, 0.4));
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Mandatory Legal Box */
.hero-legal-box {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 10, 8, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 197, 66, 0.3);
    padding: 15px 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(245, 197, 66, 0.05);
}

.hero-legal-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.hero-legal-box span {
    color: var(--gold-dust);
    font-weight: bold;
}

/* Split World Section */
.section-split {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--gold-dust);
}

.split-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.split-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.split-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 50px rgba(11, 10, 8, 1);
    pointer-events: none;
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.8);
    transition: transform 0.7s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

/* Game Showcase */
.section-game {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
    text-align: center;
}

.section-game h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
}

.game-frame-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--whiskey-brown), var(--bg-primary), var(--gold-dust));
    box-shadow: 0 0 50px rgba(245, 197, 66, 0.15), 0 30px 60px rgba(0,0,0,0.8);
}

.game-frame-inner {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.game-frame-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0; left: 0;
}

/* Features Grid */
.section-features {
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--burnt-orange);
    margin-bottom: 20px;
    display: block;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold-dust);
}

.glass-card p {
    color: var(--text-muted);
}

/* Parallax Section */
.section-parallax {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    background-image: linear-gradient(to bottom, var(--bg-primary), transparent, var(--bg-primary)),
                      url('images/photo-1469854523086-cc02fe5d8800.png'); /* Canyon fallback */
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: sepia(0.6) brightness(0.6);
}

.parallax-content {
    text-align: center;
    z-index: 1;
}

.parallax-content h2 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Trust Section */
.section-trust {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 30px;
}

.trust-item h4 {
    color: var(--desert-red);
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 900;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Standard Page Header */
.page-header {
    padding: 200px 0 100px;
    text-align: center;
    background: radial-gradient(ellipse at top, var(--bg-secondary), var(--bg-primary));
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--gold-dust);
    margin-bottom: 20px;
}

/* Content Pages (About, Legal) */
.content-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

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

.text-content h2 {
    font-size: 2rem;
    color: var(--burnt-orange);
    margin: 40px 0 20px;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.text-content li {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--gold-dust);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burnt-orange);
    background: rgba(255,255,255,0.05);
}

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

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(245, 197, 66, 0.1);
    position: relative;
    z-index: 10;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-company h4 {
    color: var(--gold-dust);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--burnt-orange);
}

.footer-company p {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-legal-notice {
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    margin-bottom: 40px;
}

.footer-legal-notice p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

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

/* Responsive */
@media (max-width: 992px) {
    .split-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* In a full build, add mobile menu toggle */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-legal-box {
        bottom: 20px;
        padding: 10px 15px;
    }
    
    .hero-legal-box p {
        font-size: 0.7rem;
    }
}