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

:root {
    /* Color System - Gemstone Luminance */
    --bg-base: #0f0b18; /* Deep indigo-violet */
    --bg-surface: #1a1329; /* Muted midnight blue */
    
    /* Text */
    --text-primary: #e6e2f1; /* Soft off-white */
    --text-secondary: #a39bc2; /* Cool gray-lavender */
    
    /* Accents (Diffused) */
    --gem-amethyst: #9254c8;
    --gem-amethyst-glow: rgba(146, 84, 200, 0.3);
    --gem-ruby: #d94863;
    --gem-ruby-glow: rgba(217, 72, 99, 0.25);
    --gem-emerald: #1fae80;
    --gem-emerald-glow: rgba(31, 174, 128, 0.25);
    --gem-sapphire: #307ec9;
    --gem-sapphire-glow: rgba(48, 126, 201, 0.25);

    /* Glassmorphism Layers */
    --glass-bg: rgba(30, 22, 50, 0.45);
    --glass-border: rgba(146, 84, 200, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Layout Spacing */
    --space-section-desktop: 100px;
    --space-section-tablet: 70px;
    --space-section-mobile: 50px;
    
    /* Core Layout */
    --container-max: 1400px;
    --border-radius: 18px;
    --border-radius-pill: 50px;
    
    /* Transitions */
    --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--gem-amethyst-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.6;
    animation: ambientShift 15s infinite alternate ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--gem-sapphire-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.4;
    animation: ambientShift 20s infinite alternate-reverse ease-in-out;
}

@keyframes ambientShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

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

ul {
    list-style: none;
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--gem-amethyst));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-padding {
    padding: var(--space-section-desktop) 0;
}

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

/* =========================================
   GLASSMORPHISM & COMPONENTS
   ========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gem-amethyst), #663399);
    color: #fff;
    box-shadow: 0 4px 15px var(--gem-amethyst-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(146, 84, 200, 0.5);
    background: linear-gradient(135deg, #a36de0, #7a3ebb);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gem-amethyst);
    transform: translateY(-2px);
}

/* =========================================
   HEADER NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--trans-smooth);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(15, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-gem {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gem-amethyst), var(--gem-sapphire));
    border-radius: 6px;
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--gem-amethyst-glow);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gem-amethyst);
    transition: var(--trans-smooth);
    box-shadow: 0 0 8px var(--gem-amethyst-glow);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.mobile-menu-toggle {
    display: none;
    color: var(--text-primary);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: luminosity;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 40%, var(--bg-base) 100%);
}

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

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--gem-amethyst);
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
}

/* Disclaimer Banner in Hero */
.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.disclaimer-badge span {
    width: 8px;
    height: 8px;
    background: var(--gem-ruby);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gem-ruby-glow);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* =========================================
   GAME SECTION (CORE EXPERIENCE)
   ========================================= */
.game-section {
    position: relative;
    z-index: 2;
    margin-top: -50px; /* Slight overlap with hero */
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    background: #000;
    border-radius: 24px;
    padding: 4px; /* Space for glowing border */
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--gem-amethyst-glow);
    transition: var(--trans-smooth);
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gem-ruby), var(--gem-amethyst), var(--gem-sapphire));
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: var(--trans-smooth);
}

.game-container:hover {
    transform: scale(1.01);
}

.game-container:hover::before {
    opacity: 0.8;
    filter: blur(12px);
}

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

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

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--trans-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gem-amethyst);
    box-shadow: 0 15px 35px var(--gem-amethyst-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255,255,255,0.05);
}

.icon-ruby { color: var(--gem-ruby); box-shadow: inset 0 0 20px var(--gem-ruby-glow); border: 1px solid rgba(217, 72, 99, 0.2); }
.icon-emerald { color: var(--gem-emerald); box-shadow: inset 0 0 20px var(--gem-emerald-glow); border: 1px solid rgba(31, 174, 128, 0.2); }
.icon-sapphire { color: var(--gem-sapphire); box-shadow: inset 0 0 20px var(--gem-sapphire-glow); border: 1px solid rgba(48, 126, 201, 0.2); }

/* =========================================
   STATS / INFO SECTION
   ========================================= */
.stats-section {
    background: linear-gradient(to right, transparent, rgba(146, 84, 200, 0.05), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--gem-amethyst-glow);
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    margin: 100px 0;
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(146, 84, 200, 0.2) 0%, var(--glass-bg) 100%);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--gem-amethyst-glow), transparent 60%);
    animation: rotateSlow 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

/* =========================================
   STANDARD CONTENT PAGES
   ========================================= */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-header-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mix-blend-mode: luminosity;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 50%, var(--bg-base) 100%);
}

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

.content-panel {
    padding: 40px;
    margin-bottom: 40px;
}

.content-panel h2 {
    color: var(--gem-amethyst);
    font-size: 1.8rem;
    margin-top: 32px;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel ul {
    margin: 16px 0;
    padding-left: 20px;
}

.content-panel li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    position: relative;
}

.content-panel li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: var(--gem-amethyst);
}

/* Contact Form */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--trans-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--gem-amethyst);
    box-shadow: 0 0 15px var(--gem-amethyst-glow);
    background: rgba(0,0,0,0.4);
}

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

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: #0a0710;
    padding: 80px 0 40px;
    position: relative;
}

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

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

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

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

.footer-links a:hover {
    color: var(--gem-amethyst);
    padding-left: 5px;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-disclaimer h4 {
    color: var(--gem-ruby);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    margin: 0;
}

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

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: var(--space-section-tablet) 0; }
    
    .nav-links {
        display: none; /* In a real app, toggle class to show */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 11, 24, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .mobile-menu-toggle { display: block; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 16px auto 0; }
    .footer-links a:hover { padding-left: 0; color: var(--gem-amethyst); }
    
    .game-wrapper {
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .section-padding { padding: var(--space-section-mobile) 0; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .cta-banner { padding: 40px 20px; }
}