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

:root {
    /* Background Colors */
    --bg-primary: #120b08;
    --bg-secondary: #1e1511;
    --bg-section: #2a1d17;

    /* Glass Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(22px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);

    /* Accents */
    --accent-fire-grad: linear-gradient(135deg, #ff7a18, #ffb347);
    --accent-fire-glow: rgba(255, 122, 24, 0.45);
    
    --accent-red-grad: linear-gradient(135deg, #b91c1c, #ef4444);
    --accent-red-glow: rgba(239, 68, 68, 0.35);
    
    --accent-blue-grad: linear-gradient(135deg, #1e3a8a, #60a5fa);
    --accent-blue-glow: rgba(96, 165, 250, 0.35);
    
    --premium-blend: linear-gradient(135deg, #ff7a18, #b91c1c);

    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #d6d3d1;
    --text-muted: #9ca3af;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1360px;
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    --border-radius-lg: 28px;
    --border-radius-md: 18px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.heading-xl { font-size: clamp(3rem, 6vw, 5.5rem); }
.heading-lg { font-size: clamp(2.5rem, 4vw, 4rem); }
.heading-md { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.heading-sm { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.text-gradient {
    background: var(--accent-fire-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-red {
    background: var(--premium-blend);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.text-muted { color: var(--text-muted); }
.text-lead { font-size: 1.25rem; font-weight: 300; }

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.text-center { text-align: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-fire-grad);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-fire-glow);
    text-transform: uppercase;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-fire-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   HEADER / COMMAND BAR
   ========================================================================== */
.command-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.command-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,122,24,0.2);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.brand-logo span {
    color: #ff7a18;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
    text-shadow: 0 0 8px var(--accent-fire-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.btn-header-play {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px; /* Offset for header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%),
                linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.05);
    animation: slowZoom 30s infinite alternate linear;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

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

.hero-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Embers / Particles */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #ff7a18;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff7a18;
    animation: floatUp infinite linear;
    opacity: 0;
}

/* ==========================================================================
   GAME SECTION (SAAS DASHBOARD STYLE)
   ========================================================================== */
.game-section {
    background-color: var(--bg-secondary);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -50px; left: 0; right: 0; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    z-index: 1;
}

.game-dashboard-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.game-header-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: var(--glass-border);
    background: rgba(0,0,0,0.3);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.game-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-fire-grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px var(--accent-fire-glow);
}

.game-info h3 { margin: 0; font-size: 1.5rem; }
.game-info p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.game-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,122,24,0.3);
    box-shadow: 0 0 40px rgba(255,122,24,0.1);
}

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

/* ==========================================================================
   FEATURES / CONTENT SECTIONS
   ========================================================================== */
.features-section {
    background-color: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,122,24,0.1), transparent 70%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,122,24,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255,122,24,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--accent-fire-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Image grid section */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.img-wrap {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: var(--glass-border);
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.img-caption {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* ==========================================================================
   REWARDS DASHBOARD
   ========================================================================== */
.rewards-section {
    background: var(--bg-section);
    background-image: radial-gradient(circle at 20% 50%, rgba(30,58,138,0.15) 0%, transparent 50%);
}

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

.user-rank-card {
    text-align: center;
    padding: 3rem 2rem;
}

.rank-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: url('images/sheriff-badge-gold.png') center/contain no-repeat; /* Fallback visually via CSS if img missing */
    position: relative;
}

.rank-badge::after {
    content: '★';
    font-size: 4rem;
    color: #ffb347;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 20px #ff7a18;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: var(--accent-fire-grad);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-fire-glow);
}

.missions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
}

.mission-info h4 { margin-bottom: 0.25rem; }
.mission-info p { margin: 0; font-size: 0.875rem; }
.mission-reward { font-family: var(--font-heading); color: #ffb347; font-size: 1.2rem; }

/* ==========================================================================
   LEGAL / CONTENT PAGES
   ========================================================================== */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.legal-content h2 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.legal-content h3 {
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-content li::before {
    content: '▹';
    position: absolute;
    left: -1.5rem;
    color: #ff7a18;
}

.company-details-box {
    background: rgba(255,122,24,0.05);
    border: 1px solid rgba(255,122,24,0.2);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0a0604;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,122,24,0.2);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: var(--accent-fire-grad);
    opacity: 0.5;
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p { font-size: 0.9rem; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ff7a18;
    padding-left: 5px;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gamble-aware-img {
    height: 30px;
    opacity: 0.5;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .image-showcase { grid-template-columns: repeat(6, 1fr); }
    .img-wrap:first-child { grid-column: span 6; }
}

@media (max-width: 768px) {
    :root {
        --spacing-desktop: 60px;
    }
    
    /* Mobile App Dock Navigation */
    .command-bar {
        top: auto;
        bottom: 20px;
        width: 90%;
    }
    
    .nav-links {
        display: none; /* Hide text links */
    }
    
    .brand-logo span { display: none; } /* Show only icon maybe */
    .brand-logo { font-size: 1.2rem; }
    
    .header-actions { display: none; } /* Simplify mobile dock */
    
    /* Alternate mobile menu (simplified for this build) */
    .command-bar-inner {
        justify-content: center;
        padding: 0.8rem;
    }
    .command-bar-inner::after {
        content: '☰ MENU';
        font-family: var(--font-heading);
        color: #fff;
        letter-spacing: 2px;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    
    .game-header-ui { flex-direction: column; gap: 1rem; text-align: center; }
}