/* Premium Elf Kingdom Design System & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #121212; /* Dark Premium Charcoal Black */
    --primary-glow: rgba(212, 175, 55, 0.3);
    --secondary-color: #d4af37; /* Royal Elf Gold */
    --accent-color: #f3c244; /* Bright Shimmer Gold */
    --bg-dark: #0a0a0a; /* Obsidian Midnight Black */
    --bg-surface: rgba(22, 22, 22, 0.95); /* Deep Black Surface */
    --border-color: rgba(212, 175, 55, 0.3);
    --text-light: #fdfaf2; /* Soft Alabaster White */
    --text-muted: #bdae96; /* Elegant Golden Muted Gray */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Global Grid and Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Disclaimer Bar */
.disclaimer-bar {
    background: linear-gradient(90deg, #000000, #1a1a1a, #000000);
    color: var(--secondary-color);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
    z-index: 1000;
}

/* Slim Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-premium);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    background: linear-gradient(135deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-premium);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-premium);
}

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

.header-cta {
    background: linear-gradient(135deg, var(--secondary-color), #b2922a);
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-decoration: none;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--secondary-color);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-premium);
}

/* Premium Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #967a21);
    color: #000000;
    border: none;
    padding: 16px 36px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--secondary-color);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 14px 34px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-premium);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 120px;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.12) 0%, rgba(10, 10, 10, 1) 70%), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(212,175,55,0.15)"/></svg>');
    overflow: hidden;
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--accent-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 40%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Magic Game Frame Container */
.game-frame-section {
    padding: 60px 0;
    background: #0a0a0a;
    position: relative;
}

.game-frame-wrapper {
    max-width: 980px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.25), inset 0 0 20px rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.game-frame-header {
    background: linear-gradient(90deg, #1a1a1a, #0a0a0a);
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.game-frame-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 16px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.game-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Features grid custom styles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 11px;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-top: 10px;
    letter-spacing: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0;
    transition: var(--transition-premium);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

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

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Statistics Counter */
.stats-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h4 {
    font-family: var(--font-heading);
    font-size: 54px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.stat-item p {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Interactive Accordion FAQs */
.faq-section {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-trigger::after {
    content: '+';
    font-size: 24px;
    color: var(--secondary-color);
    transition: var(--transition-premium);
}

.faq-item.active .faq-trigger::after {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 30px;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Premium Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 14px;
}

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

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

.form-group label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input, .form-textarea {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 14px 20px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-premium);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 16px;
}

.newsletter-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
}

.cookie-banner h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.cookie-banner p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

/* Scroll Modal for Articles */
.scroll-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.scroll-modal.active {
    display: flex;
    opacity: 1;
}

.scroll-modal-content {
    background: #0f0f0f;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-modal.active .scroll-modal-content {
    transform: translateY(0);
}

.scroll-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition-premium);
}

.scroll-modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.scroll-modal-body {
    padding: 50px 40px;
    text-align: center;
}

.scroll-decoration-top {
    margin-bottom: 20px;
}

.scroll-sigil {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.scroll-meta {
    font-size: 11px;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.scroll-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.25;
}

.scroll-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

.scroll-text p {
    margin-bottom: 20px;
}

.scroll-decoration-bottom {
    margin-top: 30px;
    color: var(--secondary-color);
    letter-spacing: 6px;
    font-size: 14px;
}

/* Footer Specifications */
footer {
    background: #050505;
    border-top: 2px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.8;
}

.footer-col h5 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-premium);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-disclaimer-text {
    font-size: 11px;
    color: #8c8273;
    max-width: 900px;
    line-height: 1.6;
}

/* Responsive Utilities */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .scroll-modal-body {
        padding: 35px 20px;
    }
    .scroll-title {
        font-size: 24px;
    }
}