/* ==================== APOCALYPSE DESIGN TOKENS ==================== */
:root {
    --apoc-black: #08080a;
    --apoc-dark: #0f1013;
    --apoc-charcoal: #17191d;
    --apoc-light: #d1d5db;
    
    /* Post-apocalyptic Warning Colors */
    --hazard-yellow: #facc15;
    --hazard-yellow-glow: rgba(250, 204, 21, 0.2);
    --hazard-orange: #f97316;
    --hazard-orange-glow: rgba(249, 115, 22, 0.25);
    --hazard-red: #ef4444;
    --hazard-red-glow: rgba(239, 68, 68, 0.35);
    
    --cyber-cyan: #06b6d4;
    --cyber-cyan-glow: rgba(6, 182, 212, 0.2);
    --zombie-green: #22c55e;
    --zombie-green-glow: rgba(34, 197, 94, 0.2);
    
    /* Fonts */
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-typewriter: 'Special Elite', 'Share Tech Mono', monospace;
    --font-radar: 'Share Tech Mono', monospace;
    
    --transition-gritty: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
}

/* ==================== GLOBAL BASE & ENVIRONMENT ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--apoc-black);
    color: var(--apoc-light);
    font-family: var(--font-heading);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    letter-spacing: 0.2px;
}

/* Biohazard Background Scanline & Atmosphere */
.biohazard-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(240, 68, 68, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 68, 68, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(5, 5, 6, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Blood & Distressed Overlay Filter */
.blood-splatter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.02) 0%, transparent 35%);
    pointer-events: none;
    z-index: 2;
}

/* Container */
.container {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 10;
}

/* ==================== CUSTOM AIRPLANE CURSOR ==================== */
/* Replaced with emergency red-amber tactical crosshair cursor! */
html, body {
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23ef4444' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm1-13h-2v4H7v2h4v4h2v-4h4v-2h-4z'/%3E%3C/svg%3E") 12 12, auto;
}

/* Standard Hand cursor on all buttons for visual responsiveness */
a, button, .btn-radar {
    cursor: pointer !important;
}

/* ==================== TACTICAL HAZARD HEADER ==================== */
.tactical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(239, 68, 68, 0.3);
    padding-bottom: 12px;
}

.warning-ticker {
    font-family: var(--font-radar);
    color: var(--hazard-red);
    font-weight: 900;
    font-size: 0.85rem;
    animation: blink-warning 0.8s infinite alternate;
}

.dossier-tag {
    font-family: var(--font-typewriter);
    color: var(--apoc-light);
    opacity: 0.65;
    font-size: 0.78rem;
    margin-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
}

.clock-display {
    font-family: var(--font-radar);
    color: var(--hazard-yellow);
    font-size: 0.95rem;
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.dossier-ver {
    font-family: var(--font-typewriter);
    color: #6b7280;
    font-size: 0.78rem;
    margin-left: 15px;
}

/* ==================== HERO DOSSIER BRANDING ==================== */
.hero-dossier {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 10px;
}

.dossier-branding {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dossier-badge {
    font-family: var(--font-radar);
    color: var(--hazard-orange);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid var(--hazard-orange);
    padding: 4px 10px;
    align-self: flex-start;
    background: rgba(249, 115, 22, 0.05);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
}

.stencil-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    letter-spacing: -2px;
    position: relative;
}

.dossier-subtitle {
    font-family: var(--font-typewriter);
    font-size: 1.3rem;
    color: var(--hazard-yellow);
    opacity: 0.85;
}

.stamps-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Tactical Ink Stamps */
.stamp {
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 900;
    border: 3px double;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transform: rotate(-2deg);
    display: inline-block;
    text-transform: uppercase;
}

.stamp-red {
    color: var(--hazard-red);
    border-color: var(--hazard-red);
    background: rgba(239, 68, 68, 0.05);
    text-shadow: 0 0 2px rgba(239, 68, 68, 0.3);
}

.stamp-yellow {
    color: var(--hazard-yellow);
    border-color: var(--hazard-yellow);
    background: rgba(250, 204, 21, 0.05);
    transform: rotate(1deg);
}

.stamp-cyan {
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
    background: rgba(6, 182, 212, 0.05);
    transform: rotate(-1deg);
}

/* ==================== GRITTY SCANNER FRAME ==================== */
.scanner-frame {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: #000000;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.scanner-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    filter: sepia(0.2) contrast(1.1) brightness(0.9);
    transition: var(--transition-gritty);
}

.scanner-frame:hover .scanner-visual {
    opacity: 0.9;
    filter: sepia(0) contrast(1.1) brightness(0.95);
    transform: scale(1.02);
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, transparent, var(--hazard-red), transparent);
    box-shadow: 0 0 12px var(--hazard-red);
    z-index: 5;
    animation: scan-loop 6s infinite linear;
    pointer-events: none;
}

/* Bracket Trims */
.bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    z-index: 6;
    pointer-events: none;
}
.bracket.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.bracket.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.bracket.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.bracket.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.hud-overlay-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-radar);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(10, 10, 12, 0.85);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.hud-overlay-text .warning-text {
    color: var(--hazard-red);
    font-weight: 900;
    animation: blink-warning 0.6s infinite alternate;
}

/* ==================== GRITTY DOSSIER PANELS ==================== */
.dossier-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.full-width {
    grid-column: 1 / -1;
}

.dossier-panel {
    background: var(--apoc-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.dossier-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hazard-orange), transparent);
}

.panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 i {
    font-size: 1.25rem;
}

.typewriter-text {
    font-family: var(--font-typewriter);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b7bdc6;
    margin-bottom: 12px;
}

