@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

@font-face {
    font-family: 'Unison';
    src: url('https://gochred.github.io/rogue/Unison-Pro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --brand-red: #C9002B;
    --brand-blue: #004893;
    --brand-light: #f4f4f5;
    --brand-panel: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--brand-light);
    color: #111827; /* Gray-900 */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Tactical to Corporate Typography Mapping */
h1, h2, h3, h4, .font-tactical {
    font-family: 'Unison', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: normal; /* Unison is natively bold */
}

.font-data {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tactical UI Elements */
.clip-angled {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.clip-angled-reverse {
    clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.clip-bottom-left {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.hud-border {
    position: relative;
    border: 1px solid rgba(0, 72, 147, 0.15); /* Tinted with brand blue */
}

.hud-border::before, .hud-border::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--brand-red);
    transition: all 0.3s ease;
}

.hud-border::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-border::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.group:hover .hud-border::before { width: 16px; height: 16px; }
.group:hover .hud-border::after { width: 16px; height: 16px; }

/* Complex Animations */
.blur-reveal {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05) translateY(20px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.blur-reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Tactical Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glass Panels */
.glass-panel {
    background: var(--brand-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 72, 147, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 72, 147, 0.05);
}

/* Image Zoom on Hover */
.zoom-wrapper { overflow: hidden; }
.zoom-img { transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.group:hover .zoom-img { transform: scale(1.05); }

/* Scanline Overlay */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.scanline-overlay::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(201, 0, 43, 0.4), transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f4f4f5; }
::-webkit-scrollbar-thumb { background: #004893; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }
