/* 
===============================================
1. DESIGN SYSTEM (ARCANE MAGIC UI)
===============================================
*/
:root {
    --bg-primary: #05040a;
    --bg-secondary: #0d0b1a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --arcane-purple: #7c3aed;
    --magic-blue: #38bdf8;
    --mystic-pink: #ec4899;
    --energy-cyan: #22d3ee;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --grad-primary: linear-gradient(135deg, var(--arcane-purple), var(--magic-blue));
    --grad-glow: linear-gradient(135deg, var(--mystic-pink), var(--arcane-purple));
    
    --font-primary: 'Outfit', sans-serif;
    --font-cinematic: 'Cinzel', serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

/* 
===============================================
3. TYPOGRAPHY & UTILITIES
===============================================
*/
.cinematic-title {
    font-family: var(--font-cinematic);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.section-title {
    font-family: var(--font-cinematic);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

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

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

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* 
===============================================
4. HEADER (FLOATING ARCANE NAVBAR)
===============================================
*/
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 4, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, background 0.4s ease;
}

.static-nav {
    position: relative;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-cinematic);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.mage-icon { font-size: 1.8rem; }

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--magic-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.3s ease;
}

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

.btn-glow {
    background: transparent;
    border: 1px solid var(--magic-blue);
    color: var(--magic-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) inset;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--magic-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.btn-primary {
    display: inline-block;
    background: var(--grad-primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5), 0 0 15px var(--magic-blue);
}

/* 
===============================================
5. HERO SECTION (ARCANE PORTAL INTRO)
===============================================
*/
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
}

.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(5,4,10,0.3) 0%, rgba(5,4,10,0.9) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* 
===============================================
6. MAGE WORLD SECTION
===============================================
*/
.mage-world-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--grad-glow);
    z-index: -1;
    border-radius: 22px;
    filter: blur(15px);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.glow-border:hover::before {
    opacity: 1;
    filter: blur(20px);
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* 
===============================================
7. GAME SECTION (MAGIC CHAMBER)
===============================================
*/
.game-chamber-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.chamber-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.game-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
    background: #000;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pulse-glow {
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.2); }
    100% { box-shadow: 0 0 60px rgba(56, 189, 248, 0.4); }
}

.game-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.5);
}

/* 
===============================================
8. FEATURES GRID
===============================================
*/
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124, 58, 237, 0.2) inset;
    border-color: rgba(124, 58, 237, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--magic-blue));
}

.feature-card h3 {
    font-family: var(--font-cinematic);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 
===============================================
9. PARALLAX MAGIC SECTION
===============================================
*/
.parallax-section {
    position: relative;
    padding: 10rem 2rem;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    text-align: center;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,4,10,0.8), rgba(13,11,26,0.6));
}

.parallax-content {
    position: relative;
    z-index: 1;
}

.massive-text {
    font-family: var(--font-cinematic);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
}

/* 
===============================================
10. TRUST & LEGAL
===============================================
*/
.trust-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.minimal-card {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.minimal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.minimal-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 
===============================================
11. FOOTER
===============================================
*/
.site-footer {
    background: #020105;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-cinematic);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.legal-notice {
    max-width: 800px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.legal-notice p {
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* 
===============================================
12. INNER PAGES
===============================================
*/
.inner-page {
    padding-top: 80px;
}

.content-page {
    min-height: calc(100vh - 300px);
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.text-section {
    max-width: 900px;
    margin: 0 auto;
}

.page-content {
    margin-top: 2rem;
}

.page-content h2 {
    font-family: var(--font-cinematic);
    color: var(--magic-blue);
    margin: 2rem 0 1rem;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.arcane-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--arcane-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.w-100 { width: 100%; }

/* 
===============================================
13. PARTICLES SYSTEM
===============================================
*/
#particles-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.magic-dust {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px 2px var(--magic-blue);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.8; transform: translateY(-20px) scale(1); }
    80% { opacity: 0.5; }
    100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

/* 
===============================================
14. RESPONSIVE DESIGN
===============================================
*/
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
        text-align: center;
    }
    .feature-list {
        display: inline-block;
        text-align: left;
    }
    .game-wrapper {
        width: 95%;
    }
    .nav-links {
        display: none; /* simple mobile hide for minimal scope */
    }
}

@media (max-width: 768px) {
    .game-wrapper {
        width: 100%;
        border-radius: 12px;
    }
    .chamber-header {
        margin-bottom: 2rem;
    }
    .parallax-section {
        padding: 6rem 1rem;
    }
}