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

:root {
    /* Base Colors - Deep Forest / Moss */
    --bg-primary: #0b1d16;
    --bg-secondary: #132a21;
    --surface-glass: rgba(132, 204, 22, 0.05);
    --surface-border: rgba(34, 197, 94, 0.2);
    
    /* Accent Colors */
    --accent-primary: #22c55e;
    --accent-secondary: #84cc16;
    --accent-gold: #facc15;
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.4);
    --accent-brown: #5c3a21;
    --accent-brown-dark: #3e2723;
    
    /* Text Colors */
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-desktop: 110px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    
    /* Transitions */
    --trans-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

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

/* Layout Utilities */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

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

.text-center { text-align: center; }
.gold-text { color: var(--accent-gold); }
.blue-text { color: var(--accent-blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--trans-smooth);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: var(--bg-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-ghost:hover {
    background: rgba(250, 204, 21, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 29, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    transition: var(--trans-smooth);
}

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

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

.logo span {
    color: var(--accent-gold);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/magical-forest-ruins-bg.webp'); /* Descriptive name */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
    animation: slowZoom 20s infinite alternate linear;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-disclaimer {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-brown);
    margin-bottom: 24px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

.hero-visual-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px var(--accent-blue-glow);
    border: 1px solid var(--surface-border);
    animation: float 6s ease-in-out infinite;
}

/* Floating Magic Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
    opacity: 0.4;
    animation: rise 10s infinite linear;
}

.p1 { width: 4px; height: 4px; left: 10%; bottom: -10px; animation-duration: 8s; }
.p2 { width: 6px; height: 6px; left: 30%; bottom: -10px; animation-duration: 12s; background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold);}
.p3 { width: 3px; height: 3px; left: 60%; bottom: -10px; animation-duration: 7s; background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue);}
.p4 { width: 5px; height: 5px; left: 80%; bottom: -10px; animation-duration: 11s; }

/* Game Section */
.game-section {
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.game-container {
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(34, 197, 94, 0.05);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid rgba(250, 204, 21, 0.2);
    box-shadow: 0 0 30px rgba(132, 204, 22, 0.1);
    transition: var(--trans-smooth);
}

.game-frame-wrapper:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

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

/* Features / Legal Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--trans-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(132, 204, 22, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(11, 29, 22, 0.8);
    border: 1px solid var(--accent-blue);
    color: var(--accent-gold);
    font-size: 28px;
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

/* Interior Pages */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(19, 42, 33, 0.8), var(--bg-primary));
    border-bottom: 1px solid var(--surface-border);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--accent-gold);
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    backdrop-filter: blur(10px);
}

.content-section h2 {
    color: var(--accent-primary);
    margin-top: 2rem;
}

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

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--accent-gold);
}

.form-control {
    width: 100%;
    padding: 14px;
    background: rgba(11, 29, 22, 0.6);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--trans-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

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

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--accent-brown-dark);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(92, 58, 33, 0.3); /* dark brown transparent */
    color: var(--accent-brown);
    font-size: 0.85rem;
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rise {
    0% { transform: translateY(100vh) scale(1); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-content { gap: 40px; }
    .container { padding: 0 24px; }
    .section-spacing { padding: var(--space-tablet) 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section-spacing { padding: var(--space-mobile) 0; }
    
    .main-nav {
        display: none; /* Hide default nav */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(11, 29, 22, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--surface-border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-cta { display: none; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-text p {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .game-frame-wrapper iframe {
        height: 500px;
    }
}