/* ==========================================================================
   INDUSTRIAL AI SAFETY COMMAND CENTER - ULTIMATE DESIGN SYSTEM
   ========================================================================== */

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

:root {
    --bg-dark: #020617;
    --panel-bg: rgba(11, 19, 43, 0.82); /* More defined translucent slate-blue background to stand out */
    --panel-border: rgba(255, 255, 255, 0.08); /* Crisp translucent white border */
    --panel-glow: rgba(6, 182, 212, 0.05);
    --primary-neon: #06b6d4;
    --primary-blue: #3b82f6;
    --safe-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-cyber: 'Space Grotesk', sans-serif;
    --font-main: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* === UNIVERSAL BASICS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #020617;
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-neon) var(--bg-dark);
}

body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
body::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 3px;
}
body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}

/* === DYNAMIC CYBERNETIC BACKDROP === */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: transparent; /* Make transparent to let body gradients shine through */
    pointer-events: none;
}

.laser-scan-line {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100vw;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    box-shadow: 0 0 15px var(--primary-neon);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: laserSweep 10s linear infinite;
}

@keyframes laserSweep {
    0% { top: -10px; }
    100% { top: 100vh; }
}

/* === CYBER HUD OVERLAYS === */
.cyber-hud-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.18; /* Muted watermark opacity to prevent text overlap clutter */
}

.hud-tag {
    position: absolute;
    font-family: var(--font-code);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary-neon);
    background: rgba(2, 6, 23, 0.85); /* Solid dark slate backing to ensure watermark text is clean and doesn't conflict */
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hud-top-left { top: 100px; left: 30px; }
.hud-top-right { top: 100px; right: 30px; text-align: right; }
.hud-bottom-left { bottom: 30px; left: 30px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--safe-green);
    font-weight: 700;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--safe-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--safe-green);
    animation: pulse 1.5s infinite;
}

.hud-bounding-box {
    position: absolute;
    border: 1px dashed rgba(6, 182, 212, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-box-label {
    position: absolute;
    top: -16px;
    left: 4px;
    font-family: var(--font-code);
    font-size: 9px;
    color: #fff;
    padding: 1px 6px;
    border-radius: 2px;
}

.float-hud-1 { animation: float1 15s ease-in-out infinite; }
.float-hud-2 { animation: float2 20s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-1.5deg); }
}

/* === GLASSMORPHISM CORE PANEL === */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-top: 1px solid rgba(255, 255, 255, 0.16); /* Ultra-sleek top glass reflection edge */
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.45), 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 24px var(--panel-glow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.glass-panel:hover::before {
    left: 150%;
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-cyber);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* === BUTTON COMMAND GLOWS === */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger, .portal-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-cyber);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-neon));
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

.btn-outline {
    color: var(--primary-neon);
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.btn-outline:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   SECTION 1: HERO COMMAND CENTER
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    padding: 150px 8% 80px 8%;
    align-items: center;
    min-height: 90vh;
}

.hero-text h1 {
    font-family: var(--font-cyber);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- TELEMETRY HUD PANEL (HERO RIGHT) --- */
.hero-card-wrapper {
    position: relative;
}

.hero-card {
    padding: 30px;
}

.hero-card h3 {
    font-family: var(--font-cyber);
    font-size: 15px;
    letter-spacing: 1.5px;
    color: var(--primary-neon);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    padding-bottom: 14px;
}

.live-indicator {
    font-family: var(--font-code);
    font-size: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--safe-green);
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--safe-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--safe-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--safe-green); }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.status-item span {
    color: var(--text-muted);
}

.status-item b {
    font-family: var(--font-code);
    font-size: 15px;
}

.glow-cyan {
    color: var(--primary-neon);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.glow-green {
    color: var(--safe-green);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.progress-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 98.7%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-neon));
    box-shadow: 0 0 8px var(--primary-neon);
    border-radius: 2px;
}

