/* Variables and Theming */
:root {
    --primary-color: #8B0000; /* Deep Crimson */
    --primary-hover: #a50000;
    --secondary-color: #2F4F4F; /* Slate Grey */
    --bg-dark: #0a0e17; /* Very dark blue/grey for that intelligence feel */
    --bg-darker: #05070a;
    --text-light: #f5f5dc; /* Bone White */
    --text-muted: #a0aab5;
    --accent: #ff3333;
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.5px;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utilities */
.accent {
    color: var(--primary-color);
}
.sic-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    vertical-align: middle;
    margin-left: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../assets/hero-bg.png') center/cover no-repeat;
    text-align: center;
    padding: 0 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.3) 0%, rgba(10, 14, 23, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.headline {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Layout Blocks */
.section-dark {
    background-color: var(--bg-darker);
    padding: 6rem 0;
}

.section-light {
    background-color: #121826;
    padding: 6rem 0;
}

.section-accent {
    background-color: var(--secondary-color);
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem 0 2rem 0;
}

.divider.center {
    margin: 1rem auto 2rem auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Specific Section Styles */
.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Mock Terminal */
.mock-terminal {
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    color: #0f0;
    font-size: 0.9rem;
    min-height: 200px;
}

.terminal-body .typing {
    border-right: 2px solid #0f0;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

/* Newsroom */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--bg-dark);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(139,0,0,0.1);
}

.news-card.highlight {
    background: linear-gradient(145deg, var(--bg-dark), #1a0a0a);
    border-color: rgba(139,0,0,0.3);
}

.news-meta {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
}

.read-more:hover { color: var(--primary-color); }

/* Methodology */
.stats-row {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Interactive Diagram Placeholder */
.interactive-diagram {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.node {
    position: absolute;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
}

.node.core {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,0,0,0.2);
    border-color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 30px rgba(139,0,0,0.3);
}

.node.sub { width: 120px; z-index: 1; font-size: 0.85rem; }
.node.sub.n1 { top: 10%; left: 20%; }
.node.sub.n2 { top: 10%; right: 20%; }
.node.sub.n3 { bottom: 10%; left: 20%; }
.node.sub.n4 { bottom: 10%; right: 20%; }

.interactive-diagram:hover .node.sub { transform: scale(1.05); border-color: var(--text-light); }
.interactive-diagram:hover .node.core { transform: scale(1.1); }

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    height: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-sidebar {
    width: 250px;
    background: #11151f;
    padding: 2rem 0;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.dashboard-sidebar ul { list-style: none; }
.dashboard-sidebar li {
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.dashboard-sidebar li:hover { background: rgba(255,255,255,0.02); color: var(--text-light); }
.dashboard-sidebar li.active { border-left: 3px solid var(--primary-color); color: var(--text-light); background: rgba(139,0,0,0.1); }

.dashboard-main {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-bar input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1rem;
    color: var(--text-light);
    border-radius: 4px;
}

.search-bar input:focus { outline: none; border-color: var(--primary-color); }
.btn-search {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.data-vis-placeholder {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chart-bar {
    flex: 1;
    background: var(--secondary-color);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.data-vis-placeholder:hover .chart-bar { background: var(--primary-color); opacity: 0.8; }

/* Footer */
.main-footer {
    background: #030508;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(1.5);
}

.compliance-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer-col ul { list-style: none; }
.footer-col li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(139,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.vault-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vault-icon { height: 40px; }

.vault-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.form-group input, .form-group textarea {
    width: 100%;
    background: #05070a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem;
    color: var(--text-light);
    font-family: var(--font-mono);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width { width: 100%; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .headline { font-size: 3rem; }
    .main-nav { display: none; } /* Simplified mobile handling for now */
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .dashboard-mockup { flex-direction: column; height: auto; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
}
