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

:root {
    /* Base Colors */
    --bg-primary: #07090B;
    --bg-secondary: #111827;
    --bg-section: #16202A;
    
    /* Glass Surface */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(18px);
    
    /* Accent Gradients */
    --grad-gold: linear-gradient(135deg, #D4AF37, #F7D774);
    --grad-blue: linear-gradient(135deg, #1D4ED8, #60A5FA);
    --grad-emerald: linear-gradient(135deg, #0F766E, #34D399);
    --grad-bronze: linear-gradient(135deg, #8B5E34, #C28A4B);
    
    /* Glow Effects */
    --glow-gold: rgba(212, 175, 55, 0.45);
    --glow-blue: rgba(59, 130, 246, 0.35);
    --glow-emerald: rgba(52, 211, 153, 0.30);
    
    /* Typography */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Cinzel', serif;
    
    /* Spacing */
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    
    /* Radii */
    --radius-btn: 18px;
    --radius-card: 24px;
    --radius-pill: 50px;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-family: var(--font-sans); font-weight: 700; }

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

.text-muted { color: var(--text-muted); font-size: 0.95rem; }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* UI Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--grad-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-gold);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--glow-gold), 0 0 60px var(--glow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--grad-blue);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--glow-blue);
}

.btn-secondary:hover {
    box-shadow: 0 0 30px var(--glow-blue), 0 0 60px var(--glow-blue);
    transform: translateY(-2px);
}

/* Header - Command Bar */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    height: 80px;
    border-radius: var(--radius-pill);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    fill: url(#gold-grad);
}

/* Floating Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 999;
    border-radius: var(--radius-pill);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.side-nav:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(59, 130, 246, 0.2);
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px var(--glow-gold);
    transform: scale(1.1);
}

.nav-item:hover svg, .nav-item.active svg {
    stroke: #F7D774;
}

.nav-tooltip {
    position: absolute;
    left: calc(100% + 15px);
    background: var(--bg-section);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.nav-item:hover .nav-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-left: 100px; /* Offset for side nav */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(7,9,11,0.3) 0%, rgba(7,9,11,0.9) 100%),
                radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.legal-notice-hero {
    margin-top: 60px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Game Section */
.game-section {
    background: var(--bg-primary);
    position: relative;
}

.game-card-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-card);
    padding: 2px;
    overflow: hidden;
}

.game-card-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(212, 175, 55, 1), 
        transparent 30%, 
        rgba(59, 130, 246, 1), 
        transparent 60%
    );
    z-index: 0;
}

.game-card {
    background: var(--bg-section);
    border-radius: calc(var(--radius-card) - 2px);
    position: relative;
    z-index: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.game-meta {
    display: flex;
    gap: 16px;
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    color: #F7D774;
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

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

/* Features Section - Explorer Grid */
.features-section {
    background-color: var(--bg-secondary);
    background-image: url('images/static-ancient-map-pattern-background.png');
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
}

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

.feature-card {
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--glass-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card:hover::after {
    background: var(--grad-gold);
}

.card-span-8 { grid-column: span 8; }
.card-span-4 { grid-column: span 4; }
.card-span-6 { grid-column: span 6; }
.card-span-12 { grid-column: span 12; }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(59,130,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: url(#gold-grad);
    stroke-width: 1.5;
    fill: none;
}

/* Content Pages (About, Legal) */
.page-header {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-section);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-desktop);
}

.content-wrapper h2 { margin-top: 40px; }
.content-wrapper ul { margin-bottom: 24px; padding-left: 20px; list-style: disc; color: var(--text-secondary); }
.content-wrapper li { margin-bottom: 8px; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

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

.footer-brand p {
    margin-top: 24px;
    max-width: 400px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: #D4AF37;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .card-span-8, .card-span-4, .card-span-6 { grid-column: span 12; }
    .hero { padding-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --spacing-desktop: var(--spacing-tablet);
    }
    .header { width: calc(100% - 32px); height: 70px; top: 16px; }
    .hero-actions { flex-direction: column; }
    
    /* Mobile Bottom Nav */
    .side-nav {
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: calc(100% - 32px);
        justify-content: space-around;
        padding: 12px 24px;
        background: rgba(11, 15, 25, 0.9);
        backdrop-filter: blur(20px);
    }
    
    .nav-tooltip { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .game-card { padding: 24px; }
    .game-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
    :root {
        --spacing-desktop: var(--spacing-mobile);
    }
    .btn { width: 100%; }
}