/* CSS Reset & Variables */
:root {
    --bg-dark: #070514;
    --bg-alt: #0d0a21;
    --text-main: #e2e8f0;
    --text-heading: #ffffff;
    --primary-neon: #00f0ff;
    --secondary-neon: #b500ff;
    --glow-color: rgba(0, 240, 255, 0.4);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-neon);
    color: var(--bg-dark);
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--glow-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

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

a:hover, a:focus {
    text-shadow: 0 0 8px var(--glow-color);
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 5, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(7, 5, 20, 0.95);
}

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

.logo-link img {
    display: block;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    mix-blend-mode: screen;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.primary-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}
.primary-navigation a:hover, .primary-navigation a:focus {
    color: var(--primary-neon);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}
.menu-toggle .hamburger, .menu-toggle .hamburger::before, .menu-toggle .hamburger::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-heading);
    position: absolute;
    transition: var(--transition);
}
.menu-toggle .hamburger::before { top: -8px; }
.menu-toggle .hamburger::after { bottom: -8px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Secondary Nav */
.secondary-nav {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 70px;
    z-index: 999;
    backdrop-filter: blur(5px);
}
.scroll-nav {
    display: flex;
    list-style: none;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 12px 0;
    scrollbar-width: none; /* Firefox */
}
.scroll-nav::-webkit-scrollbar { display: none; }
.scroll-nav li {
    white-space: nowrap;
}
.scroll-nav a {
    color: #a0aec0;
    font-size: 0.9rem;
}
.scroll-nav a:hover { color: var(--primary-neon); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-neon), var(--primary-neon));
    color: #fff;
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 0 15px var(--glow-color);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: var(--primary-neon);
    border-color: var(--primary-neon);
}
.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* Sections */
.content-section {
    padding: 4rem 0;
}
.alternate-bg {
    background: var(--bg-alt);
}
.dark-bg {
    background: #050310;
}
.split-section .split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(7,5,20,0.5), rgba(7,5,20,0.9));
}
.hero-content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-visual {
    display: flex;
    justify-content: center;
}
.hero-text {
    max-width: 600px;
}
.hero-main-logo {
    display: block;
    max-width: 100%;
    height: auto;
    /* This blends the dark background of the logo with the space background perfectly */
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}
.eyebrow {
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
}
.hero-lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Gameplay / Images */
.gameplay-frame img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 240, 255, 0.2);
}
.mobile-mockup-frame img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    border: 4px solid #1a1a2e;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
th {
    color: var(--primary-neon);
    font-weight: 600;
    width: 30%;
}
tr:last-child td, tr:last-child th {
    border-bottom: none;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(0,240,255,0.3);
}

/* Gameplay Flow diagram */
.gameplay-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.flow-step {
    font-weight: 700;
    color: var(--primary-neon);
    padding: 10px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}
.flow-arrow {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    opacity: 0.5;
}
.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--text-main);
}

/* Text grid */
.text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Wild Reel Illustration */
.reel-illustration {
    float: right;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 1rem 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}
.reel {
    width: 50px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    color: rgba(255,255,255,0.3);
}
.reel.highlighted {
    background: linear-gradient(180deg, rgba(0,240,255,0.1), rgba(181,0,255,0.2));
    border-color: var(--primary-neon);
    color: var(--text-heading);
    box-shadow: 0 0 15px rgba(0,240,255,0.2);
}
.reel-caption {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-neon);
}

/* Stat Cards */
.stat-cards {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.stat-card {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.03);
    border-top: 2px solid var(--secondary-neon);
    padding: 1.5rem;
    text-align: center;
}

/* Comparison Section */
.comparison-section {
    position: relative;
    padding: 5rem 0;
}
.comparison-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.comparison-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.15;
}
.comparison-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7,5,20,0.7);
}
.comparison-content {
    position: relative;
    z-index: 2;
}
.comparison-banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    color: var(--text-heading);
    text-align: left;
}
.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}
.faq-question .icon {
    width: 24px;
    height: 24px;
    position: relative;
}
.faq-question .icon::before, .faq-question .icon::after {
    content: '';
    position: absolute;
    background: var(--primary-neon);
    transition: transform 0.3s;
}
.faq-question .icon::before { top: 11px; left: 4px; width: 16px; height: 2px; }
.faq-question .icon::after { top: 4px; left: 11px; width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* arbitrary large value */
}
.faq-answer p {
    padding-bottom: 15px;
    color: #cbd5e1;
}

/* Footer */
.site-footer {
    background: #04030a;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
    text-align: center;
    margin-bottom: 2rem;
}
.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    mix-blend-mode: screen;
}
.footer-desc {
    max-width: 500px;
    margin: 0 auto;
    color: #94a3b8;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.footer-nav a {
    color: #e2e8f0;
    font-size: 0.9rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}
.responsible-gaming-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}
.age-limit {
    border: 2px solid var(--secondary-neon);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}
.disclaimer-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .menu-toggle { display: block; }
    .primary-navigation {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(7, 5, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .primary-navigation.active {
        transform: translateY(0);
    }
    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .primary-navigation li {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .primary-navigation li:last-child {
        border-bottom: none;
    }
    .primary-navigation a {
        display: block;
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .split-section .split-content, .hero-content-grid { grid-template-columns: 1fr; }
    .visual-block, .hero-visual { order: -1; } /* Image on top on mobile */
    .hero-visual { margin-bottom: 2rem; }
    .text-grid { grid-template-columns: 1fr; }
    
    .hero-actions { flex-direction: column; }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* Image Wrapping styles */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.wrap-image-right {
    float: right;
    max-width: 45%;
    margin: 0 0 2rem 2rem;
    height: auto;
}
.wrap-image-left {
    float: left;
    max-width: 45%;
    margin: 0 2rem 2rem 0;
    height: auto;
}
@media (max-width: 768px) {
    .wrap-image-right, .wrap-image-left {
        float: none;
        max-width: 100%;
        margin: 0 0 2rem 0;
        display: block;
    }
    .reel-illustration {
        float: none;
        margin: 0 auto 2rem;
        width: 100%;
    }
}


/* Responsible Gaming Footer Block */
.rg-footer-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.rg-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.age-limit-badge {
    border: 2px solid var(--secondary-neon);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}
.rg-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rg-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.rg-info p:last-child {
    margin-bottom: 0;
}
.rg-info a {
    color: var(--primary-neon);
    text-decoration: underline;
}
.rg-info a:hover {
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}
.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(7, 5, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    list-style: none;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lang-dropdown li:last-child {
    border-bottom: none;
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
}
.lang-dropdown a:hover, .lang-dropdown a.active-lang {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-neon);
}
@media (max-width: 768px) {
    .lang-switcher {
        margin: 10px auto;
    }
    .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translate(-50%, -10px);
    }
    .lang-dropdown.active {
        transform: translate(-50%, 0);
    }
}

/* Flag Icons */
.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
