:root {
    --deep-navy: #0B1220;
    --deep-navy-light: #152238;
    --investigator-blue: #1D4ED8;
    --investigator-blue-hover: #2563EB;
    --evidence-cyan: #22D3EE;
    --evidence-cyan-glow: rgba(34, 211, 238, 0.2);
    --case-gold: #FBBF24;
    --paper-white: #F8FAFC;
    --steel-gray: #6B7280;
    --steel-gray-dark: #374151;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--deep-navy);
}

body {
    font-family: var(--font-main);
    color: var(--paper-white);
    line-height: 1.6;
    background-color: var(--deep-navy);
    background-image: 
        linear-gradient(rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.9)),
        radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.sys-title {
    font-size: 2.5rem;
    color: var(--paper-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.sys-desc {
    color: var(--steel-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin-top: 1rem;
}

.sys-divider {
    height: 2px;
    width: 60px;
    background: var(--investigator-blue);
    position: relative;
}

.sys-divider::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -2px;
    width: 6px;
    height: 6px;
    background: var(--evidence-cyan);
}

.sys-divider.center {
    margin: 0 auto;
}

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

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.center .sys-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--investigator-blue);
    color: var(--paper-white);
    border: 1px solid var(--investigator-blue);
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background-color: var(--investigator-blue-hover);
    border-color: var(--evidence-cyan);
    box-shadow: 0 0 15px var(--evidence-cyan-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--paper-white);
    border: 1px solid var(--steel-gray);
}

.btn-secondary:hover {
    border-color: var(--evidence-cyan);
    color: var(--evidence-cyan);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Layout Sections */
.sys-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}

.dark-alt {
    background-color: rgba(11, 18, 32, 0.4);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

/* Header & Warning Bar */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.top-warning-bar {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 12px 20px;
    font-family: var(--font-main);
    border-bottom: 2px solid var(--evidence-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-header {
    width: 100%;
    background-color: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
    position: relative;
}

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

.brand-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--paper-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--evidence-cyan);
    box-shadow: 0 0 8px var(--evidence-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--steel-gray);
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--evidence-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--paper-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--deep-navy) 0%, transparent 100%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    animation: scan 8s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sys-status {
    font-family: var(--font-mono);
    color: var(--evidence-cyan);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sys-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--evidence-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-headline {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight-cyan {
    color: var(--evidence-cyan);
}

.hero-subheadline {
    font-size: 1.2rem;
    color: var(--steel-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Game Section */
.game-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border: 1px solid var(--steel-gray-dark);
    position: relative;
}

.game-wrapper::before, .game-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--evidence-cyan);
    pointer-events: none;
}

.game-wrapper::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.game-wrapper::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.game-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

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

@media (min-width: 768px) {
    .game-wrapper { width: 90%; }
}

@media (min-width: 1024px) {
    .game-wrapper { width: 75%; }
}

/* Case Board */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--deep-navy-light);
    border: 1px solid var(--steel-gray-dark);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--steel-gray);
}

.case-card::top {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--investigator-blue);
    transition: background-color 0.3s ease;
}

.case-card:hover::top {
    background-color: var(--evidence-cyan);
}

.card-img-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid var(--steel-gray-dark);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: 0.3s;
}

.case-card:hover .card-img {
    opacity: 1;
    filter: grayscale(0%);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(0,0,0,0.8);
    border: 1px solid;
    font-weight: 700;
}

.status-badge.gold { color: var(--case-gold); border-color: var(--case-gold); }
.status-badge.cyan { color: var(--evidence-cyan); border-color: var(--evidence-cyan); }
.status-badge.blue { color: var(--investigator-blue); border-color: var(--investigator-blue); }
.status-badge.gray { color: var(--paper-white); border-color: var(--steel-gray); }

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--case-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card-content p {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* Evidence Files */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.evidence-card {
    background: rgba(29, 78, 216, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.evidence-card::before {
    content: '+';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--evidence-cyan);
    font-family: var(--font-mono);
    opacity: 0.5;
}

.evidence-icon {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 1px solid var(--steel-gray-dark);
    filter: sepia(100%) hue-rotate(180deg) saturate(200%) brightness(80%);
}

.evidence-card h4 {
    color: var(--paper-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.evidence-card p {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--steel-gray-dark);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--deep-navy);
    border: 2px solid var(--steel-gray);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-dot.glow {
    border-color: var(--evidence-cyan);
    background: var(--evidence-cyan);
    box-shadow: 0 0 10px var(--evidence-cyan-glow);
}

.timeline-content {
    background: var(--deep-navy-light);
    padding: 1.5rem;
    border: 1px solid var(--steel-gray-dark);
}

.timeline-content.border-glow {
    border-color: rgba(34, 211, 238, 0.5);
}

.time-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--steel-gray);
    display: block;
    margin-bottom: 0.5rem;
}

.time-label.highlight {
    color: var(--evidence-cyan);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--paper-white);
}

.timeline-content p {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* Progress Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--evidence-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-shadow: 0 0 20px var(--evidence-cyan-glow);
}

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

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    padding: 20px;
}

.visual-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--investigator-blue);
    opacity: 0.8;
}

.corner-accents::before, .corner-accents::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--evidence-cyan);
    pointer-events: none;
}

.corner-accents::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-accents::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--steel-gray-dark);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--paper-white);
    font-size: 1.1rem;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--evidence-cyan);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--steel-gray);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info .sys-desc {
    color: var(--paper-white);
    font-size: 1.2rem;
    font-weight: 500;
}

.direct-contact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(34, 211, 238, 0.05);
    border-left: 4px solid var(--evidence-cyan);
    border-radius: 4px;
}

.direct-contact .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--paper-white);
    margin-bottom: 0.5rem;
}

.email-text {
    font-family: var(--font-mono);
    color: var(--evidence-cyan);
    user-select: all;
    font-size: 1.2rem;
    font-weight: 700;
}

.tech-form .form-group {
    margin-bottom: 1.5rem;
}

.tech-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--paper-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tech-form input, .tech-form textarea {
    width: 100%;
    background: rgba(21, 34, 56, 0.9);
    border: 1px solid var(--investigator-blue);
    padding: 14px;
    color: var(--paper-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    border-radius: 4px;
}

.tech-form input:focus, .tech-form textarea:focus {
    outline: none;
    border-color: var(--evidence-cyan);
    box-shadow: 0 0 10px var(--evidence-cyan-glow);
}

.form-status {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--evidence-cyan);
}

/* Legal Sections */
.legal-section .legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section .sys-title {
    color: var(--paper-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.legal-content h3 {
    color: var(--evidence-cyan);
    margin: 2.5rem 0 1rem;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content p {
    color: var(--paper-white);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Footer */
.main-footer {
    background-color: var(--deep-navy);
    border-top: 2px solid var(--investigator-blue);
    padding-top: 4rem;
}

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

.footer-desc {
    color: var(--paper-white);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-mono);
    color: var(--evidence-cyan);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a, .plain-text-email {
    color: #E2E8F0;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--evidence-cyan);
    text-shadow: 0 0 8px var(--evidence-cyan-glow);
}

.plain-text-email {
    font-family: var(--font-mono);
    color: var(--paper-white);
    font-weight: 600;
}

.footer-bottom {
    background-color: #070B14;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    color: var(--steel-gray);
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(11, 18, 32, 0.98);
    border-top: 1px solid var(--investigator-blue);
    padding: 1.5rem 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: bottom 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner .cookie-content {
    max-width: 800px;
    padding: 0 20px;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--steel-gray);
}

.cookie-banner a {
    color: var(--evidence-cyan);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-headline {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .cookie-buttons {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--deep-navy);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--investigator-blue);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}