/* Protocol APEX // Global Design System & Styles */

:root {
    /* Color Palette */
    --bg-dark: hsl(240, 30%, 3%);
    --bg-dark-rgb: 8, 8, 15;
    --bg-panel: hsla(240, 25%, 6%, 0.75);
    --border-color: hsla(180, 100%, 50%, 0.15);
    --border-highlight: hsla(180, 100%, 50%, 0.4);
    
    --neon-cyan: hsl(180, 100%, 50%);
    --neon-cyan-glow: hsla(180, 100%, 50%, 0.3);
    --neon-magenta: hsl(340, 100%, 50%);
    --neon-magenta-glow: hsla(340, 100%, 50%, 0.3);
    --neon-purple: hsl(270, 100%, 60%);
    --neon-purple-glow: hsla(270, 100%, 60%, 0.3);
    
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(240, 10%, 70%);
    --text-muted: hsl(240, 10%, 45%);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Background Cyber Grid Overlay */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(18, 18, 30, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 30, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

.cyber-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 90%);
}

/* Ambient Moving Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.orb-1 {
    top: 10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--neon-cyan);
    animation: floatOrb 30s infinite alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--neon-magenta);
    animation: floatOrb 40s infinite alternate-reverse;
}

.orb-3 {
    top: 40%;
    left: 60%;
    width: 40vw;
    height: 40vw;
    background: var(--neon-purple);
    animation: floatOrb 25s infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.15); }
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--border-highlight);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 15px var(--neon-cyan-glow);
}

.glass-panel.highlight-border {
    border-color: var(--neon-magenta);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 15px var(--neon-magenta-glow);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: hsl(240, 10%, 20%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

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

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
    animation: flash 1.5s infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.nav-link svg {
    width: 14px;
    height: 14px;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signal-status {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-status .bar {
    width: 3px;
    background-color: var(--neon-magenta);
    border-radius: 1px;
}
.bar-1 { height: 25%; }
.bar-2 { height: 50%; }
.bar-3 { height: 75%; }
.bar-4 { height: 100%; animation: networkFlux 1s infinite alternate; }

@keyframes networkFlux {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-magenta);
    letter-spacing: 1px;
}

.audio-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.audio-btn svg {
    width: 16px;
    height: 16px;
}

.audio-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 8% 4rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.12;
    transform: scale(1.05);
    filter: saturate(1.2) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(5, 5, 10, 0.4) 50%, var(--bg-dark) 100%);
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.cyber-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    background: rgba(255, 0, 85, 0.08);
}

.neon-border-red {
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta-glow);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.1);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.glitch-text {
    position: relative;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-magenta), 0 2px var(--neon-cyan);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 5px, 0); }
    30% { clip: rect(27px, 9999px, 115px, 0); }
    40% { clip: rect(73px, 9999px, 29px, 0); }
    50% { clip: rect(118px, 9999px, 141px, 0); }
    60% { clip: rect(9px, 9999px, 53px, 0); }
    70% { clip: rect(138px, 9999px, 82px, 0); }
    80% { clip: rect(54px, 9999px, 120px, 0); }
    90% { clip: rect(22px, 9999px, 98px, 0); }
    100% { clip: rect(67px, 9999px, 43px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(28px, 9999px, 9px, 0); }
    22% { clip: rect(122px, 9999px, 137px, 0); }
    33% { clip: rect(5px, 9999px, 83px, 0); }
    44% { clip: rect(94px, 9999px, 58px, 0); }
    55% { clip: rect(41px, 9999px, 122px, 0); }
    66% { clip: rect(130px, 9999px, 10px, 0); }
    77% { clip: rect(63px, 9999px, 91px, 0); }
    88% { clip: rect(18px, 9999px, 129px, 0); }
    100% { clip: rect(105px, 9999px, 73px, 0); }
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.time-stamp {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    border-bottom: 1px dashed var(--neon-cyan);
    padding: 0 4px;
}

/* Countdown Widget */
.countdown-panel {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 3.5rem;
    padding: 1.5rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
}

.panel-dot.warning {
    background-color: var(--neon-magenta);
    box-shadow: 0 0 6px var(--neon-magenta);
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
}

.timer-label {
    font-size: 0.65rem;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.timer-divider {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-highlight);
    margin-bottom: 1rem;
}

.sync-progress-bar-wrapper {
    height: 6px;
    background: hsla(240, 10%, 15%, 0.8);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.sync-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.sync-percent {
    position: absolute;
    right: 10px;
    top: -20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

/* Button Mechanics */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cyber-btn {
    position: relative;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--neon-cyan);
    background: #fff;
}

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

.secondary-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    background: rgba(0, 240, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    width: 100%;
    max-width: 1000px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.stat-lbl {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ==========================================
   TIMELINE SECTION
   ========================================== */
.timeline-section, .threat-section, .terminal-section-wrapper {
    padding: 6rem 8%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-num {
    color: var(--neon-cyan);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* Timeline Layout */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    position: relative;
}

.timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--border-color);
    z-index: 2;
    transition: all var(--transition-normal);
}

.timeline-line {
    width: 2px;
    background: var(--border-color);
    flex-grow: 1;
    position: absolute;
    top: 16px;
    bottom: -48px;
    z-index: 1;
    transition: background var(--transition-normal);
}

.timeline-card {
    padding: 2rem;
    transform: translateX(10px);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

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

.timeline-item.active-past .timeline-line {
    background: var(--neon-cyan);
}

.timeline-item.active-past .timeline-card {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.active-past .timeline-card.highlight-border .timeline-dot {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 12px var(--neon-magenta);
    background: var(--neon-magenta);
}

.timeline-item.active-past .timeline-card.highlight-border .timeline-line {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
}

.phase-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 0.75rem;
}

.phase-tag.alert {
    color: var(--neon-magenta);
}

.phase-tag.pending {
    color: var(--text-muted);
}

.phase-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.phase-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.phase-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==========================================
   THREAT VECTOR CALCULATOR
   ========================================== */
.threat-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.main-calc-card {
    padding: 2.5rem;
}

.panel-header.border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.25rem;
}

.warning-icon {
    width: 18px;
    height: 18px;
    color: var(--neon-magenta);
}

.calc-body {
    margin-top: 1.5rem;
    position: relative;
}

.calc-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.system-meta-display {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label svg {
    width: 15px;
    height: 15px;
}

.meta-val {
    color: #fff;
}

.text-neon-blue {
    color: var(--neon-cyan);
}

/* Scan Loading Overlay overlay */
.scan-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 10;
    transition: opacity var(--transition-normal);
}

.scan-loader.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-txt {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--neon-cyan);
    transition: width 0.1s linear;
}

/* Result Card */
.result-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.result-placeholder {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    opacity: 0.2;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.1; }
    100% { transform: scale(1.05); opacity: 0.3; }
}

.result-placeholder p {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    max-width: 280px;
}

.result-placeholder.hidden {
    display: none;
}

.result-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn var(--transition-normal);
}

.result-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress ring SVG */
.gauge-container {
    position: relative;
    margin-bottom: 2rem;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.8s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.gauge-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.gauge-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
}

.gauge-lbl {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.threat-outcome {
    text-align: center;
    margin-bottom: 2rem;
}

.outcome-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--neon-magenta);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.outcome-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
}

.remediation-box {
    background: rgba(255, 0, 85, 0.04);
    border: 1px solid rgba(255, 0, 85, 0.15);
    border-radius: 6px;
    padding: 1.25rem;
    width: 100%;
}

.remediation-box .box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-magenta);
    margin-bottom: 0.5rem;
}

.remediation-box .info-icon {
    width: 14px;
    height: 14px;
}

.remediation-box .box-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   TERMINAL WINDOW SECTION
   ========================================== */
.terminal-window {
    width: 100%;
    height: 480px;
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.terminal-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(18, 18, 30, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.close { background: #ff5f56; }
.control-dot.minimize { background: #ffbd2e; }
.control-dot.maximize { background: #27c93f; }

.terminal-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.terminal-status {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.terminal-status svg {
    width: 12px;
    height: 12px;
}

.blinking-icon {
    animation: flash 1s infinite;
}

.terminal-display {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.5;
}

.log-line {
    word-break: normal;
    overflow-wrap: break-word;
}

.text-muted { color: var(--text-muted); }
.text-success { color: hsl(120, 80%, 45%); }
.text-warning { color: hsl(45, 100%, 50%); }
.text-danger { color: var(--neon-magenta); }
.text-info { color: var(--neon-cyan); }

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.prompt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-right: 0.75rem;
}

#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background: rgba(3, 3, 7, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 4.5rem 8% 2.5rem;
    z-index: 10;
    position: relative;
}

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

.footer-about .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-about .footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 440px;
}

.footer-links h4, .footer-telemetry h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* Telemetry Micro-Graph */
.mini-graph {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.02);
}

.graph-bar {
    flex-grow: 1;
    background: var(--neon-cyan);
    opacity: 0.8;
    border-radius: 1px;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

.timestamp-footer {
    font-family: var(--font-mono);
}

/* Terminal Grid Coverage Progress Bar */
.terminal-progress-container {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.progress-lbl {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-lbl svg {
    width: 14px;
    height: 14px;
    color: var(--neon-magenta);
}

.progress-val {
    color: var(--neon-magenta);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-magenta-glow);
}

.terminal-progress-bar-wrapper {
    height: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-magenta));
    box-shadow: 0 0 10px var(--neon-magenta-glow);
    border-radius: 4px;
    width: 98.92%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-normal);
}

/* ==========================================
   RESPONSIVE STYLING (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* In production might trigger toggle, keep simpler for landing page */
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .threat-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.2rem, 5.5vw, 1.6rem);
        letter-spacing: 1px;
    }

    .system-meta-display {
        padding: 1rem;
        gap: 1rem;
    }

    .meta-row {
        font-size: 0.78rem;
    }

    .timeline-section, .threat-section, .terminal-section-wrapper {
        padding: 4rem 5%;
    }

    .main-calc-card, .result-card {
        padding: 1.5rem 1.25rem;
    }

    .timeline-card {
        transform: none !important;
        padding: 1.5rem 1.25rem;
    }

    .cyber-badge {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding: 0.4rem 1rem;
    }

    .main-title {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }

    .hero-section {
        padding-top: 8rem;
        min-height: auto;
        justify-content: flex-start;
    }

    .quick-stats-bar {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .timeline-item {
        grid-template-columns: 30px 1fr;
        gap: 1rem;
    }
    
    .timeline-indicator {
        align-items: flex-start;
    }
    
    .timeline-line {
        left: 7px;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .timer-number {
        font-size: 1.85rem;
    }
    
    .timer-divider {
        font-size: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .status-label {
        display: none;
    }
    .header-status {
        gap: 0.5rem;
    }
}