/* ==========================================================================
   SECTION 2: REAL-TIME METRICS BAR
   ========================================================================== */
.metrics-section {
    padding: 20px 8% 60px 8%;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-neon);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15), inset 0 0 15px rgba(6, 182, 212, 0.05);
}

.metric-card h4 {
    font-family: var(--font-cyber);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.metric-val {
    font-family: var(--font-cyber);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   SECTIONS 3 & 4: OPERATIONS & CONTROL CENTERS
   ========================================================================== */
.portal-section {
    padding: 60px 8%;
}

.portal-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.portal-compartment {
    width: 100%;
}

.compartment-title {
    font-family: var(--font-cyber);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compartment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-cyan { background: var(--primary-neon); box-shadow: 0 0 8px var(--primary-neon); }
.dot-blue { background: var(--primary-blue); box-shadow: 0 0 8px var(--primary-blue); }
.dot-purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

.portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.portal-card {
    padding: 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.portal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1), inset 0 0 15px rgba(6, 182, 212, 0.02);
}

.portal-card-body {
    margin-bottom: 24px;
}

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

.portal-card-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px var(--primary-neon));
}

.portal-card-header h4 {
    font-family: var(--font-cyber);
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

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

.portal-card-btn {
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
}

.portal-card-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-neon));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    transform: translateY(-1.5px);
}

/* ==========================================================================
   SECTION 5: DETECTION INTELLIGENCE CENTER (VISUAL CENTERPIECE)
   ========================================================================== */
.centerpiece-section {
    padding: 40px 8%;
}

.centerpiece-card {
    padding: 40px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.centerpiece-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.centerpiece-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.centerpiece-stats-panel h3 {
    font-family: var(--font-cyber);
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-neon);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    padding-bottom: 10px;
}

.centerpiece-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.centerpiece-widget {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-val {
    font-family: var(--font-code);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* --- TELEMETRY RADAR PLOT & GRAPH --- */
.centerpiece-visualizer {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    padding: 24px;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-code);
    font-size: 10px;
    color: var(--primary-neon);
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 30px);
}

.laser-grid-back {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
}

/* ==========================================================================
   SECTION 6: LIVE INCIDENT TIMELINE
   ========================================================================== */
.timeline-section {
    padding: 60px 8%;
}

.timeline-wrapper {
    position: relative;
    margin: 40px auto 0 auto;
    max-width: 800px;
    padding: 20px 0;
}

/* Central Neon Axis */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-neon), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 70px;
}

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

/* Node indicator */
.timeline-dot {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
    z-index: 2;
}

.timeline-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-neon);
    box-shadow: 0 0 6px var(--primary-neon);
}

