/* =================================================================
   EPI GLASSMORPHISM BLUE THEME — CDRRMO Pagadian City
   Pagadian City Disaster Risk Reduction and Management Office
   ================================================================= */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    /* Primary Storm Blue Scale */
    --primary-50: #eef6fb;
    --primary-100: #d8e8f6;
    --primary-200: #b6d3ee;
    --primary-300: #84b6df;
    --primary-400: #5397cc;
    --primary-500: #2e78b8;
    --primary-600: #215f9b;
    --primary-700: #19497a;
    --primary-800: #163861;
    --primary-900: #142b4b;
    --primary-950: #081626;

    /* Accent Colors */
    --accent-cyan: #4fd1c5;
    --accent-sky: #38bdf8;
    --accent-indigo: #7c8cf8;
    --accent-amber: #fbbf24;

    /* Hero Palette */
    --hero-navy: #061220;
    --hero-midnight: #0a2740;
    --hero-storm: #114a63;
    --hero-surface: rgba(7, 21, 34, 0.72);
    --hero-glow: rgba(79, 209, 197, 0.22);
    --hero-grid: rgba(165, 208, 237, 0.12);
    --focus-highlight: #facc15;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --critical: #dc2626;

    /* CDRRMO Alert Levels (Bulacan-style) */
    --alert-normal: #10b981;
    --alert-alert: #f59e0b;
    --alert-alarm: #f97316;
    --alert-critical: #dc2626;

    /* Gray Scale */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Glassmorphism */
    --glass-bg: rgba(255,255,255,0.75);
    --glass-bg-dark: rgba(15,23,42,0.85);
    --glass-border: rgba(255,255,255,0.6);
    --glass-border-dark: rgba(255,255,255,0.08);
    --glass-blur: blur(16px);
    --glass-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
    --glass-shadow-dark: 0 4px 24px rgba(0,0,0,0.3);

    /* Dark Mode (Ops Center) */
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1a;
    --bg-card: #1e293b;
    --bg-card-alt: #263548;
    --bg-card-hover: #2a3f57;
    --bg-input: #1a2332;
    --bg-header: #0d1b2a;
    --text-primary-dark: #f1f5f9;
    --text-secondary-dark: #94a3b8;
    --text-muted-dark: #64748b;
    --border-dark: rgba(255,255,255,0.08);
    --border-light-dark: rgba(255,255,255,0.12);
    --border-accent: rgba(59,130,246,0.3);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', var(--font-sans);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(59,130,246,0.15);
    --shadow-glow-accent: 0 0 30px rgba(59,130,246,0.25);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.5s var(--ease-out-expo);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-loading: 700;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.home-portal {
    padding-bottom: 3.15rem;
    scroll-padding-bottom: 3.5rem;
}

a { color: var(--primary-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-700); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-highlight);
    outline-offset: 3px;
}

/* =============================================
   GLASSMORPHISM NAVIGATION
   ============================================= */
.nav-glass {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-fixed);
    background: linear-gradient(135deg, rgba(6,18,32,0.96), rgba(10,39,64,0.94) 46%, rgba(17,74,99,0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(165,208,237,0.14);
    box-shadow: 0 16px 42px rgba(2,8,23,0.28);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-seal {
    width: 2.5rem; height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-seal i { color: var(--primary-700); font-size: 1.1rem; }

.nav-brand-text { display: flex; flex-direction: column; }

.nav-brand-name {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.nav-brand-name span { color: var(--primary-300); }

.nav-brand-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(79,209,197,0.12);
    text-decoration: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 1.25rem; height: 2px;
    background: var(--accent-amber);
    border-radius: 1px;
}

/* PAGASA Bell Button */
.nav-pagasa-bell {
    position: relative;
    background: none;
    border: 1px solid rgba(165,208,237,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.nav-pagasa-bell:hover {
    background: rgba(251,191,36,0.14);
    color: white;
}

.nav-pagasa-bell .alert-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mobile Navigation */
.nav-mobile-btn {
    display: flex;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(6,18,32,0.98);
    border-top: 1px solid rgba(165,208,237,0.12);
}

.mobile-menu.open {
    max-height: 400px;
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(165,208,237,0.08);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(79,209,197,0.08);
    color: white;
}

.pagasa-alert-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    background: rgba(5, 17, 29, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(165,208,237,0.12);
    box-shadow: -24px 0 70px rgba(2,8,23,0.45);
    transform: translateX(104%);
    transition: transform 0.35s var(--ease-out-expo);
}

.pagasa-alert-drawer.open {
    transform: translateX(0);
}

.pagasa-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(165,208,237,0.12);
    background: linear-gradient(180deg, rgba(56,189,248,0.1), rgba(79,209,197,0.02));
}

.pagasa-drawer-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}

.pagasa-drawer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
}

.pagasa-drawer-title i {
    color: var(--accent-amber);
}

.pagasa-drawer-close {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(165,208,237,0.16);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.78);
    font-size: 1.2rem;
    cursor: pointer;
}

.pagasa-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
}

.pagasa-alert-card {
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(165,208,237,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.pagasa-alert-card h4 {
    font-size: 0.92rem;
    color: white;
    margin-bottom: 0.35rem;
}

.pagasa-alert-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.66);
    line-height: 1.6;
}

.pagasa-alert-state {
    min-height: 12rem;
    display: grid;
    place-items: center;
    gap: 0.9rem;
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255,255,255,0.66);
}

.pagasa-alert-state i {
    font-size: 2rem;
    color: var(--accent-sky);
}

.pagasa-alert-state-success i {
    color: var(--success);
}

.pagasa-alert-state-muted i {
    color: rgba(255,255,255,0.34);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-mobile-btn { display: none; }
}

/* =============================================
   HERO SECTION (EPI Blue Gradient)
   ============================================= */
.hero {
    position: relative;
    --pointer-x: 0;
    --pointer-y: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(79,209,197,0.22), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(56,189,248,0.26), transparent 34%),
        linear-gradient(124deg, var(--hero-navy) 0%, var(--hero-midnight) 38%, var(--hero-storm) 100%);
    padding: 5rem 1.5rem 5.6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 30% 40%, rgba(79,209,197,0.18), transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(56,189,248,0.12), transparent 35%);
    filter: blur(36px);
    animation: heroAurora 14s ease-in-out infinite alternate;
    transform: translate3d(calc(var(--pointer-x) * 18px), calc(var(--pointer-y) * 14px), 0);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%, transparent 82%, rgba(255,255,255,0.06));
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-grid,
.hero-noise,
.hero-glow,
.hero-weather-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 110px 110px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
    opacity: 0.35;
    transform: translate3d(calc(var(--pointer-x) * 10px), calc(var(--pointer-y) * 10px), 0);
}

.hero-noise {
    background-image: radial-gradient(rgba(255,255,255,0.1) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

.hero-glow {
    filter: blur(70px);
    opacity: 0.7;
}

.hero-glow--one {
    inset: auto auto 14% -8%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(79,209,197,0.28), transparent 72%);
    animation: heroPulse 12s ease-in-out infinite;
}

.hero-glow--two {
    inset: 8% -8% auto auto;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(56,189,248,0.24), transparent 74%);
    animation: heroPulse 16s ease-in-out infinite reverse;
}

.hero-weather-layer {
    opacity: 0.95;
}

.hero-rain-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-rain-drop {
    position: absolute;
    top: -18%;
    left: var(--left);
    width: 1px;
    height: var(--height);
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(79,209,197,0));
    opacity: var(--opacity);
    transform: rotate(18deg);
    animation: heroRainDrop var(--duration) linear infinite;
    animation-delay: var(--delay);
}

.hero-cloud {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14), rgba(255,255,255,0));
    filter: blur(34px);
}

.hero-cloud--one {
    width: 28rem;
    height: 12rem;
    top: 9%;
    left: -8%;
    animation: heroCloud 18s ease-in-out infinite;
}

.hero-cloud--two {
    width: 24rem;
    height: 10rem;
    right: -4%;
    bottom: 18%;
    animation: heroCloud 22s ease-in-out infinite reverse;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(165,208,237,0.12);
    will-change: transform;
}

.hero-shape:nth-child(1) { width: 320px; height: 320px; top: -90px; left: -60px; opacity: 0.08; animation: shapeFloat1 18s ease-in-out infinite; }
.hero-shape:nth-child(2) { width: 140px; height: 140px; top: 20%; right: 8%; opacity: 0.09; animation: shapeFloat2 14s ease-in-out infinite reverse; }
.hero-shape:nth-child(3) { width: 76px; height: 76px; top: 62%; left: 10%; opacity: 0.08; border-radius: 12px; transform: rotate(45deg); animation: shapeFloat3 20s ease-in-out infinite; }
.hero-shape:nth-child(4) { width: 220px; height: 220px; bottom: -70px; right: -40px; opacity: 0.06; animation: shapeFloat1 22s ease-in-out infinite reverse; }
.hero-shape:nth-child(5) { width: 48px; height: 48px; top: 28%; left: 30%; opacity: 0.08; border-radius: 8px; transform: rotate(45deg); animation: shapeFloat2 16s ease-in-out infinite; }
.hero-shape:nth-child(6) { width: 110px; height: 110px; bottom: 12%; left: 4%; opacity: 0.08; animation: shapeFloat3 24s ease-in-out infinite reverse; }
.hero-shape:nth-child(7) { width: 60px; height: 60px; top: 14%; right: 26%; opacity: 0.08; border-radius: 8px; transform: rotate(45deg); animation: shapeFloat1 15s ease-in-out infinite; }
.hero-shape:nth-child(8) { width: 170px; height: 170px; bottom: 8%; right: 28%; opacity: 0.05; animation: shapeFloat2 20s ease-in-out infinite; }

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-15px, 25px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(4deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 15px) rotate(-6deg); }
    66% { transform: translate(18px, -22px) rotate(4deg); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(15px, -30px) rotate(50deg); }
    50% { transform: translate(-20px, -10px) rotate(40deg); }
    75% { transform: translate(25px, 20px) rotate(55deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    max-width: 44rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(165,208,237,0.18);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: heroTitleIn 0.9s var(--ease-out-expo) forwards;
}

.hero-pill i { color: var(--accent-amber); }

.hero-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(165,208,237,0.16);
    color: rgba(255,255,255,0.78);
    font-size: 0.76rem;
    font-weight: 600;
}

.status-chip-live {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.26);
}

.status-chip-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.36);
    animation: liveHalo 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5.3vw, 4.8rem);
    font-weight: 800;
    color: white;
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin-bottom: 0.65rem;
    text-shadow: 0 14px 40px rgba(2,8,23,0.35);
    animation: heroTitleIn 0.9s var(--ease-out-expo) forwards;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #f8fafc, #7dd3fc, #4fd1c5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 42rem;
    margin: 0 0 1.4rem;
    line-height: 1.8;
    font-weight: 400;
    animation: heroSubtitleIn 0.9s var(--ease-out-expo) 0.15s both;
}

.hero-ctas {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
    animation: heroCTAIn 0.9s var(--ease-out-expo) 0.3s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8fafc, #d8e8f6);
    color: var(--hero-navy);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 18px 48px rgba(2,8,23,0.28);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 56px rgba(2,8,23,0.34);
    text-decoration: none;
    color: var(--hero-navy);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(165,208,237,0.22);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.05);
}

.btn-hero-secondary:hover {
    background: rgba(79,209,197,0.12);
    border-color: rgba(79,209,197,0.4);
    text-decoration: none;
    color: white;
}

.btn-hero-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.btn-hero-tertiary:hover {
    color: white;
    border-bottom-color: rgba(255,255,255,0.4);
    text-decoration: none;
}

@keyframes heroTitleIn { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroSubtitleIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroCTAIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroAurora { from { transform: translate3d(calc(var(--pointer-x) * 18px), calc(var(--pointer-y) * 14px), 0) scale(1); } to { transform: translate3d(calc(var(--pointer-x) * -16px), calc(var(--pointer-y) * -12px), 0) scale(1.08); } }
@keyframes heroCloud { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(26px, -12px, 0); } }
@keyframes heroPulse { 0%, 100% { transform: scale(1); opacity: 0.58; } 50% { transform: scale(1.06); opacity: 0.86; } }
@keyframes heroRainDrop { from { transform: translate3d(0, -12%, 0) rotate(18deg); } to { transform: translate3d(-46px, 118vh, 0) rotate(18deg); } }
@keyframes liveHalo { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.28); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: heroCTAIn 0.9s var(--ease-out-expo) 0.45s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(165,208,237,0.14);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.78);
    backdrop-filter: blur(10px);
}

.trust-badge i { color: var(--accent-cyan); font-size: 0.9rem; }

.hero-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.priority-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(165,208,237,0.12);
    color: white;
    box-shadow: 0 14px 40px rgba(2,8,23,0.2);
}

.priority-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79,209,197,0.26);
    text-decoration: none;
}

.priority-card-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(79,209,197,0.24), rgba(56,189,248,0.18));
    color: var(--accent-amber);
    font-size: 1rem;
}

.priority-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
}

.priority-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.priority-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.66);
    line-height: 1.6;
}

.hero-command-panel {
    position: relative;
    padding: 1.5rem;
    border-radius: 1.8rem;
    background: linear-gradient(180deg, rgba(7,21,34,0.82), rgba(7,21,34,0.68));
    border: 1px solid rgba(165,208,237,0.16);
    box-shadow: 0 24px 80px rgba(2,8,23,0.32);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.hero-command-panel::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.command-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.command-panel-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.48);
    margin-bottom: 0.3rem;
}

.command-panel-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
}

.command-panel-sync {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
}

.command-panel-sync-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent-amber);
    box-shadow: 0 0 10px rgba(251,191,36,0.4);
}

.command-radar {
    position: relative;
    width: min(15.5rem, 100%);
    aspect-ratio: 1;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,209,197,0.14), rgba(7,21,34,0.12) 55%, rgba(7,21,34,0) 72%);
}

.command-radar-ring,
.command-radar-sweep,
.command-radar-core,
.command-radar-blips {
    position: absolute;
    inset: 0;
}

.command-radar-ring {
    border: 1px solid rgba(165,208,237,0.16);
    border-radius: 50%;
}

.command-radar-ring:nth-child(1) { inset: 12%; }
.command-radar-ring:nth-child(2) { inset: 24%; }
.command-radar-ring:nth-child(3) { inset: 36%; }
.command-radar-ring:nth-child(4) { inset: 48%; }

.command-radar-sweep {
    inset: 6%;
    border-radius: 50%;
    background: conic-gradient(from 180deg, rgba(79,209,197,0.34), rgba(79,209,197,0.02) 16%, transparent 32%);
    animation: radarSpin 5.4s linear infinite;
    filter: blur(2px);
}

.command-radar-core {
    top: calc(50% - 0.55rem);
    left: calc(50% - 0.55rem);
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 10px rgba(79,209,197,0.08), 0 0 22px rgba(79,209,197,0.5);
}

.command-radar-blip,
.command-radar-blips::before,
.command-radar-blips::after {
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: rgba(251,191,36,0.92);
    box-shadow: 0 0 0 0 rgba(251,191,36,0.28);
    animation: radarBlip 2.6s ease-in-out infinite;
}

.command-radar-blips::before,
.command-radar-blips::after {
    content: '';
}

.command-radar-blips::before {
    left: 26%;
    top: 58%;
    animation-delay: 0.4s;
}

.command-radar-blips::after {
    left: 70%;
    top: 30%;
    animation-delay: 1.2s;
}

.command-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.command-metric {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(165,208,237,0.1);
}

.command-metric-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.46);
}

.command-metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.18rem;
}

.command-metric-detail {
    display: block;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
}

.command-feed {
    display: grid;
    gap: 0.65rem;
}

.command-feed-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

.command-feed-dot {
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator i { color: rgba(255,255,255,0.4); font-size: 1.3rem; }

@keyframes scrollPulse {
    0%, 100% { opacity:0.5; transform:translateX(-50%) translateY(0); }
    50% { opacity:1; transform:translateX(-50%) translateY(5px); }
}

@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarBlip {
    0%, 100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(251,191,36,0.18); opacity: 0.8; }
    50% { transform: scale(1.25); box-shadow: 0 0 0 12px rgba(251,191,36,0); opacity: 1; }
}

/* =============================================
   LIVE STATUS BAR
   ============================================= */
.live-bar {
    position: relative;
    margin-top: -2.4rem;
    padding: 0 1.5rem 1.25rem;
    z-index: 2;
}

.live-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(7,21,34,0.92), rgba(10,39,64,0.88));
    border: 1px solid rgba(165,208,237,0.14);
    box-shadow: 0 22px 48px rgba(2,8,23,0.18);
}

.live-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.68);
    flex-shrink: 0;
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.live-dot.green { background: var(--success); }
.live-dot.blue { background: var(--primary-500); }
.live-dot.orange { background: var(--warning); }
.live-dot.red { background: var(--danger); }

@keyframes livePulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.live-value { font-weight: 700; color: white; }

.broadcast-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #230a0a 0%, #511111 45%, #091726 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 -10px 32px rgba(2,8,23,0.34);
}

.broadcast-ticker.is-calm {
    background: linear-gradient(90deg, #0b2732 0%, #0d3b4c 45%, #091726 100%);
}

.broadcast-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 11.5rem;
    justify-content: center;
    padding: 0.68rem 1rem;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: broadcastFlash 1.4s steps(2, end) infinite;
}

.broadcast-ticker.is-calm .broadcast-ticker-label {
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    animation: none;
}

.broadcast-ticker-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.35);
    animation: liveHalo 2s ease-in-out infinite;
}

.broadcast-ticker-track {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.broadcast-ticker-marquee {
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: tickerScroll 14s linear infinite;
}

.broadcast-ticker-segment {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 0.68rem 2rem 0.68rem 1.1rem;
    white-space: nowrap;
}

.broadcast-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.broadcast-pill i {
    color: var(--accent-amber);
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes broadcastFlash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.26); }
}

/* Ticker minimize toggle button */
.broadcast-ticker-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    background: rgba(255,255,255,0.08);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.broadcast-ticker-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Minimized state — collapse to just the label + toggle */
.broadcast-ticker.is-minimized {
    max-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.broadcast-ticker:not(.is-minimized) {
    transition: max-height 0.3s ease;
    max-height: 60px;
}

/* Floating restore button when minimized */
.broadcast-ticker-restore {
    position: fixed;
    bottom: 8px;
    right: 10px;
    z-index: 251;
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(15,23,42,0.85);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background 0.2s, color 0.2s;
}
.broadcast-ticker-restore:hover {
    background: rgba(15,23,42,0.95);
    color: #fff;
}
.broadcast-ticker-restore.is-visible {
    display: inline-flex;
}

/* =============================================
   SECTION COMPONENTS
   ============================================= */
.section-center { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-label i { font-size: 0.65rem; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 36rem;
    margin: 0.75rem auto 0;
}

/* =============================================
   FEATURES SECTION (Blue tint)
   ============================================= */
.features-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f4fbff 0%, #eef8fb 52%, #f7fbfd 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,209,197,0.1), transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Glassmorphic Feature Card */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(59,130,246,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.fi-blue { background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); color: white; }
.fi-sky { background: linear-gradient(135deg, var(--accent-sky), #0284c7); color: white; }
.fi-cyan { background: linear-gradient(135deg, var(--accent-cyan), #0891b2); color: white; }
.fi-green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.fi-amber { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.fi-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.fi-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-500);
}

/* =============================================
   STATS SECTION (Blue gradient)
   ============================================= */
.stats-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(125deg, var(--hero-navy), var(--hero-midnight), var(--hero-storm));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%; height: 200%;
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -15%;
    width: 50%; height: 180%;
    border: 2px solid rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card { text-align: center; padding: 1.5rem; }

.stat-value {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-300);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

/* =============================================
   QUICK ACCESS
   ============================================= */
.quick-access-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, white 0%, #f7fbfd 100%);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portal-card {
    position: relative;
    display: block;
    padding: 2rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(165,208,237,0.34);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,252,0.96)),
        linear-gradient(135deg, rgba(56,189,248,0.05), rgba(79,209,197,0.05));
    box-shadow: 0 18px 42px rgba(15,23,42,0.08);
    color: var(--gray-800);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo);
}

.portal-card::before {
    content: '';
    position: absolute;
    inset: auto -25% -40% auto;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    opacity: 0.55;
    filter: blur(18px);
}

.portal-card:hover {
    transform: translateY(-6px);
    text-decoration: none;
    box-shadow: 0 26px 56px rgba(15,23,42,0.14);
    border-color: rgba(79,209,197,0.46);
}

.portal-card-ops::before { background: radial-gradient(circle, rgba(33,95,155,0.18), transparent 70%); }
.portal-card-maps::before { background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 70%); }
.portal-card-weather::before { background: radial-gradient(circle, rgba(56,189,248,0.2), transparent 70%); }
.portal-card-people::before { background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 70%); }

.portal-card-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    font-size: 1.2rem;
    margin-bottom: 1.35rem;
    color: white;
    box-shadow: 0 12px 26px rgba(15,23,42,0.12);
}

.portal-card-ops .portal-card-icon { background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); }
.portal-card-maps .portal-card-icon { background: linear-gradient(135deg, #10b981, #0f766e); }
.portal-card-weather .portal-card-icon { background: linear-gradient(135deg, #0ea5e9, #0d9488); }
.portal-card-people .portal-card-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

.portal-card-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-600);
    margin-bottom: 0.55rem;
}

.portal-card h3 {
    font-family: var(--font-display);
    font-size: 1.28rem;
    color: var(--gray-900);
    margin-bottom: 0.65rem;
}

.portal-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.portal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.portal-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(33,95,155,0.08);
    color: var(--primary-700);
    font-size: 0.74rem;
    font-weight: 700;
}

.portal-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary-600);
    font-size: 0.9rem;
    font-weight: 700;
}

/* =============================================
   RESPONSE SECTION
   ============================================= */
.response-section {
    padding: 4.75rem 1.5rem;
    background: linear-gradient(180deg, #f7fbfd 0%, #e6f2f8 100%);
}

.response-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    padding: 2.25rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, rgba(7,21,34,0.96), rgba(10,39,64,0.92));
    box-shadow: 0 24px 60px rgba(2,8,23,0.18);
}

.response-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: white;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.response-description {
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.response-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    color: #111827;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(249,115,22,0.22);
}

.response-primary:hover {
    color: #111827;
    text-decoration: none;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(165,208,237,0.12);
    color: white;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79,209,197,0.28);
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.contact-card-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    font-size: 1rem;
}

.contact-card-icon.icon-warning { background: linear-gradient(135deg, #f59e0b, #f97316); }
.contact-card-icon.icon-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }

.contact-card-body h4 {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.contact-card-body p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.64);
}

.contact-card strong {
    font-size: 0.98rem;
    color: var(--accent-amber);
}

/* =============================================
   EMERGENCY STRIP
   ============================================= */
.emergency-strip {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    padding: 0.75rem 1.5rem;
    overflow: hidden;
}

.emergency-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.emergency-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-label i { animation: alertPulse 2s ease-in-out infinite; }

.emergency-numbers {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.emergency-num {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.emergency-num:hover { color: white; text-decoration: none; }
.emergency-num i { font-size: 0.7rem; opacity: 0.7; }
.emergency-num strong { font-weight: 700; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: linear-gradient(135deg, var(--hero-navy), var(--hero-midnight));
    color: rgba(255,255,255,0.5);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(165,208,237,0.08);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span { color: var(--primary-400); }

.footer-brand p {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-400); text-decoration: none; }

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.75rem;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-loading);
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero::before,
    .hero-glow,
    .hero-grid,
    .hero-noise,
    .hero-rain-field,
    .hero-cloud,
    .hero-shape,
    .command-radar-sweep,
    .broadcast-ticker-marquee {
        display: none !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 6.25rem 1rem 4rem;
    }
    .hero-layout,
    .response-shell {
        grid-template-columns: 1fr;
    }
    .hero-copy {
        max-width: none;
    }
    .hero-command-panel {
        padding: 1.25rem;
    }
    .hero-priority-grid,
    .response-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-subtitle,
    .hero-copy,
    .section-header {
        text-align: left;
    }
    .trust-badges,
    .hero-ctas,
    .hero-status-strip {
        justify-content: flex-start;
    }
    .command-metrics {
        grid-template-columns: 1fr;
    }
    .broadcast-ticker {
        flex-direction: column;
    }
    .broadcast-ticker-label {
        min-width: 100%;
        justify-content: flex-start;
    }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1rem; }
    .emergency-inner { gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.05rem; }
    .btn-hero-primary,
    .btn-hero-secondary,
    .response-primary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.25rem;
        font-size: 0.85rem;
    }
    .btn-hero-tertiary {
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: var(--radius-md);
        padding: 0.85rem 1.1rem;
    }
    .trust-badges { gap: 0.75rem; }
    .trust-badge { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .priority-card,
    .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-card strong {
        margin-left: 3.6rem;
    }
    .home-portal {
        padding-bottom: 4.2rem;
    }
}
