/* =========================================================================
   DELTA-T PREMIUM TACTICAL CYBERPUNK DASHBOARD DESIGN SYSTEM
   ========================================================================= */

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

:root {
    /* CURATED LUXURY TECH PALETTE (Obsidian space theme with HSL variables) */
    --bg-base: #03060c; /* Deeper space obsidian black */
    --bg-panel: rgba(6, 11, 18, 0.45); /* More translucent liquid glass */
    --bg-panel-hover: rgba(10, 20, 32, 0.7);
    
    --accent-cyan: #00f0ff; /* Electric hyper-cyan */
    --accent-cyan-rgb: 0, 240, 255;
    --accent-indigo: #6272a4; /* Secondary high-tech indigo accent */
    --accent-indigo-rgb: 98, 114, 164;
    --accent-red: #ff2a6d; /* Deep warning ruby red */
    --accent-red-rgb: 255, 42, 109;
    --accent-green: #05ff89; /* High-luminosity system emerald green */
    --accent-green-rgb: 5, 255, 137;
    
    --border-steel: rgba(0, 240, 255, 0.12); /* Subtle glass border */
    --border-steel-hover: rgba(0, 240, 255, 0.4);
    --border-alert: rgba(255, 42, 109, 0.25);
    
    --text-white: #ffffff;
    --text-light: #e4eef6; /* Brighter and cleaner readability */
    --text-muted: #a0b4c3; /* Highly readable secondary text */
    --text-dark: #2b3d4a;
    
    /* TYPOGRAPHY */
    --font-heading: 'Share Tech Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --hdr-height: 80px;
    
    /* Dynamic glass border gradients */
    --card-glow-rgb: 0, 240, 255;
    
    /* Glow variables for shadows and text glows */
    --accent-cyan-glow: rgba(0, 240, 255, 0.35);
    --accent-red-glow: rgba(255, 42, 109, 0.35);
    --accent-green-glow: rgba(5, 255, 137, 0.35);
}

/* =========================================================================
   GLOBAL RESET & UTILITIES
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    background-color: var(--bg-base);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-panel);
    border: 1px solid var(--border-steel);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.3);
}

/* =========================================================================
   BACKGROUND DECORATION LAYERS
   ========================================================================= */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

/* Cyber CRT Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 999;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 998;
    opacity: 0.3;
}

/* =========================================================================
   GLOBAL CYBER HUD LAYOUT
   ========================================================================= */
#cyber-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 90;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hud-corner {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;

    &.top-left { top: var(--hdr-height); left: 20px; }
    &.top-right { top: var(--hdr-height); right: 20px; }
    &.bottom-left { bottom: 20px; left: 20px; }
    &.bottom-right { bottom: 20px; right: 20px; }
}

.corner-crosshair {
    position: relative;
    width: 10px;
    height: 10px;
    border: 1px solid var(--text-dark);
    
    &::before, &::after {
        content: '';
        position: absolute;
        background: var(--text-dark);
    }
    &::before {
        top: 4px; left: -4px;
        width: 16px; height: 1px;
    }
    &::after {
        top: -4px; left: 4px;
        width: 1px; height: 16px;
    }
}

/* Scroll Progress Timeline Gauge */
.hud-scroll-gauge {
    position: absolute;
    left: 25px;
    top: 25vh;
    height: 50vh;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.gauge-header {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 9px;
    color: var(--text-muted);
}

.gauge-track {
    width: 2px;
    height: 75%;
    background: rgba(0, 229, 255, 0.08);
    position: relative;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    
    /* Native CSS Timeline Bindings */
    @supports (animation-timeline: scroll()) {
        animation: grow-progress auto linear;
        animation-timeline: scroll();
    }
}

@keyframes grow-progress {
    from { height: 0%; }
    to { height: 100%; }
}

.gauge-marker {
    font-size: 10px;
    color: var(--accent-cyan);
}

.hud-mouse-panel {
    position: absolute;
    right: 25px;
    top: calc(var(--hdr-height) + 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(9, 13, 16, 0.4);
    padding: 6px 12px;
    border: 1px dashed var(--text-dark);
    border-radius: 3px;
}

/* =========================================================================
   HEADER UI
   ========================================================================= */
.system-header {
    height: var(--hdr-height);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-steel);
    background: rgba(9, 13, 16, 0.75);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, rgba(0, 229, 255, 0) 70%);
    padding: 5px 15px;
    border-radius: 4px;
}

