:root {
    /* Colors - Dark Forest Premium */
    --bg-primary: #050807;
    --bg-secondary: #0b1410;
    --card-surface: rgba(255, 255, 255, 0.04);
    --accent-primary: #22c55e;
    --accent-secondary: #16a34a;
    --ambient-glow: #86efac;
    --accent-gradient: linear-gradient(135deg, #14532d, #22c55e);
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    /* Spacing */
    --spacing-desktop: 100px;
    --spacing-tablet: 70px;
    --spacing-mobile: 50px;
    --max-width: 1400px;
    
    /* UI Elements */
    --radius-md: 16px;
    --radius-lg: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-spacing {
    padding: var(--spacing-mobile) 0;
}
.pt-0 { padding-top: 0 !important; }

@media (min-width: 768px) {
    .section-spacing { padding: var(--spacing-tablet) 0; }
}
@media (min-width: 1024px) {
    .section-spacing { padding: var(--spacing-desktop) 0; }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.ambient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 30px rgba(134, 239, 172, 0.2);
}

/* Fog & Particles */
.fog-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.03) 0%, rgba(5, 8, 7, 0.8) 100%);
    pointer-events: none;
    z-index: -2;
}

.fireflies-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--ambient-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--ambient-glow);
    opacity: 0;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(5, 8, 7, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 100;
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    background: rgba(5, 8, 7, 0.85);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 10px 30px rgba(5, 8, 7, 0.8);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
}

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

.desktop-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--text-primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-primary);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .header-actions .btn { display: none; }
    .menu-toggle { display: flex; }
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: rgba(5, 8, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
}

.close-menu {
    position: absolute;
    top: 20px; right: 5%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

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

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

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

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

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.4;
}

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

.hero-content {
    max-width: 800px;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--ambient-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero-ctas { flex-direction: column; }
}

/* Game Teaser / Portal Preview */
.game-portal-preview {
    margin-top: 3rem;
}

.game-portal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--accent-gradient);
    position: relative;
    transition: var(--transition-smooth);
}

.game-portal-wrapper::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: var(--accent-primary);
    filter: blur(40px);
    opacity: 0.15;
    z-index: -1;
    border-radius: inherit;
    transition: var(--transition-smooth);
}

.game-portal-wrapper:hover {
    transform: translateY(-10px);
}

.game-portal-wrapper:hover::before {
    opacity: 0.3;
}

.game-portal-inner {
    background: var(--bg-primary);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.game-portal-wrapper:hover .portal-bg {
    transform: scale(1.05);
    opacity: 0.7;
}

.portal-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(5, 8, 7, 0.7);
    padding: 2rem 3rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.portal-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--card-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.glass-card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
}

.glass-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Trust Section */
.trust-banner {
    border-color: rgba(34, 197, 94, 0.1);
}

.disclaimer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Main Game Section */
.game-page {
    background-color: #030504;
}

.game-main {
    padding-top: 100px;
    min-height: 100vh;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header p {
    color: var(--text-secondary);
}

.game-iframe-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    height: 750px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--accent-gradient);
    position: relative;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.15);
}

@media (max-width: 768px) {
    .game-iframe-wrapper { height: 500px; }
}

.game-iframe-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    border-radius: inherit;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.3; filter: blur(20px); }
    100% { opacity: 0.6; filter: blur(30px); }
}

.portal-mist {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 60%, rgba(5,8,7,0.8) 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
}

.iframe-container {
    background: var(--bg-primary);
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

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

/* Text Content Pages */
.page-main {
    padding-top: 120px;
    min-height: calc(100vh - 300px);
}

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

.text-content h2 {
    margin-top: 2rem;
    color: var(--ambient-glow);
    font-size: 1.5rem;
}

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

/* Features Rows */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    padding: 0;
}

.feature-visual img {
    border-radius: inherit;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.company-address {
    font-style: normal;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.form-container {
    width: 100%;
}

.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: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: auto;
}

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

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

.footer-address {
    margin-top: 1.5rem;
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

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

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

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

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }