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

:root {
    --primary-color: #8b0000;
    --secondary-color: #ff0000;
    --accent-color: #ffaa00;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.95);
    --border-color: #8b0000;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: var(--text-light);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    background: rgba(20, 20, 20, 0.98);
    border-bottom: 3px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(139, 0, 0, 0.5);
}

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

.logo h1 {
    color: var(--secondary-color);
    font-size: 2em;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.tagline {
    color: var(--accent-color);
    font-size: 0.9em;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
    border-color: var(--border-color);
    background: rgba(139, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 3px solid var(--border-color);
}

.hero-title {
    font-size: 4em;
    color: var(--secondary-color);
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3em;
    color: var(--secondary-color);
    font-weight: bold;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-light);
}

/* Main Content */
.main-content {
    padding: 50px 0;
}

.intro-section {
    padding: 50px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.2em;
    max-width: 900px;
    margin: 20px auto;
    line-height: 1.8;
}

/* Documents Grid */
.documents-grid {
    padding: 50px 0;
}

.documents-grid h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
}

.doc-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.doc-card.featured {
    border: 3px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(20, 20, 20, 0.95) 100%);
}

.doc-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.doc-card h3 {
    color: var(--secondary-color);
    font-size: 2em;
    margin-bottom: 15px;
}

.doc-stats {
    color: var(--accent-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 20px;
}

.doc-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.doc-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
}

.doc-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* System Overview */
.system-overview {
    padding: 50px 0;
    background: rgba(139, 0, 0, 0.1);
}

.system-overview h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.overview-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.overview-card h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.overview-card p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Key Concepts */
.key-concepts {
    padding: 50px 0;
}

.key-concepts h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
}

.concept-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.concept-item {
    background: var(--bg-card);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    border-radius: 5px;
}

.concept-item h4 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.concept-item p {
    font-size: 1.05em;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.cta-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 20px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
}

.cta-button.primary {
    background: var(--secondary-color);
    font-size: 1.3em;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* Footer */
.main-footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 3px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.footer-bottom p {
    color: var(--text-light);
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.5em;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2em;
    }
}

/* Page-specific styles */
.page-header {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 3px solid var(--border-color);
}

.page-title {
    font-size: 3em;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.5em;
    color: var(--accent-color);
}

.content-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.content-section h2 {
    color: var(--secondary-color);
    font-size: 2em;
    margin: 40px 0 20px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 20px;
}

.content-section h3 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin: 30px 0 15px;
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin: 20px 0 20px 40px;
}

.content-section li {
    margin: 10px 0;
    line-height: 1.8;
}

.warning-box {
    background: rgba(139, 0, 0, 0.2);
    border: 3px solid var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.fact-box {
    background: rgba(0, 100, 0, 0.2);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.evidence-box {
    background: rgba(0, 0, 139, 0.2);
    border: 2px solid #4444ff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.quote {
    font-style: italic;
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 20px 0;
    font-size: 1.2em;
}

.number-highlight {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.2em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(40, 40, 40, 0.5);
}

th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
}

tr:hover {
    background: rgba(139, 0, 0, 0.1);
}

.source-link {
    color: #4444ff;
    text-decoration: none;
    border-bottom: 1px dotted #4444ff;
}

.source-link:hover {
    color: #6666ff;
    border-bottom: 1px solid #6666ff;
}