.header-logo {
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 229, 255, 0.35)) !important;
}

.system-status-panel {
    display: flex;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 11px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-steel);
    padding: 4px 12px;
    background: rgba(15, 22, 28, 0.4);
    color: var(--text-muted);
    border-radius: 3px;
    transition: all 0.3s ease;
    
    &.online {
        color: var(--text-white);
        border-color: rgba(0, 240, 255, 0.3);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
    }
}

.audio-svg {
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    
    &.hidden {
        display: none;
    }
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    
    &.blinking {
        animation: blink 1.2s linear infinite;
    }
}

@keyframes blink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

/* =========================================================================
   GLASS PANELS & INTERACTIVE CARDS (Modular Glassmorphism)
   ========================================================================= */
.console-box, .glass-card {
    position: relative;
    /* Liquid glass with dynamic cursor tracking glow */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.05) 0%, var(--bg-panel) 70%);
    border: 1px solid var(--border-steel);
    backdrop-filter: blur(20px);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    transition: background 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-box:hover, .glass-card:hover {
    border-color: var(--border-steel-hover);
    box-shadow: 0 16px 48px rgba(0, 240, 255, 0.15);
    transform: translateY(-6px);
}

.console-header {
    background: rgba(0, 229, 255, 0.04);
    border-bottom: 1px solid var(--border-steel);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: 1px;
    font-size: 13px;
}

.dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dark);
    display: inline-block;
    margin-left: 4px;
    
    &:first-child { background: var(--accent-red); }
    &:nth-child(2) { background: #ffca28; }
    &:nth-child(3) { background: var(--accent-green); }
}

/* Card Decorative Cyber Corners */
.card-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-cyan);
    pointer-events: none;
    
    &.top-left { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
    &.top-right { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
    &.bottom-left { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
    &.bottom-right { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
}

/* =========================================================================
   PAGE CONTAINER & SECTIONS LAYOUT
   ========================================================================= */
.page-container {
    padding-top: var(--hdr-height);
}

.panel-section {
    min-height: calc(100vh - var(--hdr-height));
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 229, 255, 0.05);
}

.section-header-block {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 15px;
    font-family: var(--font-heading);
}

.section-title {
    font-size: 28px; /* Increased from 22px to create distinct visual anchors */
    font-weight: 800; /* Bolder font weight for stronger visual hierarchy */
    letter-spacing: 3px; /* Slightly wider spacing for aerospace high-tech styling */
    text-transform: uppercase;
}

.grid-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================================
   SECTION 1: HERO & CORE TELEMETRY
   ========================================================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.headline-typed {
    font-family: var(--font-heading);
    font-size: 38px;
    line-height: 1.15;
    color: var(--text-white);
    margin: 15px 0;
    min-height: 80px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

.json-terminal-window {
    background: rgba(5, 7, 9, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.json-header {
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
}

.json-lines-wrapper {
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-muted);
}

.telemetry-line {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s ease;
    
    &.active {
        opacity: 1;
        transform: translateY(0);
    }
}

.json-key { color: var(--accent-cyan); }
.json-value-num { color: #f57c00; }
.json-value-str { color: var(--text-light); }
.json-alarm { color: var(--accent-red); font-weight: bold; }

/* Dynamic updates flash animation */
.telemetry-flash {
    animation: textFlash 0.5s ease-out;
}

@keyframes textFlash {
    0% { background: rgba(0, 229, 255, 0.15); color: var(--text-white); }
    100% { background: transparent; }
}

/* Right Visual Column (Styled for Left-alignment Vector to align with console box left border) */
.device-showcase-container {
    position: relative;
    display: flex;
    justify-content: flex-start; /* Align graphic left to lock to console box alignment vector */
    align-items: center;
    min-height: 480px;
    padding-left: 90px; /* Offset left padding to align unit casing properly and clear left callout bubble */
}

.device-wrapper {
    position: relative;
    width: 260px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: levitate 5s ease-in-out infinite;
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.device-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.12));
}

/* Hologram nodes overlaying the device image */
.cyber-node {
    position: absolute;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    
    &.node-wireless { 
        top: 32%; 
        left: -32%; 
        flex-direction: row-reverse; 
    }
    &.node-trickle { bottom: 35%; right: -32%; }
    &.node-sabotage { top: 48%; right: -38%; }
}

.node-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-cyan);
    position: relative;
    display: inline-block;
    
    &::after {
        content: '';
        position: absolute;
        top: -6px; left: -6px;
        width: 20px; height: 20px;
        border: 1px solid var(--accent-cyan);
        border-radius: 50%;
        animation: radarPulse 1.8s infinite linear;
    }
}

.node-pulse-red {
    background: var(--accent-red);
    box-shadow: 0 0 12px var(--accent-red);
    &::after {
        border-color: var(--accent-red);
    }
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.node-line {
    width: 35px;
    height: 1px;
    background: var(--border-steel);
    display: inline-block;
    vertical-align: middle;
}

.node-content {
    display: inline-block;
    vertical-align: middle;
    background: rgba(9, 13, 16, 0.8);
    border: 1px solid var(--border-steel);
    padding: 4px 8px;
    border-radius: 3px;
    font-family: var(--font-heading);
    
    &.node-content-red {
        border-color: var(--border-alert);
    }
}

.node-tag {
    font-size: 8px;
    color: var(--text-muted);
}
.node-label {
    font-size: 11px;
    color: var(--text-white);
}

/* Tooltip info panel */
.tooltip-panel {
    position: absolute;
    bottom: -15px;
    width: 90%;
    background: rgba(15, 22, 28, 0.9);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
    border-radius: 4px;
    padding: 15px;
    font-size: 13px;
    z-index: 10;
    transition: opacity 0.3s;
    
    &.hidden {
        opacity: 0;
        pointer-events: none;
    }
}

.tooltip-header {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    margin-bottom: 5px;
    font-size: 11px;
}

.scroll-prompt-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    
    .scroll-arrow {
        animation: bounce 1.8s infinite;
        margin-top: 5px;
        color: var(--accent-cyan);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* =========================================================================
   SECTION 2: SYSTEM ARCHITECTURE CARDS (Bento Grid Layout)
   ========================================================================= */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.arch-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    
    &#card-power {
        grid-column: span 2;
    }
    
    &#card-route {
        grid-column: span 2;
    }
    
    &#card-cargo {
        grid-column: span 1;
    }
    
    &#card-sabotage {
        grid-column: span 1;
    }
    
    &.full-width-card {
        grid-column: span 2; /* Bento Grid adjustment from 4 to 2 columns */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 30px;
        min-height: 250px;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-cyan);
    opacity: 0.7;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--text-white);
}

.card-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.flex-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    
    p {
        margin-bottom: 0;
        max-width: 60%;
    }
}

.card-stat-bar {
    font-size: 10px;
    font-family: var(--font-heading);
}

.bar-label {
    color: var(--text-muted);
}

.bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin: 4px 0;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 2px;
    
    &.status-ok { background: var(--accent-green); }
}

.bar-val {
    float: right;
    color: var(--text-light);
    
    &.text-green { color: var(--accent-green); }
}

.ota-console-sim {
    background: rgba(5, 7, 9, 0.6);
    border: 1px solid var(--border-steel);
    padding: 8px 15px;
    font-family: var(--font-heading);
    font-size: 11px;
    border-radius: 3px;
    flex-grow: 1;
    max-width: 400px;
    
    .console-val {
        color: var(--accent-green);
        float: right;
    }
}

/* =========================================================================
   SECTION 2.5: INDUSTRIAL SOLUTIONS SHOWCASE
   ========================================================================= */
.solutions-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
}

.solutions-visual-panel {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}

.visual-panel-header {
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid var(--border-steel);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 12px;
}

.panel-status-tag {
    color: var(--accent-green);
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 2px 8px;
    border-radius: 2px;
}

.visual-display-wrapper {
    flex-grow: 1;
    position: relative;
    background: rgba(5, 7, 9, 0.4);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-svg {
    position: absolute;
    width: 90%;
    height: 90%;
    opacity: 0;
    scale: 0.96;
    pointer-events: none;
    transition: all 0.3s ease;
    
    &.active {
        opacity: 1;
        scale: 1;
        pointer-events: auto;
    }
}

/* High-tech Blueprint SVG styling */
.premium-svg {
    background: rgba(4, 7, 12, 0.45);
    border-radius: 4px;
    transition: all 0.3s ease;
    
    .svg-grid-bg { 
        opacity: 0.35; 
        transition: opacity 0.3s;
    }
    
    /* Flow data lines */
    .data-link-anim {
        stroke-dasharray: 8 8;
        animation: flowData 1.2s linear infinite;
    }

    /* Pulse node elements */
    .pulse-node {
        cursor: pointer;
        transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
        transform-origin: center;
        
        &:hover {
            transform: scale(1.3);
            filter: drop-shadow(0 0 10px var(--accent-red));
        }
    }

    /* Concentric radar lines */
    .pulse-ring-large {
        transform-origin: center;
        animation: pulseRadar 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
    }
    
    .beacon-wave {
        transform-origin: 250px 35px;
        animation: pulseRadar 2.4s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
    }
    
    text {
        font-family: var(--font-heading);
        letter-spacing: 0.5px;
        pointer-events: none;
    }
}

/* Vertical glowing laser sweep across active blueprint */
.blueprint-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.75) 50%, rgba(0, 240, 255, 0) 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    pointer-events: none;
    z-index: 5;
    animation: blueprintScan 5s ease-in-out infinite;
}

@keyframes blueprintScan {
    0% { left: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes pulseRadar {
    0% {
        transform: scale(0.3);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes flowData {
    to { stroke-dashoffset: -16; }
}

.visual-panel-footer {
    border-top: 1px solid var(--border-steel);
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

/* Horizontal scan line sweep in panel footer */
.laser-scanner-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(0,229,255,0) 0%, rgba(0,229,255,0.4) 50%, rgba(0,229,255,0) 100%);
    animation: scannerSweep 3s infinite linear;
}

@keyframes scannerSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Solutions Panel Right Column (Tabs and Info) */
.solutions-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    padding-bottom: 15px;
}

.sol-tab-btn {
    border: 1px solid var(--border-steel);
    background: rgba(15, 22, 28, 0.4);
    color: var(--text-muted);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.25s;
    
    &:hover, &.active {
        color: var(--text-white);
        background: rgba(0, 229, 255, 0.08);
        border-color: var(--accent-cyan);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }
}

.solutions-content-wrapper {
    position: relative;
    min-height: 380px;
}

.solution-info-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(15px);
    transition: all 0.3s;
    
    &.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        position: relative;
    }
}

.sol-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.sol-card-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sol-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.sol-spec-item {
    border-left: 2px solid rgba(0, 229, 255, 0.25);
    padding-left: 10px;
    
    .sol-spec-label {
        display: block;
        font-family: var(--font-heading);
        font-size: 9px;
        color: var(--text-muted);
        letter-spacing: 0.5px;
    }
    .sol-spec-val {
        font-size: 12px;
        color: var(--text-light);
        font-weight: 500;
        
        &.text-red { color: var(--accent-red); }
    }
}

/* Vertical steps flow display */
.sol-workflow-block {
    margin-bottom: 25px;
}

.workflow-header {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wf-step {
    display: flex;
    gap: 15px;
}

.wf-step-num {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
    border: 1px dashed var(--border-steel);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.wf-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    display: block;
}

.wf-step-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.sol-action-btn {
    width: 100%;
    border: 1px solid var(--accent-cyan);
    background: rgba(0, 229, 255, 0.04);
    color: var(--accent-cyan);
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s;
    
    &:hover {
        background: var(--accent-cyan);
        color: var(--bg-base);
        box-shadow: 0 0 15px var(--accent-cyan-glow);
    }
}

/* =========================================================================
   SECTION 3: SPECIFICATIONS TABLES
   ========================================================================= */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.specs-table-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-steel);
    border-radius: 4px;
    padding: 20px;
}

.table-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--text-dark);
    padding-bottom: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    
    th {
        text-align: left;
        font-family: var(--font-heading);
        font-size: 10px;
        color: var(--text-muted);
        padding: 14px 12px; /* Increased th padding */
        border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    }
    
    tbody tr {
        transition: background-color 0.2s ease, color 0.2s ease;
        
        &:hover {
            background-color: rgba(0, 229, 255, 0.04);
            color: var(--text-white);
            
            td {
                border-bottom-color: rgba(0, 229, 255, 0.15);
            }
        }
    }
    
    td {
        padding: 18px 12px; /* Increased td padding (padding-top & padding-bottom) for scannability */
        border-bottom: 1px solid rgba(255,255,255,0.02);
        color: var(--text-muted);
    }
    
    .tbl-accent {
        color: var(--text-white);
        font-weight: 500;
    }
}

/* =========================================================================
   SECTION 4: COMMS & SIMULATION CONSOLE
   ========================================================================= */
.cta-outer-box {
    padding: 40px;
}

.cta-header {
    text-align: center;
    margin-bottom: 40px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 26px;
    letter-spacing: 2px;
}

.cta-subtitle {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.info-block {
    margin-bottom: 25px;
    
    .info-label {
        display: block;
        font-family: var(--font-heading);
        font-size: 10px;
        color: var(--text-muted);
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    .info-value {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-white);
        text-decoration: none;
        
        &.hover-glow:hover {
            color: var(--accent-cyan);
            text-shadow: 0 0 10px var(--accent-cyan-glow);
        }
    }
}

/* Premium QR code scanner mockup */
.qr-scan-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.qr-scanner-frame {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 7, 9, 0.6);
}

