:root {
    /* Base Layers */
    --color-night: #1a120b;
    --color-sand: #2c1c12;
    --color-shadow: #3a2416;

    /* Primary Accents */
    --color-orange: #f97316;
    --color-gold: #facc15;
    --color-amber: #fb923c;

    /* Secondary Accents */
    --color-cactus: #4d7c0f;
    --color-olive: #65a30d;

    /* Typography */
    --color-text-main: #fff7ed;
    --color-text-sec: #fed7aa;
    --color-text-muted: #fdba74;

    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Spacing */
    --space-desk: 110px;
    --space-tab: 80px;
    --space-mob: 60px;
    --max-width: 1320px;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
}

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

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

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

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(58, 36, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(26, 18, 11, 0.95);
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-sec);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--color-orange), var(--color-gold));
    transition: width 0.3s ease;
}

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

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

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
    transition: 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: var(--color-night);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(58, 36, 22, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-amber);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: rgba(251, 146, 60, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(44, 28, 18, 0.8) 0%, var(--color-night) 100%);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/photo-1469854523086-cc02fe5d8800.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: 0;
    mix-blend-mode: luminosity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--color-night));
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--color-text-main), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-text-sec);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(44, 28, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.badge-icon {
    font-size: 2rem;
}

/* Main Game Section */
.game-section {
    background: var(--color-night);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.game-cabinet {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, var(--color-sand), var(--color-shadow));
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.game-cabinet::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, var(--color-orange), transparent, var(--color-gold), transparent);
    z-index: -1;
    opacity: 0.6;
    animation: glow-pulse 4s infinite alternate;
}

.game-cabinet iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    border: none;
    display: block;
    background: #000;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(44, 28, 18, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.15);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(58, 36, 22, 0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(249, 115, 22, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-shadow), var(--color-sand));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--color-amber);
    color: var(--color-gold);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

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

/* Interior Pages Hero */
.page-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(44, 28, 18, 0.9), var(--color-night)), url('images/photo-1509316785289-025f5b846b35.png') center/cover;
    border-bottom: 1px solid rgba(251, 146, 60, 0.1);
}

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

/* Content Pages (Legal/Text) */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(44, 28, 18, 0.3);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(251, 146, 60, 0.1);
}

.content-wrapper h2, .content-wrapper h3 {
    color: var(--color-amber);
    margin: 30px 0 15px;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: var(--color-text-sec);
}

.content-wrapper ul {
    margin: 0 0 20px 20px;
    color: var(--color-text-sec);
}

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

/* Footer */
.footer {
    background: var(--color-night);
    border-top: 1px solid rgba(251, 146, 60, 0.2);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}

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

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

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

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

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

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

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        margin: 0 auto 30px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 20px auto;
    }
    .section {
        padding: var(--space-tab) 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 18, 11, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .section {
        padding: var(--space-mob) 0;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .content-wrapper {
        padding: 30px 20px;
    }
}