.typewriter-text strong {
    color: white;
    font-weight: bold;
}

.inspiration-box {
    border-left: 3px solid var(--hazard-yellow);
    padding-left: 15px;
    margin: 10px 0;
}

/* ==================== OPERATIONAL SYSTEM FEATURES ==================== */
.specs-deck {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-card {
    background: var(--apoc-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-gritty);
}

.spec-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.spec-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.spec-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.spec-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
}

.text-cyan { color: var(--cyber-cyan); }
.text-green { color: var(--zombie-green); }
.text-yellow { color: var(--hazard-yellow); }
.text-orange { color: var(--hazard-orange); }

/* ==================== INTERACTIVE SENSORY RADAR SIMULATOR ==================== */
.radar-sandbox {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: center;
}

.radar-explanation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-radar {
    flex: 1;
    min-width: 140px;
    background: var(--apoc-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--apoc-light);
    font-family: var(--font-radar);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-gritty);
}

.btn-radar:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-radar.btn-noise {
    border-color: var(--hazard-yellow);
    color: var(--hazard-yellow);
}

.btn-radar.btn-noise:hover {
    background: var(--hazard-yellow);
    color: var(--apoc-black);
    box-shadow: 0 0 15px var(--hazard-yellow-glow);
}

.btn-radar.btn-weapon {
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
}

.btn-radar.btn-weapon:hover {
    background: var(--cyber-cyan);
    color: var(--apoc-black);
    box-shadow: 0 0 15px var(--cyber-cyan-glow);
}

.btn-radar.btn-reset {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.console-sub-log {
    margin-top: 15px;
    background: #030304;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-radar);
    font-size: 0.78rem;
    color: var(--zombie-green);
    min-height: 40px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.console-sub-log.log-alert {
    color: var(--hazard-red);
    animation: blink-warning 1s infinite alternate;
}

/* Radar Visual Display Container */
.radar-display {
    width: 330px;
    height: 330px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-hud-ring-1 {
    position: absolute;
    width: 104%;
    height: 104%;
    border: 1px dashed rgba(34, 197, 94, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.radar-hud-ring-2 {
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid rgba(34, 197, 94, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.radar-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(3, 10, 5, 0.95) 75%);
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.radar-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, transparent 20%, rgba(34, 197, 94, 0.08) 21%, transparent 22%),
        radial-gradient(circle, transparent 50%, rgba(34, 197, 94, 0.08) 51%, transparent 52%),
        radial-gradient(circle, transparent 80%, rgba(34, 197, 94, 0.08) 81%, transparent 82%);
    pointer-events: none;
}

.radar-sweep-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 150px;
    background: linear-gradient(100deg, rgba(34, 197, 94, 0.3) 0%, transparent 60%);
    transform-origin: top left;
    transform: translate(-100%, -100%);
    z-index: 2;
    animation: radar-rotate-sweep 5s linear infinite;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

/* Radar Dots (Blips) */
.blip {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
    transition: var(--transition-gritty);
}

.blip.player-blip {
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
    transform: translate(-50%, -50%);
}

.blip.zombie-blip {
    width: 8px;
    height: 8px;
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    transform: translate(-50%, -50%);
}

/* Pulse animation when inactive */
.blip.zombie-blip::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: blip-pulse-slow 2.5s infinite;
}

/* Hard positions */
.zombie-blip.zb-1 { top: 22%; left: 32%; }
.zombie-blip.zb-2 { top: 68%; left: 74%; }
.zombie-blip.zb-3 { top: 38%; left: 82%; }

/* Alerted Hostiles class */
.blip.zombie-blip.hostile-aggro {
    background: var(--hazard-red) !important;
    box-shadow: 0 0 15px var(--hazard-red) !important;
    width: 10px;
    height: 10px;
}
.blip.zombie-blip.hostile-aggro::after {
    animation: blip-pulse-fast 0.6s infinite !important;
}

/* Sound Wave expanding ring graphic */
.radar-soundwave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0px;
    height: 0px;
    border: 2px solid var(--hazard-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.radar-soundwave-ring.expanding {
    animation: wave-expand 1.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* ==================== STRATEGY ROADMAP SECTIONS ==================== */
.roadmap-deck {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.roadmap-card {
    background: var(--apoc-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.roadmap-card .num {
    font-family: var(--font-radar);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.roadmap-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.roadmap-card p {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

.text-yellow-border {
    border: 1px dashed var(--hazard-yellow) !important;
    background: rgba(250, 204, 21, 0.02) !important;
}

/* ==================== TACTICAL HAZARD FOOTER ==================== */
.tactical-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    margin-top: 10px;
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: #4b5563;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes blink-warning {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes scan-loop {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes radar-rotate-sweep {
    0% { transform: translate(-100%, -100%) rotate(0deg); }
    100% { transform: translate(-100%, -100%) rotate(360deg); }
}

@keyframes blip-pulse-slow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.2); opacity: 0; }
}

@keyframes blip-pulse-fast {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes wave-expand {
    0% { width: 0px; height: 0px; opacity: 0.9; border-width: 3px; }
    90% { opacity: 0.45; }
    100% { width: 330px; height: 330px; opacity: 0; border-width: 1px; }
}

/* Responsive Parameters */
@media (max-width: 1024px) {
    .hero-dossier {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .dossier-content {
        grid-template-columns: 1fr;
    }
    .specs-deck {
        grid-template-columns: 1fr;
    }
    .radar-sandbox {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .roadmap-deck {
        grid-template-columns: repeat(2, 1fr);
    }
    .stencil-title {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {
    .tactical-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .roadmap-deck {
        grid-template-columns: 1fr;
    }
}