.scanner-corner {
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid var(--accent-cyan);
    
    &.top-left { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
    &.top-right { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
    &.bottom-left { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
    &.bottom-right { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
}

.scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: scannerUpDown 2.2s infinite linear;
}

@keyframes scannerUpDown {
    0%, 100% { top: 0%; }
    50% { top: 100%; }
}

.qr-image {
    width: 76px;
    height: 76px;
    opacity: 0.8;
}

.qr-label {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
}

.email-list {
    display: flex;
    gap: 8px;
    align-items: center;
    
    .divider { color: var(--text-dark); }
}

/* Terminal Console Box */
.terminal-comms-box {
    background: rgba(5, 7, 9, 0.9);
    border: 1px solid var(--border-steel);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
}

.terminal-banner {
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid var(--border-steel);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-screen {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-msg {
    color: var(--text-light);
    
    &.text-green { color: var(--accent-cyan); }
    &.text-cyan { color: #f57c00; }
    &.text-red { color: var(--accent-red); font-weight: 500; }
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.terminal-prompt {
    color: var(--accent-cyan);
}

.terminal-quick-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-macro-btn {
    background: transparent;
    border: 1px dashed var(--border-steel);
    color: var(--text-muted);
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 10px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s;
    
    &:hover {
        border-color: var(--accent-cyan);
        color: var(--text-white);
        background: rgba(0, 229, 255, 0.05);
    }
}

/* =========================================================================
   FOOTER ATTRIBUTION
   ========================================================================= */
.system-footer {
    margin-top: 60px;
    border-top: 1px solid var(--text-dark);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-dark);
}

.agency-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
    
    &:hover { color: var(--accent-cyan); }
}

/* =========================================================================
   GLITCH ANIMATIONS & SPECIAL EFFECTS
   ========================================================================= */
.threat-glitch {
    animation: glitchEffect 0.3s steps(2) infinite;
}

@keyframes glitchEffect {
    0% { filter: hue-rotate(0deg) skewX(0deg) brightness(1); }
    50% { filter: hue-rotate(180deg) skewX(10deg) brightness(1.5) contrast(1.2); }
    100% { filter: hue-rotate(360deg) skewX(-10deg) brightness(0.8); }
}

/* =========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================= */
@media (max-width: 1024px) {
    .architecture-grid {
        grid-template-columns: repeat(2, 1fr);
        
        .full-width-card {
            grid-column: span 2;
        }
    }
    
    .solutions-container {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        
        .device-showcase-container {
            min-height: auto;
            padding-left: 60px; /* Offset adjusted for stacked grid alignment */
        }
    }
    
    .hud-scroll-gauge, .hud-mouse-panel {
        display: none;
    }

    /* Stack specifications tables at tablet breakpoint */
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .architecture-grid {
        grid-template-columns: 1fr;
        
        .full-width-card {
            grid-column: span 1;
            flex-direction: column;
            align-items: flex-start;
        }
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .system-header {
        padding: 0 20px;
    }
    
    .system-status-panel {
        display: none; /* Hide status tags on small mobile screens */
    }
    
    .panel-section {
        padding: 40px 20px;
    }
    
    .headline-typed {
        font-size: 28px;
    }
    
    .system-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Stack flex-body vertically for full-width card on mobile viewports */
    .flex-body {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;

        p {
            max-width: 100%;
        }
    }

    /* Further adjust device showcase horizontal offset for mobile viewport to prevent overflow */
    .hero-grid {
        .device-showcase-container {
            padding-left: 45px;
        }
    }
}

/* =========================================================================
   NEW UPGRADES: CHART, THREAT OVERRIDES, SOUND TOGGLE
   ========================================================================= */

.sound-btn {
    cursor: pointer;
    background: rgba(15, 22, 28, 0.4);
    border: 1px solid var(--border-steel);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    
    &:hover {
        background: rgba(0, 229, 255, 0.12);
        color: var(--text-white);
        border-color: var(--accent-cyan);
    }
}

.chart-terminal-window {
    background: rgba(5, 7, 9, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    
    .chart-header {
        background: rgba(0, 229, 255, 0.03);
        border-bottom: 1px solid rgba(0, 229, 255, 0.08);
        padding: 8px 15px;
        display: flex;
        justify-content: space-between;
        font-family: var(--font-heading);
        font-size: 11px;
        color: var(--text-muted);
    }
}

/* Global Alarm Threat Mode styling overrides */
body.threat-active {
    --accent-cyan: var(--accent-red);
    --accent-cyan-glow: var(--accent-red-glow);
    --border-steel: rgba(255, 42, 95, 0.25);
    --border-steel-hover: rgba(255, 42, 95, 0.55);
    
    #matrix-canvas {
        opacity: 0.45;
    }
    
    .logo-container {
        background: radial-gradient(circle, rgba(255, 42, 95, 0.1) 0%, rgba(255, 42, 95, 0) 70%);
    }
    
    .status-indicator.online {
        box-shadow: 0 0 10px rgba(255, 42, 95, 0.15);
    }
    
    .hud-scroll-gauge .gauge-fill {
        background: var(--accent-red);
        box-shadow: 0 0 10px var(--accent-red);
    }
    
    .hud-mouse-panel {
        border-color: rgba(255, 42, 95, 0.25);
        background: rgba(25, 12, 16, 0.4);
    }
    
    .console-box, .glass-card, .specs-table-container, .terminal-comms-box {
        box-shadow: 0 10px 30px rgba(255, 42, 95, 0.08);
    }
    
    .wf-step-num {
        color: var(--accent-red);
        background: rgba(255, 42, 95, 0.05);
        border-color: var(--border-steel);
    }
    
    .sol-action-btn {
        border-color: var(--accent-red);
        background: rgba(255, 42, 95, 0.04);
        color: var(--accent-red);
        
        &:hover {
            background: var(--accent-red);
            color: var(--text-white);
            box-shadow: 0 0 15px var(--accent-red-glow);
        }
    }
    
    .sol-tab-btn:hover, .sol-tab-btn.active {
        background: rgba(255, 42, 95, 0.08);
        border-color: var(--accent-red);
        box-shadow: 0 0 12px rgba(255, 42, 95, 0.15);
    }
    
    .specs-table tbody tr:hover {
        background-color: rgba(255, 42, 95, 0.05);
        
        td {
            border-bottom-color: rgba(255, 42, 95, 0.25);
        }
    }
}