:root {
    --bg-main: #04030a;
    --bg-secondary: #0c0a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #22c55e;
    --accent-blue: #60a5fa;
    
    --gradient-main: linear-gradient(135deg, #8b5cf6, #ec4899);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.max-w-md { max-width: 800px; margin: 0 auto; }
.w-full { width: 100%; }

/* Glassmorphism Utilities */
.glass {
    background: rgba(12, 10, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-purple);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
}

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

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

.desktop-nav a:hover, .desktop-nav a.active {
    color: white;
    text-shadow: 0 0 10px var(--accent-purple);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(4, 3, 10, 0.95);
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.mobile-nav.active {
    height: 100vh;
}

.mobile-nav ul {
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.mobile-nav.active ul {
    opacity: 1;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.1); /* For zoom effect */
}

/* Fog Effect */
.fog-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.fog {
    position: absolute;
    width: 200%;
    height: 100%;
    background: transparent;
}

.layer-1 {
    background-image: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: drift 40s linear infinite;
    opacity: 0.6;
}

.layer-2 {
    background-image: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    animation: drift 30s linear infinite reverse;
    opacity: 0.8;
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions {
    opacity: 0;
    transform: translateY(30px);
}

/* Magic World Section */
.magic-world {
    padding: 8rem 0;
    background: var(--bg-main);
    position: relative;
}

.magic-world::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    z-index: -1;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-text {
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.split-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-pink);
}

.split-image-container {
    flex: 1;
    position: relative;
}

.split-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

/* Game Section */
.game-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.game-header {
    margin-bottom: 3rem;
}

.game-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.game-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    padding: 1rem;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), 0 0 60px rgba(236, 72, 153, 0.15);
    background: #000;
    position: relative;
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-main);
    z-index: -1;
    border-radius: 26px;
    opacity: 0.5;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    background: #111;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--bg-main);
}

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

.feature-card {
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Parallax Section */
.parallax {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

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

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.parallax-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Legal Section */
.legal {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.legal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.legal-heading {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.legal p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background: #020105;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-logo span {
    color: var(--accent-purple);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.footer-disclaimer {
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.8;
}

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

/* Inner Pages Styles */
.inner-page .main-header {
    background: rgba(12, 10, 26, 0.9);
}

.inner-content {
    padding-top: 120px;
    padding-bottom: 6rem;
    min-height: calc(100vh - 400px);
}

.page-header {
    padding: 4rem 0;
}

.page-body .text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    color: var(--accent-purple);
    margin: 2rem 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

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

/* Contact Form */
.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
    }
    .feature-list li {
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 300px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-desc {
        margin: 1rem auto 0;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .parallax-content h2 {
        font-size: 2.5rem;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
}