:root {
    --bg-deep: #0a0e1a;
    --bg-panel: #11172a;
    --bg-panel-hi: #1a2138;
    --border-subtle: rgba(255,255,255,0.08);
    --border-soft: rgba(255,255,255,0.12);
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-soft: #3b82f6;
    --accent-blue-glow: rgba(37, 99, 235, 0.18);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.18);
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}
a { color: inherit; }
.container-tight { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent-blue-glow);
    border: 1px solid rgba(37,99,235,0.35);
    color: #93c5fd;
    padding: .35rem 1rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.section-label {
    color: var(--accent-blue-soft);
    font-weight: 700; text-transform: uppercase;
    font-size: .8rem; letter-spacing: .18em;
    text-align: center; display: block;
}
.section-title {
    font-size: 2.1rem; font-weight: 800;
    margin: .35rem 0 .75rem;
    text-align: center; line-height: 1.2;
    color: var(--text-primary);
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    max-width: 680px; margin: 0 auto 1.85rem;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.nav-solid {
    background: rgba(10,14,26,0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.navbar-brand {
    display: inline-flex; align-items: center; gap: .65rem;
    font-weight: 800; font-size: 1rem; color: #fff !important;
    text-decoration: none;
}
.navbar-brand .brand-logo-img { height: 46px; width: auto; max-width: 280px; display: block; object-fit: contain; }
@media (max-width: 575.98px){ .navbar-brand .brand-logo-img { height: 38px; max-width: 220px; } }
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar-brand .brand-text strong { font-size: 1rem; }
.navbar-brand .brand-text small { font-size: .65rem; color: var(--text-muted); font-weight: 500; }
.nav-link {
    font-weight: 500; font-size: .92rem;
    color: rgba(255,255,255,0.78) !important;
    padding: .5rem .85rem !important;
    display: inline-flex !important; align-items: center; gap: .3rem;
    transition: color .15s ease;
}
.nav-link:hover { color: #fff !important; }
.nav-link .fa-chevron-down { font-size: .65rem; opacity: .6; }
.btn-nav-signin {
    color: rgba(255,255,255,0.85) !important;
    padding: .55rem 1rem !important;
    font-weight: 500;
    text-decoration: none;
}
.btn-nav-signin:hover { color: #fff !important; }

/* Logged-in user pill */
.splash-user-pill {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-soft);
    color: #fff !important;
    padding: .35rem .85rem .35rem .35rem;
    border-radius: 999px;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.splash-user-pill:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff !important; }
.splash-user-pill img {
    width: 30px; height: 30px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.18);
}
.splash-user-pill .splash-user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem;
}
.splash-user-pill .splash-user-name { line-height: 1; }
.splash-user-pill.no-dropdown-arrow::after { display: none !important; }
.splash-user-menu {
    background: #11172a;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: .5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    min-width: 220px;
}
.splash-user-menu .dropdown-item {
    color: #e2e8f0;
    border-radius: 8px;
    padding: .55rem .75rem;
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: .6rem;
}
.splash-user-menu .dropdown-item i { color: var(--accent-blue-soft); width: 16px; text-align: center; }
.splash-user-menu .dropdown-item:hover, .splash-user-menu .dropdown-item:focus {
    background: rgba(37,99,235,0.18);
    color: #fff;
}
.splash-user-menu .dropdown-divider { border-color: var(--border-subtle); margin: .35rem 0; }
@media (min-width: 992px) {
    .splash-user-dropdown { position: relative; }
    .splash-user-menu { right: 0; left: auto; }
}
.nav-login-header,
.nav-login-menu {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; box-sizing: border-box; width: auto;
    background: rgba(245,158,11,.10); color: #f59e0b !important;
    border: 1px solid rgba(245,158,11,.55); border-radius: 9px;
    padding: 0 14px; font-weight: 700; font-size: 14px;
    text-decoration: none; white-space: nowrap; line-height: 1;
}
.nav-login-header i, .nav-login-menu i { color: #f59e0b; }
.nav-login-header { display: none; }
.nav-login-header:hover, .nav-login-menu:hover {
    background: rgba(245,158,11,.18); color: #f59e0b !important;
    border-color: rgba(245,158,11,.85);
}
.nav-user-header { display: none; align-items: center; text-decoration: none; }
.nav-user-header img {
    width: 32px; height: 32px; object-fit: cover; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
}
.nav-user-header .splash-user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.btn-primary-blue {
    background: #3b82f6;
    color: #fff !important;
    border: 1px solid #2563eb;
    border-radius: 9px;
    height: 38px; box-sizing: border-box; width: auto;
    padding: 0 14px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; line-height: 1;
}
.btn-primary-blue i { color: #fff; }
.btn-primary-blue:hover {
    background: #2563eb;
    color: #fff;
}
.btn-ghost-light {
    background: rgba(255,255,255,0.05);
    color: #fff !important;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: .6rem 1.25rem;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.10);
    border-color: var(--border-soft);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    padding: 6.5rem 0 3.25rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 80% 20%, var(--accent-blue-glow) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 0% 80%, rgba(59,130,246,0.10) 0%, transparent 60%),
        var(--bg-deep);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 1.25rem 0 1.5rem;
    letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent-blue-soft); }
.hero p.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-hero-primary {
    background: var(--accent-blue);
    color: #fff !important;
    border: none;
    padding: .9rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .55rem;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-hero-primary:hover {
    background: var(--accent-blue-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff !important;
    border: 1px solid var(--border-soft);
    padding: .9rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .55rem;
    transition: background .15s ease, border-color .15s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
}
.trust-row {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.trust-row > p {
    font-size: .8rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .12em;
    margin: 0 0 .9rem;
}
.trust-grid {
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem;
    color: var(--text-muted);
}
.trust-item { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 500; }
.trust-item i { color: var(--accent-green); font-size: 1rem; }

/* Hero dashboard preview */
.hero-preview-wrap { position: relative; }
.hero-preview-wrap::before {
    content: '';
    position: absolute; inset: -40px;
    background: radial-gradient(60% 60% at 50% 50%, rgba(37,99,235,0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}
.hero-preview {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, #131a30 0%, #0d1326 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02);
    padding: 14px;
    font-size: 11px;
    color: #cbd5e1;
}
.preview-titlebar {
    display: flex; align-items: center; gap: .8rem;
    padding: 6px 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.preview-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3450; }
.preview-titlebar .dot.r { background: #ef4444; }
.preview-titlebar .dot.y { background: #f59e0b; }
.preview-titlebar .dot.g { background: #10b981; }
.preview-titlebar .ttl { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.preview-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding-top: 12px;
}
.preview-side {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 8px;
}
.preview-side .nav-row {
    display: flex; align-items: center; gap: .55rem;
    padding: .35rem .55rem;
    border-radius: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.preview-side .nav-row.active {
    background: rgba(37,99,235,0.18);
    color: #93c5fd;
}
.preview-side .nav-row i { width: 12px; text-align: center; opacity: .8; }
.preview-main { display: flex; flex-direction: column; gap: 12px; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
}
.kpi-card small { font-size: 9px; color: var(--text-dim); display: block; margin-bottom: 2px; }
.kpi-card strong { font-size: 16px; font-weight: 700; color: #fff; display: block; }
.kpi-card .delta { font-size: 9px; color: var(--accent-green); }
.kpi-card .delta.neg { color: var(--accent-red); }
.schedule-card, .feed-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
}
.schedule-card h6, .feed-card h6 {
    font-size: 11px; font-weight: 700; color: #fff;
    margin: 0 0 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.schedule-card h6 .dates { font-size: 9px; color: var(--text-dim); font-weight: 500; }
.gantt { display: flex; flex-direction: column; gap: 6px; }
.gantt-row {
    display: grid; grid-template-columns: 80px 1fr;
    gap: 8px; align-items: center;
    font-size: 9px; color: var(--text-muted);
}
.gantt-bar {
    height: 14px; border-radius: 4px;
    background: rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.gantt-bar::after {
    content: ''; position: absolute; left: var(--bar-l, 0); width: var(--bar-w, 50%);
    top: 2px; bottom: 2px;
    background: var(--bar-c, var(--accent-blue));
    border-radius: 3px;
}
.feed-row {
    display: grid; grid-template-columns: 8px 1fr auto;
    align-items: center; gap: .5rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 10px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); }
.feed-dot.red { background: var(--accent-red); }
.feed-dot.amber { background: var(--accent-amber); }
.feed-dot.green { background: var(--accent-green); }
.feed-row .meta { color: var(--text-muted); font-size: 9px; }
.feed-row strong { color: #fff; font-weight: 600; }
.preview-bottom {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    gap: 12px;
}
.mini-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px;
}
.mini-card h6 { font-size: 10px; color: var(--text-dim); margin: 0 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mini-card .big { font-size: 16px; font-weight: 800; color: #fff; }
.mini-card .progress {
    height: 4px; background: rgba(255,255,255,0.06);
    border-radius: 2px; margin-top: 6px; overflow: hidden;
}
.mini-card .progress > span {
    display: block; height: 100%; width: 72%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-soft));
}
.mini-card ul { list-style: none; padding: 0; margin: 0; font-size: 9.5px; color: var(--text-muted); }
.mini-card ul li { padding: 3px 0; display: flex; justify-content: space-between; }
.mini-card ul li strong { color: #fff; font-weight: 600; }

/* Stats */
.stats-bar {
    padding: 2.25rem 0 2.5rem;
    background: transparent;
    border: 0;
}
.stats-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.stat-item {
    display: flex; align-items: center; gap: .85rem; text-align: left;
}
.stat-item .icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(37,99,235,0.12);
    color: var(--accent-blue-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.stat-item .meta { display: flex; flex-direction: column; line-height: 1.15; }
.stat-item .value { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat-item .label { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }

/* Features grid */
.features-section { padding: 3.25rem 0; }
.feature-card {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1224 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    border-color: rgba(37,99,235,0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.feature-card .ic {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    background: rgba(37,99,235,0.18);
    color: var(--accent-blue-soft);
    flex-shrink: 0;
}
.feature-card.intel .ic { background: rgba(239,68,68,0.20); color: var(--accent-red); }
.feature-card .body { flex: 1 1 auto; min-width: 0; }
.feature-card h5 {
    font-size: 1.05rem; font-weight: 700; color: #fff;
    margin: 0 0 .4rem;
}
.feature-card p { color: var(--text-muted); font-size: .9rem; margin: 0 0 .65rem; }
.feature-card .more {
    color: var(--accent-blue-soft);
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
}
.feature-card .more:hover { color: #fff; }
.feature-card.intel .more { color: #fca5a5; }
.feature-card.intel .more:hover { color: #fff; }

/* Two-platform section */
.two-platform { padding: 3.25rem 0; background: rgba(255,255,255,0.015); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.platform-card {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1224 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.platform-card .ph {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.25rem;
}
.platform-card .ph .ic {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(37,99,235,0.18);
    color: var(--accent-blue-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.platform-card .ph-text { display: flex; flex-direction: column; min-width: 0; }
.platform-card .ph-text h3 { margin: .15rem 0 0; font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.15; }
.platform-card .ph-text .ph-sub { color: var(--text-muted); font-size: .92rem; margin: .4rem 0 0; max-width: 32rem; }

.platform-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.platform-card-body.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 991.98px) {
    .platform-card-body.split { grid-template-columns: 1fr; }
}

.platform-list { list-style: none; padding: 0; margin: 0; }
.platform-list li {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: #e2e8f0; font-size: .95rem;
}
.platform-list li:last-child { border-bottom: 0; }
.platform-list li i { color: var(--accent-blue-soft); font-size: 1rem; }

/* Field Intelligence: actual red, not purple */
.platform-card.intel {
    background:
        linear-gradient(180deg, rgba(239,68,68,0.22) 0%, rgba(239,68,68,0.06) 100%),
        #1a0a0e;
    border: 1px solid rgba(239,68,68,0.40);
    box-shadow: inset 0 0 0 1px rgba(239,68,68,0.05), 0 24px 50px rgba(239,68,68,0.10);
}
.platform-card.intel .ph .ic {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(239,68,68,0.18), 0 8px 20px rgba(239,68,68,0.35);
}
.platform-card.intel .platform-list li {
    border-bottom-color: rgba(239,68,68,0.20);
    color: #fde2e2;
}
.platform-card.intel .platform-list li i { color: var(--accent-red); }

.platform-map-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(239,68,68,0.30);
    min-height: 240px;
    height: 100%;
}
.platform-map { height: 100%; min-height: 240px; background: #0d1426; }
.platform-map.leaflet-container { background: #0d1426; }
.platform-map-label {
    position: absolute; left: 12px; bottom: 10px;
    font-size: .72rem; color: #fde2e2;
    background: rgba(0,0,0,0.6);
    padding: .3rem .6rem;
    border-radius: 6px;
    z-index: 500;
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 600;
}

/* Real-Time Intelligence panel */
.intel-section { padding: 3.25rem 0; }
.intel-panel {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1224 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr 1.2fr;
    min-height: 460px;
}
.intel-tabs {
    border-right: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
}
.intel-tabs .tab-head {
    font-size: .7rem;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-dim);
    padding: 0 1.25rem .85rem;
    font-weight: 600;
}
.intel-tab {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.25rem;
    color: var(--text-muted);
    font-size: .92rem; font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.intel-tab:hover { background: rgba(255,255,255,0.03); color: #fff; }
.intel-tab.active {
    background: rgba(37,99,235,0.10);
    color: #fff;
    border-left-color: var(--accent-blue);
}
.intel-tab .left { display: inline-flex; align-items: center; gap: .65rem; }
.intel-tab .ic {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem;
}
.intel-tab.danger .ic { background: rgba(239,68,68,0.18); color: #fca5a5; }
.intel-tab .pill {
    background: rgba(239,68,68,0.18);
    color: #fca5a5;
    font-size: .7rem; font-weight: 700;
    border-radius: 999px;
    padding: .15rem .55rem;
}
.intel-tab .pill.amber { background: rgba(245,158,11,0.18); color: #fcd34d; }
.intel-tab .pill.blue { background: rgba(37,99,235,0.18); color: #93c5fd; }
.intel-detail {
    padding: 2rem;
    border-right: 1px solid var(--border-subtle);
    display: flex; flex-direction: column;
}
.intel-detail .priority-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(239,68,68,0.18);
    color: #fca5a5;
    padding: .3rem .7rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    align-self: flex-start; margin-bottom: 1rem;
}
.intel-detail h3 {
    font-size: 1.4rem; font-weight: 700; color: #fff;
    margin: 0 0 1rem;
}
.intel-detail p.body { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.intel-rows { list-style: none; padding: 0; margin: 0 0 auto; }
.intel-rows li {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: .9rem;
}
.intel-rows li:last-child { border-bottom: 0; }
.intel-rows li .k { color: var(--text-dim); font-weight: 500; }
.intel-rows li .v { color: #fff; font-weight: 600; text-align: right; }
.intel-rows li .v.live { color: var(--accent-red); display: inline-flex; align-items: center; gap: .35rem; }
.intel-rows li .v.live::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-red);
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.intel-map-wrap {
    position: relative;
    background: #0d1426;
}
#intelMap {
    width: 100%; height: 100%;
    min-height: 460px;
    background: #0d1426;
}
#intelMap.leaflet-container { background: #0d1426; }
.intel-map-legend {
    position: absolute; right: 14px; top: 14px;
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: .85rem 1rem;
    min-width: 180px;
    z-index: 999;
}
.intel-map-legend h6 {
    font-size: .65rem;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-dim);
    font-weight: 700;
    margin: 0 0 .55rem;
}
.intel-map-legend ul { list-style: none; padding: 0; margin: 0; }
.intel-map-legend li {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; color: #cbd5e1;
    padding: .25rem 0;
}
.intel-map-legend li .sw {
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent-red);
}
.intel-map-legend li .sw.amber { background: var(--accent-amber); }
.intel-map-legend li .sw.blue { background: var(--accent-blue-soft); }
.intel-map-legend li .sw.green { background: var(--accent-green); }
.pulse-marker {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
    animation: pulseMark 1.8s infinite;
    border: 2px solid #fff;
}
@keyframes pulseMark {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    70%  { box-shadow: 0 0 0 18px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Pricing (dark restyle) */
.pricing-section { padding: 3.25rem 0; background: rgba(255,255,255,0.015); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.price-card-dark {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1224 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card-dark:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.price-card-dark.popular {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.4), 0 24px 60px rgba(37,99,235,0.18);
}
.price-card-dark .badge-pop {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent-blue);
    color: #fff;
    padding: .35rem 1.2rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
}
.price-card-dark h4 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 .35rem; }
.price-card-dark .tag { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.2rem; }
.price-amount-dark { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.price-amount-dark span { display: block; font-size: .95rem; font-weight: 500; color: var(--text-muted); margin: .45rem 0 0; }
.price-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.price-list li {
    display: flex; align-items: flex-start; gap: .55rem;
    padding: .45rem 0;
    color: #cbd5e1; font-size: .9rem;
}
.price-list li i { color: var(--accent-green); font-size: .9rem; margin-top: 3px; }
.btn-price-dark {
    display: block; width: 100%;
    margin-top: auto;
    padding: .85rem 1rem;
    border-radius: 10px;
    font-size: .95rem; font-weight: 600;
    text-align: center; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-price-dark.primary {
    background: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}
.btn-price-dark.primary:hover { background: #0b5ed7; transform: translateY(-1px); }
.btn-price-dark.primary i { color: #fff; margin-right: .45rem; }
.price-pay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
.price-pay-row article { display: flex; gap: .75rem; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 1rem 1.1rem; }
.price-pay-row .ic { width: 36px; height: 36px; border-radius: 8px; background: #0d6efd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-pay-row .ic i { color: #fff; }
.price-pay-row strong { display: block; color: #fff; font-size: .95rem; }
.price-pay-row span { color: var(--text-muted); font-size: .82rem; }
.price-fine { color: var(--text-dim); font-size: .85rem; line-height: 1.55; text-align: center; max-width: 820px; margin: 1.5rem auto 0; }
@media (max-width: 768px) {
    .price-pay-row { grid-template-columns: 1fr; }
}
.btn-price-dark.outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-soft);
}
.btn-price-dark.outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }
.price-trial { color: var(--text-dim); font-size: .8rem; margin-top: .75rem; text-align: center; }

/* Testimonials */
.quotes-section { padding: 3.25rem 0; }
.quote-card {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1224 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}
.quote-card .head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.quote-card .avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-soft));
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 1rem;
    flex-shrink: 0;
}
.quote-card .who strong { display: block; color: #fff; font-size: .95rem; font-weight: 700; }
.quote-card .who small { color: var(--text-muted); font-size: .82rem; }
.quote-card .stars { color: var(--accent-amber); font-size: .85rem; margin-bottom: .75rem; }
.quote-card p {
    color: #cbd5e1; font-size: .95rem; margin: 0; line-height: 1.6;
}
.quote-carousel-controls {
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    margin-top: 2rem;
}
.quote-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.quote-arrow:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); }
.quote-dots { display: inline-flex; gap: .4rem; }
.quote-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: none; padding: 0; cursor: pointer;
    transition: background .15s ease, width .15s ease;
}
.quote-dot.active { background: var(--accent-blue-soft); width: 22px; border-radius: 4px; }

/* EP Agent restyled */
.ep-section {
    padding: 3rem 0;
    background: rgba(255,255,255,0.015);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.ep-card {
    position: relative;
    overflow: hidden;
    background: #020b16 url('/images/banner-01.webp') 42% 42% / cover no-repeat;
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 18px;
    padding: 2.75rem;
    text-align: center;
}
.ep-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 11, 22, 0.68);
    pointer-events: none;
}
.ep-card > * { position: relative; z-index: 1; }
.ep-card .eyebrow {
    background: rgba(245,158,11,0.18);
    border-color: rgba(245,158,11,0.35);
    color: #fcd34d;
}
.ep-card h2 { font-size: 1.9rem; font-weight: 800; color: #fff; margin: 1rem 0 .85rem; }
.ep-card p { color: var(--text-muted); max-width: 580px; margin: 0 auto 1.75rem; font-size: 1rem; }
.btn-ep-primary {
    background: var(--accent-amber);
    color: #1a1a2e !important;
    border: none;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .95rem;
}
.btn-ep-primary:hover { background: #fbbf24; transform: translateY(-1px); }
.btn-ep-outline {
    background: transparent;
    color: #fcd34d !important;
    border: 1px solid rgba(245,158,11,0.45);
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .95rem;
}
.btn-ep-outline:hover { border-color: rgba(245,158,11,0.8); }

/* Final CTA banner */
.final-cta {
    padding: 3.5rem 0;
    background: #020b16 url('/images/nyc-skyline.webp') center center / cover no-repeat;
    text-align: center;
    position: relative; overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(2,11,22,0.78) 0%, rgba(2,11,22,0.62) 46%, rgba(2,11,22,0.78) 100%);
    pointer-events: none;
}
@media (max-width: 600px) {
    .final-cta { background-position: center 46%; }
    .ep-card { background-position: 46% center; }
}
.final-cta h2 {
    position: relative; z-index: 1;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800; color: #fff;
    margin: 0 0 .75rem;
}
.final-cta p {
    position: relative; z-index: 1;
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    max-width: 620px; margin: 0 auto 2rem;
}
.final-cta-buttons { position: relative; z-index: 1; display: inline-flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.btn-cta-white {
    background: #fff;
    color: var(--accent-blue) !important;
    padding: .9rem 1.85rem;
    border-radius: 10px;
    font-weight: 700; font-size: 1rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cta-white:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.btn-cta-outline-white {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.55);
    padding: .9rem 1.85rem;
    border-radius: 10px;
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}
.btn-cta-outline-white:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

/* Footer */
.site-footer { background: #07090f; padding: 3rem 0 1.25rem; border-top: 1px solid var(--border-subtle); }
.site-footer .row > * { margin-bottom: 1.5rem; }
.site-footer h6 {
    color: #fff;
    font-size: .85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer ul li a {
    color: var(--text-muted); font-size: .9rem;
    text-decoration: none;
    transition: color .12s ease;
}
.site-footer ul li a:hover { color: #fff; }
.site-footer .footer-brand { color: #cbd5e1; font-size: .9rem; max-width: 280px; }
.newsletter-form {
    display: flex; gap: .5rem;
    margin-top: .85rem;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-soft);
    color: #fff;
    border-radius: 8px;
    padding: .6rem .85rem;
    font-size: .88rem;
    outline: none;
}
.newsletter-form input::placeholder { color: var(--text-dim); }
.newsletter-form input:focus { border-color: var(--accent-blue); background: rgba(255,255,255,0.07); }
.newsletter-form button {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: .88rem; font-weight: 600;
    cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent-blue-soft); }
.footer-socials { margin-top: 1.25rem; display: inline-flex; gap: .55rem; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-muted) !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-socials a:hover { background: rgba(255,255,255,0.08); color: #fff !important; border-color: rgba(255,255,255,0.20); }
.soc2-pill {
    margin-top: 1rem;
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(16,185,129,0.10);
    border: 1px solid rgba(16,185,129,0.35);
    color: #6ee7b7;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    margin-top: 2.5rem; padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    color: var(--text-dim);
    font-size: .82rem;
}
.footer-bottom .legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.25rem;
}
.footer-bottom .legal-links a:hover { color: #fff; }
.newsletter-toast {
    position: fixed; left: 50%; bottom: 2rem;
    transform: translate(-50%, 30px);
    background: var(--accent-green); color: #06281c;
    padding: .85rem 1.4rem; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
}
.newsletter-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 991.98px) {
    #mainNav {
        background: #0a0e1a;
        z-index: 1100;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    #mainNav .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        margin: 0;
        padding: .85rem 1rem 1.1rem;
        background: #0a0e1a;
        border: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        border-radius: 0;
        box-shadow: none;
        z-index: 2;
    }
    #mainNav .navbar-collapse.collapsing,
    #mainNav .navbar-collapse.show { background: #0a0e1a; }
    #mainNav .nav-login-header, #mainNav .nav-user-header { display: inline-flex; margin-left: auto; margin-right: .55rem; }
    #navContent > .d-flex { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 8px 0 0; }
    #navContent .nav-login-menu, #navContent .btn-primary-blue { width: auto; align-self: center; }
    #mainNav .navbar-collapse.show {
        max-height: calc(100dvh - 76px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .splash-user-dropdown {
        position: relative;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }
    .splash-user-pill { width: 100%; justify-content: flex-start; }
    /* Popper right-aligns this menu to the icon, which sends it off the left edge. */
    .splash-user-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px 0 0 !important;
    }
    .splash-user-menu .dropdown-item {
        display: flex;
        width: 100%;
        min-height: 44px;
    }
    .platform-map-wrap, .intel-map-wrap, .leaflet-container {
        overflow: hidden;
        isolation: isolate;
    }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .intel-panel { grid-template-columns: 1fr; }
    .intel-tabs { display: flex; overflow-x: auto; padding: .85rem; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
    .intel-tabs .tab-head { display: none; }
    .intel-tab { white-space: nowrap; flex-shrink: 0; border-left: 0; border-bottom: 3px solid transparent; padding: .65rem 1rem; }
    .intel-tab.active { border-left-color: transparent; border-bottom-color: var(--accent-blue); }
    .intel-detail { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
    #intelMap { min-height: 320px; }
    .hero-preview-wrap { margin-top: 3rem; }
}
@media (max-width: 767.98px) {
    .hero { padding: 6rem 0 3rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-side { display: none; }
    .preview-bottom { grid-template-columns: 1fr; }
    .kpi-strip { grid-template-columns: repeat(2, 1fr); }
    .nav-link { padding: .55rem 0 !important; }
    .footer-bottom .legal-links a { margin-left: 0; margin-right: 1.25rem; }
}
