:root {
    /* Base Background */
    --bg-primary: #0b0b0b;
    --bg-secondary: #1a1410;
    
    /* Book Material Tones */
    --book-dark: #3b2a1a;
    --book-leather: #5a3a22;
    --book-parchment: #7a5a3a;
    
    /* Gold / Treasure Accents */
    --gold-primary: #facc15;
    --gold-deep: #d4a017;
    --gold-glow: #ffe08a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #c9c9c9;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Layout Spacing */
    --spacing-desktop: 110px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    --max-width: 1320px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at center, rgba(59, 42, 26, 0.15) 0%, var(--bg-primary) 100%);
}

/* Typography */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

h1 { font-size: 4rem; line-height: 1.2; text-shadow: 0 0 20px rgba(250, 204, 21, 0.2); }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.75rem; color: var(--gold-glow); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-glow);
}

/* Layout System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--gold-deep);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(11, 11, 11, 0.8), inset 0 0 10px rgba(212, 160, 23, 0.05);
    background-image: linear-gradient(rgba(122,90,58,0.05), rgba(122,90,58,0.15));
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text::before {
    content: '📖';
    font-size: 1.5rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--gold-glow);
}

.nav-links a:hover {
    color: var(--gold-glow);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(145deg, var(--gold-deep), var(--gold-primary), var(--gold-deep));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.6);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-deep);
    box-shadow: inset 0 0 10px rgba(212, 160, 23, 0.1);
}

.btn-secondary:hover {
    background: rgba(212, 160, 23, 0.1);
    transform: translateY(-2px);
    box-shadow: inset 0 0 20px rgba(212, 160, 23, 0.3), 0 4px 15px rgba(212, 160, 23, 0.2);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--book-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/temple-library-interior.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -2;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 80%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.disclaimer-box {
    background-color: rgba(26, 20, 16, 0.8);
    border: 1px solid var(--book-leather);
    border-left: 3px solid var(--gold-deep);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.disclaimer-box .icon {
    font-size: 2rem;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(250, 204, 21, 0.15);
    border: 2px solid var(--book-leather);
}

/* Game Section - Sacred Relic */
.sacred-relic {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
}

.sacred-relic-header {
    text-align: center;
    margin-bottom: 60px;
}

.game-container {
    background-color: var(--book-dark);
    border: 4px solid var(--gold-deep);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(250, 204, 21, 0.1), inset 0 0 50px rgba(11, 11, 11, 0.9);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('assets/images/parchment-texture-dark.jpg');
    background-blend-mode: overlay;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -10px; right: -10px; bottom: -10px; left: -10px;
    border: 1px solid var(--gold-primary);
    border-radius: 26px;
    opacity: 0.3;
    pointer-events: none;
}

.game-frame {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold-glow);
    box-shadow: inset 0 0 20px #000;
    background-color: #000;
}

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

/* Feature Sections - Book Chapters */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--book-leather);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212, 160, 23, 0.15);
    border-color: var(--gold-deep);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Internal Pages System - Scroll Layouts */
.page-header {
    text-align: center;
    padding: 80px 0 40px;
    background-image: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--book-leather);
}

.content-scroll {
    max-width: 900px;
    margin: 60px auto;
    background-color: var(--bg-secondary);
    border: 2px solid var(--book-leather);
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(59, 42, 26, 0.3);
    position: relative;
}

.content-scroll::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid var(--book-parchment);
    border-radius: 8px;
    opacity: 0.3;
    pointer-events: none;
}

.content-scroll h2 {
    color: var(--gold-primary);
    border-bottom: 1px solid var(--book-dark);
    padding-bottom: 15px;
    margin-top: 40px;
}

.content-scroll h2:first-child {
    margin-top: 0;
}

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

.content-scroll li {
    margin-bottom: 10px;
}

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

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

.form-group label {
    color: var(--gold-glow);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--book-leather);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-deep);
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.2);
}

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

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--gold-deep);
    padding: 60px 0 20px;
    margin-top: 60px;
    background-image: linear-gradient(rgba(11,11,11,0.9), rgba(11,11,11,0.95)), url('assets/images/dark-leather-texture.jpg');
}

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

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
    max-width: 400px;
}

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

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--book-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    color: var(--gold-primary);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

#nav-checkbox {
    display: none;
}