.timeline-item.warning .timeline-dot {
    border-color: var(--warning-yellow);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.timeline-item.warning .timeline-dot-inner {
    background: var(--warning-yellow);
    box-shadow: 0 0 6px var(--warning-yellow);
}

.timeline-item.danger .timeline-dot {
    border-color: var(--danger-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.timeline-item.danger .timeline-dot-inner {
    background: var(--danger-red);
    box-shadow: 0 0 6px var(--danger-red);
}

.timeline-card {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.timeline-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-time {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--primary-neon);
    font-weight: 500;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.timeline-status {
    font-family: var(--font-code);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-active {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary-neon);
}

.status-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--danger-red);
}

.status-solved {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--safe-green);
}

/* ==========================================================================
   SECTION 7: AI SYSTEM HEALTH PANEL
   ========================================================================== */
.health-section {
    padding: 40px 8% 80px 8%;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.health-card {
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.health-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.health-card h4 {
    font-family: var(--font-cyber);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.health-radial-placeholder {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-metric-num {
    font-family: var(--font-code);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-neon);
}

.health-progress-wrapper {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5px;
    overflow: hidden;
}

.health-progress-bar {
    height: 100%;
    border-radius: 1.5px;
}

.cyan-fill {
    background: var(--primary-neon);
    box-shadow: 0 0 8px var(--primary-neon);
}

.blue-fill {
    background: var(--primary-blue);
    box-shadow: 0 0 8px var(--primary-blue);
}

.green-fill {
    background: var(--safe-green);
    box-shadow: 0 0 8px var(--safe-green);
}

/* ==========================================================================
   SECTION 8: FOOTER COMMAND PANEL
   ========================================================================== */
footer {
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    padding: 30px 8%;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.footer-command-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-meta-list {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-meta-item {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-meta-item span {
    color: var(--primary-neon);
    font-weight: 500;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   SAFETY ZONES MATRIX (PRESERVED SUB-CARDS)
   ========================================================================== */
.zones-section {
    padding: 60px 8%;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.zone-card-premium {
    padding: 30px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zone-card-premium:hover {
    transform: translateY(-4px);
}

.zone-safe { border-color: rgba(16, 185, 129, 0.15); }
.zone-safe:hover { border-color: var(--safe-green); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15); }

.zone-warning { border-color: rgba(245, 158, 11, 0.15); }
.zone-warning:hover { border-color: var(--warning-yellow); box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15); }

.zone-danger { border-color: rgba(239, 68, 68, 0.15); }
.zone-danger:hover { border-color: var(--danger-red); box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15); }

.zone-badge {
    align-self: flex-start;
    font-family: var(--font-cyber);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.zone-safe .zone-badge { background: rgba(16, 185, 129, 0.08); color: var(--safe-green); border: 1px solid rgba(16, 185, 129, 0.25); }
.zone-warning .zone-badge { background: rgba(245, 158, 11, 0.08); color: var(--warning-yellow); border: 1px solid rgba(245, 158, 11, 0.25); }
.zone-danger .zone-badge { background: rgba(239, 68, 68, 0.08); color: var(--danger-red); border: 1px solid rgba(239, 68, 68, 0.25); }

.zone-card-premium h3 {
    font-family: var(--font-cyber);
    font-size: 20px;
    color: #ffffff;
}

.zone-card-premium p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    height: 70px;
}

.zone-modbus-indicator {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

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

.modbus-val {
    font-family: var(--font-code);
    font-weight: 500;
}
.value-safe { color: var(--safe-green); }
.value-warning { color: var(--warning-yellow); }
.value-danger { color: var(--danger-red); }

/* ==========================================================================
   TECH ACCESS CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 40px 8%;
}

.cta-card {
    padding: 50px;
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 80%), var(--panel-bg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-cyber);
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    font-family: var(--font-cyber);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-neon));
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cta-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================================================== */

/* --- NOTEBOOKS / SMALL DESKTOPS --- */
@media (max-width: 1200px) {
    .hero {
        padding: 120px 5% 60px 5%;
        gap: 30px;
    }
    .metrics-section, .portal-section, .centerpiece-section, .timeline-section, .health-section, .zones-section, .cta-section {
        padding-left: 5%;
        padding-right: 5%;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .health-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- TABLET ADAPTIVE LAYOUT (Under 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 30px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-card-wrapper {
        max-width: 550px;
        margin: 0 auto;
    }
    .centerpiece-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- SMALL MOBILE VIEWPORT (Under 768px) --- */
@media (max-width: 768px) {
    .portal-cards {
        grid-template-columns: 1fr;
    }
    .zones-grid {
        grid-template-columns: 1fr;
    }
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-wrapper::before {
        left: 21px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-dot {
        left: 10px;
    }
    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .timeline-status {
        align-self: flex-start;
    }
    .footer-command-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-meta-list {
        justify-content: center;
    }
}

/* --- MICRO MOBILITY VIEWPORT (Under 480px) --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .health-grid {
        grid-template-columns: 1fr;
    }
    .cta-card {
        padding: 30px 20px;
    }
    .cta-card h2 {
        font-size: 1.6rem;
    }
}