/* Core Styling & Typography */
:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050505;
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-gold: #fbbf24;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.text-primary {
    color: var(--accent-blue) !important;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.highlighter-text {
    background-color: rgba(251, 191, 36, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Layout Elements */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-darker) 100%);
    position: relative;
}

.codex-content {
    max-width: 900px; /* Constrains reading width for presentation feel */
    margin: 0 auto;
}

.codex-section {
    position: relative;
    padding-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.accent-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, transparent 100%);
    opacity: 1;
    width: 100px;
    margin-left: 0;
}

/* Interactive & Visual Components */
.quote-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.scroll-indicator {
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Scrollbar Customization for Dark Mode */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}