/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-dark: #000000;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent-blue: #2997ff;
    --accent-red: #ff3b30;
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}
body.loading { overflow: hidden; height: 100vh; }

/* --- 2. GLOBAL STYLES --- */
.liquid-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -10; overflow: hidden; background: #000; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: drift 60s infinite ease-in-out;
    will-change: transform;
    }
    .blob-1 {
    width: 50vw;
    height: 50vw;
    background: #002244;
    top: -10%;
    left: -10%;
    animation-duration: 70s;
    }

    .blob-2 {
    width: 60vw;
    height: 60vw;
    background: #1a0524;
    bottom: -10%;
    right: -10%;
    animation-duration: 90s;
    animation-delay: -20s;
    }

    .blob-3 {
    width: 40vw;
    height: 40vw;
    background: rgba(41, 151, 255, 0.08);
    top: 40%;
    left: 40%;
    animation-duration: 110s;
    animation-delay: -40s;
    }


    @keyframes drift {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(20px, -15px) scale(1.03) rotate(3deg);
    }
    50% {
        transform: translate(-15px, 10px) scale(0.98) rotate(-2deg);
    }
    75% {
        transform: translate(10px, 20px) scale(1.02) rotate(2deg);
    }
    100% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    }
    .blob {
    animation:
        drift 80s infinite ease-in-out,
        wobble 18s infinite ease-in-out;
    }

    @keyframes wobble {
    0%, 100% {
        border-radius: 48% 52% 50% 50%;
    }
    50% {
        border-radius: 52% 48% 55% 45%;
    }
    }

.apple-glass, .glass-nav { background: rgba(20, 20, 20, 0.75); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.apple-glass-card { background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.video-overlay, .radar-glow-anim, .modal-glow { pointer-events: none; }
a, button, .btn-primary, .btn-cta, .faq-item, .nav-links a, .trigger-modal, .scroll-link { cursor: pointer !important; position: relative; z-index: 20; }

    .pre-exp{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 20%, rgba(0,255,255,.12), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,.06), transparent 60%),
                #06080d;
    color: #fff;
    }

    .pre-exp-inner{
    text-align: center;
    padding: 24px;
    }

    .pre-exp-title{
    font-size: clamp(52px, 9vw, 120px);
    letter-spacing: 1px;
    margin: 0 0 18px;
    font-weight: 700;
    }

    .pre-exp-btn{
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
    color: #fff;
    padding: 14px 26px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
    }

    .pre-exp-btn:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.14);
    box-shadow: 0 14px 45px rgba(0,255,255,.18);
    }

    .pre-exp-note{
    margin: 14px 0 0;
    opacity: .7;
    font-size: 0.95rem;
    }

    /* hide state */
    .pre-exp.hidden{
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    }



/* --- 3. LOADER --- */
.shutter-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; justify-content: center; align-items: center; }
.shutter-top, .shutter-bottom { position: absolute; left: 0; width: 100%; height: 50%; background: #000; transition: transform 1.2s var(--ease-apple); }
.shutter-top { top: 0; transform-origin: top; }
.shutter-bottom { bottom: 0; transform-origin: bottom; }
.loader-content { position: relative; z-index: 10000; text-align: center; transition: opacity 0.5s; }
.loader-logo { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; color: white; }
.loader-tag { font-size: 0.8rem; color: var(--accent-blue); letter-spacing: 3px; }
.loader-bar-bg { width: 200px; height: 3px; background: #222; margin: 0 auto 15px; border-radius: 3px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--accent-blue); transition: width 0.5s ease-out; }
.loader-status { font-family: monospace; color: #555; font-size: 0.7rem; }
body.loaded .shutter-loader { pointer-events: none; visibility: hidden; transition: visibility 0s 1.2s; }
body.loaded .shutter-top { transform: translateY(-100%); }
body.loaded .shutter-bottom { transform: translateY(100%); }
body.loaded .loader-content { opacity: 0; pointer-events: none; }

.enable-sound{
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(12px);
  cursor: pointer;
}


/* --- 4. NAV --- */
.glass-nav { position: fixed; top: 0; left: 0; width: 100%; height: 70px; z-index: 9000; display: flex; align-items: center; }
.nav-scroll-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 5%; scrollbar-width: none; }
.nav-scroll-container::-webkit-scrollbar { display: none; }
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; min-width: 600px; padding-right: 20px; }
.logo { font-weight: 800; font-size: 1.4rem; white-space: nowrap; margin-right: 40px; }
.tag { font-size: 0.7rem; background: var(--accent-blue); padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-right: auto; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: 0.3s; white-space: nowrap; }
.nav-links a:hover { color: white; }

/* --- 5. UI ELEMENTS --- */
.btn-primary, .btn-cta { background: white; color: black; border: none; padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform 0.2s; }
.btn-cta { background: var(--accent-blue); color: white; }
.btn-primary:hover, .btn-cta:hover { transform: scale(1.05); }

/* --- 6. HERO --- */
.hero-section { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding: 0 20px; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; z-index: -2; transform: scale(1.15); transition: transform 2.5s ease-out; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); z-index: -1; }
body.loaded .hero-scale-anim { transform: scale(1); }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.intro-anim { opacity: 0; transform: translateY(30px); transition: 1s; }
body.loaded .intro-anim { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; color: var(--accent-blue); margin-bottom: 20px; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, #fff 40%, #555 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { animation: shimmer 5s infinite linear; }
@keyframes shimmer { to { background-position: 200% center; } }
.radar-glow-anim { position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; animation: pulse 6s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); } 50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); } }
.scroll-link { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 1rem; font-weight: 500; margin-top: 10px; transition: color 0.3s; cursor: pointer; }
.scroll-link:hover { color: white; }
.glass-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;

    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.4px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.05)
    );

    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.15);

    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* liquid light sweep */
.glass-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

/* hover interaction */
.glass-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 12px 40px rgba(0, 255, 255, 0.35),
        inset 0 0 18px rgba(255, 255, 255, 0.25);
}

.glass-btn:hover::before {
    transform: translateX(100%);
}

/* play icon polish */
.glass-btn .play-icon {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.glass-btn:hover .play-icon {
    transform: translateX(3px);
}

.glass-btn {
    animation: liquidFloat 4s ease-in-out infinite;
}

@keyframes liquidFloat {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(0, 255, 255, 0.25),
            inset 0 0 14px rgba(255, 255, 255, 0.18);
    }
    50% {
        box-shadow:
            0 14px 40px rgba(0, 255, 255, 0.4),
            inset 0 0 22px rgba(255, 255, 255, 0.3);
    }
}


.play-icon { font-size: 0.8rem; }
.scroll-video-section { height: 120vh; position: relative; padding-top: 50px; }
.cinema-wrapper { position: sticky; top: 100px; width: 100%; height: 70vh; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.cinema-mask { width: 70%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; }
.cinema-mask video { width: 100%; height: 100%; object-fit: cover; }
.cinema-overlay { position: absolute; bottom: 40px; left: 40px; z-index: 2; pointer-events: none; }
.cinema-overlay h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; margin: 0; }
    /* ===== Infinite Circular Marquee ===== */

    .marquee-section {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 12px 0;
    }

    .marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    }

    /* Edge fade (premium cinematic look) */
    .marquee-wrapper::before,
    .marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    }

    .marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
    }

    .marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
    }

    /* Scrolling track */
    .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    }

    /* Pause on hover */
    .marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
    }

    /* Text styling */
    .marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    }

    .marquee-content span {
    margin: 0 18px;
    }

    .dot {
    opacity: 0.4;
    }

    /* Animation */
    @keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
    }

.dot { margin: 0 40px; color: #222; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.manifesto-section { padding: 150px 20px; text-align: center; }
.reveal-text { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 10px; opacity: 0; filter: blur(10px); transition: 1s; }
.reveal-text.active { opacity: 1; filter: blur(0); }
.text-red { color: var(--accent-red) !important; } .text-blue { color: var(--accent-blue) !important; }

/* --- 7. STICKY SCROLL --- */
.sticky-container { display: flex; justify-content: space-between; align-items: flex-start; padding: 100px 5%; position: relative; gap: 80px; overflow: visible; }
.scroll-content { width: 40%; padding-bottom: 300px; position: relative; z-index: 10; }
.step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.2; transition: 0.5s; filter: blur(4px); }
.step.active { opacity: 1; filter: blur(0); }
.step h3 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 700; }
.step p { font-size: 1.15rem; color: #98989d; line-height: 1.6; }
.price-tag { color: var(--accent-blue); font-weight: 700; font-size: 1.2rem; margin-top: 25px; }
.tag-outline { border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; display: inline-block; margin-bottom: 15px; }
.sticky-visual { width: 50%; height: 70vh; position: sticky; top: 15vh; display: flex; align-items: center; justify-content: center; z-index: 5; }
.video-stack { width: 100%; height: 100%; position: relative; border-radius: 30px; overflow: hidden; }
.model-visual { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: 0.8s; transform: scale(1.05); }
.model-visual.active { opacity: 1; transform: scale(1); z-index: 2; }
.model-visual video { width: 100%; height: 100%; object-fit: cover; }
.visual-label { position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0,0,0,0.8); backdrop-filter: blur(5px); padding: 10px 0; }
.mobile-media-card { display: none; margin-bottom: 25px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: rgba(20,20,20,0.6); position: relative; aspect-ratio: 16/9; }
.mobile-media-card video { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.6); color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.7rem; backdrop-filter: blur(4px); }

/* --- 8. NEW: HARDWARE GRID --- */
.hardware-section { padding: 100px 5%; background: transparent; }
.hardware-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 50px; }
.hw-card { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.hw-icon { font-size: 2rem; margin-bottom: 15px; }
.hw-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: white; }
.hw-card p { font-size: 0.9rem; color: #888; }

/* --- 9. NEW: ARCHITECTURE --- */
.arch-section { padding: 100px 5%; }
.arch-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 60px; }
.arch-col { text-align: center; flex: 1; }
.arch-col h3 { font-size: 1.5rem; color: white; margin-bottom: 5px; }
.arch-col p { color: #666; margin-bottom: 20px; }
.arch-node { background: var(--accent-blue); color: white; padding: 10px 20px; border-radius: 50px; display: inline-block; font-weight: 700; font-size: 0.9rem; }
.arch-arrow { font-size: 2rem; color: #333; }

/* --- 10. NEW: INSTALL & ROI --- */
.install-section { padding: 100px 5%; }
.install-box { padding: 60px; text-align: center; }
.install-steps { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.i-step { display: flex; align-items: center; gap: 10px; color: #ccc; }
.i-step span { width: 30px; height: 30px; background: #333; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700; }
.roi-section { padding: 100px 5%; }
.roi-box { display: flex; justify-content: space-between; align-items: center; padding: 60px; }
.roi-text h2 { font-size: 2.5rem; margin-bottom: 10px; }
.roi-number { font-size: 4rem; font-weight: 800; color: #4cd964; }
.roi-number span { font-size: 6rem; }

/* --- 11. EXISTING SECTIONS --- */
.workflow-section, .fusion-section, .safety-section { padding: 100px 5%; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 15px; text-align: center; margin-bottom: 60px; }
.workflow-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.workflow-card { flex: 1; padding: 40px; border-radius: 20px; min-width: 250px; }
.step-number { font-size: 3rem; font-weight: 800; color: #222; margin-bottom: 10px; }
.workflow-card h3 { color: white; margin-bottom: 10px; }
.workflow-card p { font-size: 0.9rem; color: #777; }
.workflow-arrow { font-size: 2rem; color: #333; }
.fusion-visual-container { margin-top: 80px; position: relative; height: 500px; perspective: 1500px; width: 100%; }
.layer { width: 600px; height: 350px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); position: absolute; left: 50%; top: 50%; border-radius: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 50px rgba(0,0,0,0.5); backdrop-filter: blur(5px); max-width: 90%; }
.layer-camera { transform: translate(-50%, -20%) rotateX(50deg) scale(0.9); z-index: 1; }
.layer-radar { transform: translate(-50%, -80%) rotateX(50deg) scale(0.9); z-index: 2; border-color: var(--accent-blue); background: rgba(41, 151, 255, 0.05); }
.layer-label { position: absolute; bottom: 20px; left: 20px; font-size: 0.8rem; font-weight: 600; color: #888; letter-spacing: 1px; }
.radar-points { width: 100%; height: 100%; background-image: radial-gradient(var(--accent-blue) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.5; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.glass-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); backdrop-filter: blur(20px); padding: 40px; border-radius: 24px; }
.red-theme { border-left: 2px solid var(--accent-red); }
.app-section { padding: 100px 5%; background: #080808; }
.app-layout { display: flex; align-items: center; justify-content: space-between; gap: 60px; max-width: 1100px; margin: 0 auto; }
.app-text { flex: 1; }
.app-text h2 { font-size: 3.5rem; margin: 20px 0; }
.subtitle-text { font-size: 1.1rem; color: #888; margin-bottom: 40px; line-height: 1.6; }
.feature-row { display: flex; gap: 20px; margin-bottom: 30px; }
.icon-box { font-size: 2rem; background: rgba(255,255,255,0.05); width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 12px; }
.feature-row h4 { font-size: 1.1rem; margin-bottom: 5px; color: white; }
.feature-row p { font-size: 0.9rem; color: #777; }
.app-visual { flex: 1; display: flex; justify-content: center; }
.phone-frame { width: 320px; height: 650px; background: #000; border: 4px solid #333; border-radius: 40px; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.notch { width: 140px; height: 25px; background: #000; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10; }

    .phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    }

    /* Image container */
    .map-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    }

    .map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover for cinematic, use contain if needed */
    display: block;
    animation: slow-zoom 20s ease-in-out infinite alternate;
    }
    @keyframes slow-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.008); }
    }
    

    /* UI overlay stays above image */
    .bus-card-ui {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    }
        .phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.02),
        rgba(0,0,0,0.15)
    );
    z-index: 3;
    pointer-events: none;
    }


.bus-badge { background: var(--accent-blue); color: white; display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.occupancy-bar { width: 100%; height: 6px; background: #333; border-radius: 3px; margin: 15px 0; overflow: hidden; }
.fill.green { width: 40%; background: #4cd964; height: 100%; }
.police-section { padding: 120px 5%; background: transparent; }
.police-header { margin-bottom: 60px; }
.red-border { border-color: var(--accent-red); color: var(--accent-red); }
.police-dashboard { overflow: hidden; }
.police-grid { display: grid; grid-template-columns: 2fr 1fr; height: 500px; }
/* ===== Police Live Incident Map ===== */

    .police-map {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    }

    /* Map image */
    .map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    }

        .map-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    z-index: 10; /* 👈 bring it above tint & scanlines */
    }

    /* Dark surveillance tint */
    .police-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 20, 30, 0.55),
        rgba(0, 0, 0, 0.85)
    );
    z-index: 2;
    pointer-events: none;
    }

    /* Subtle scan-line overlay */
    .police-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 2px,
        transparent 4px
    );
    z-index: 3;
    pointer-events: none;
    }

    /* Radar ping dot */
    .radar-ping {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 255, 180, 0.95);
    box-shadow: 0 0 18px rgba(0, 255, 180, 0.9);
    z-index: 4;
    animation: radarPulse 2.2s infinite ease-out;
    }


    /* Radar animation */
    @keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
    }

@keyframes ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
.police-sidebar { padding: 30px; overflow-y: auto; }
.alert-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-family: monospace; font-size: 0.85rem; color: #888; }
.alert-item.high-priority { color: var(--accent-red); font-weight: 700; }
.time { opacity: 0.6; }
.dashboard-section { padding: 100px 5%; background: transparent; perspective: 1200px; }
.dashboard-3d-wrapper { margin-top: 60px; transform: rotateX(20deg) scale(0.9); transition: transform 0.8s var(--ease-apple); }
.dashboard-3d-wrapper:hover { transform: rotateX(0deg) scale(1); }
.dashboard-screen { background: #1c1c1e; border-radius: 12px; border: 1px solid #333; overflow: hidden; max-width: 1000px; margin: 0 auto; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.screen-header { background: #2c2c2e; padding: 15px; display: flex; align-items: center; gap: 20px; }
.dot-group span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #555; margin-right: 6px; }
.url-bar { background: rgba(0,0,0,0.3); color: #888; padding: 6px 15px; border-radius: 8px; font-size: 0.8rem; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px; flex: 1; max-width: 400px; margin: 0 auto; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.lock-icon { font-size: 0.8rem; }
.url-domain { color: white; font-weight: 500; }
.url-path { opacity: 0.5; }
.screen-body { padding: 40px; display: flex; gap: 30px; }
.widget { background: #2a2a2a; padding: 20px; border-radius: 10px; flex: 1; }
.big-num { font-size: clamp(1.5rem, 4vw, 2.2rem); color: white; font-weight: 700; margin: 10px 0; }
.graph-placeholder { flex: 2; display: flex; align-items: flex-end; gap: 12px; height: 160px; }
.bar { flex: 1; background: #3a3a3a; transition: height 1s; border-radius: 4px; }
.bar:hover { background: var(--accent-blue); }
.faq-section { padding: 100px 5%; background: #080808; }
.faq-grid { max-width: 800px; margin: 50px auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 0; transition: background 0.2s; }
.faq-item:hover { background: rgba(255,255,255,0.02); }
.faq-question { font-size: 1.2rem; color: white; display: flex; justify-content: space-between; cursor: pointer; transition: color 0.3s; }
.faq-question:hover { color: var(--accent-blue); }
.faq-answer { color: #777; max-height: 0; overflow: hidden; transition: max-height 0.5s ease; font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 200px; margin-top: 10px; }
.plus { font-weight: 300; font-size: 1.5rem; }
.trust-section { padding: 50px 20px; }
.trust-label { color: #555; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 20px; }
.trust-logos span { color: #888; font-weight: 600; margin: 0 15px; }
.mega-footer { padding: 80px 5% 40px; background: #000; border-top: 1px solid #111; font-size: 0.9rem; color: #666; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-desc { margin-top: 15px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { color: white; margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: block; color: #666; text-decoration: none; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid #111; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { background: #111; border: 1px solid #333; padding: 50px; border-radius: 24px; max-width: 500px; width: 90%; position: relative; text-align: center; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-card { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; color: #666; font-size: 1.5rem; cursor: pointer; }
.close-modal:hover { color: white; }
.modal-form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.modal-form input { padding: 15px; background: #222; border: 1px solid #333; color: white; border-radius: 8px; font-family: inherit; }
.modal-form input:focus { outline: none; border-color: var(--accent-blue); }

    /* =========================
    CONTACT / DASHBOARD SECTION
    ========================= */

    .dashboard-section {
        padding: 100px 20px;
        background: transparent;
        position: relative;
    }

    .dashboard-section .container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .center-text {
        text-align: center;
        font-size: 2.4rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 50px;
        color: #eaeaea;
    }

    /* =========================
    GLASS CARD
    ========================= */

    .contact-form.apple-glass-card {
        max-width: 520px;
        margin: 0 auto;
        padding: 40px;
        border-radius: 22px;

        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.6),
            inset 0 0 0.5px rgba(255, 255, 255, 0.3);
    }

    /* =========================
    FORM LAYOUT
    ========================= */

    .contact-form form {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group label {
        font-size: 0.85rem;
        font-family: monospace;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* =========================
    INPUTS & TEXTAREA
    ========================= */

    .form-group input,
    .form-group textarea {
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 0.95rem;
        color: #ffffff;

        outline: none;
        transition: 
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            background 0.3s ease;
    }

    .form-group textarea {
        resize: none;
    }

    /* Focus glow */
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: rgba(255, 80, 80, 0.7);
        box-shadow:
            0 0 0 2px rgba(255, 80, 80, 0.15),
            0 0 14px rgba(255, 80, 80, 0.25);
        background: rgba(0, 0, 0, 0.55);
    }

    /* Placeholder color */
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    /* =========================
    BUTTON
    ========================= */

    .btn-primary {
        margin-top: 10px;
        padding: 14px;
        border-radius: 14px;

        background: linear-gradient(
            135deg,
            #ff3b3b,
            #b80000
        );

        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: white;
        cursor: pointer;

        box-shadow:
            0 12px 30px rgba(255, 60, 60, 0.35);

        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            filter 0.25s ease;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow:
            0 18px 40px rgba(255, 60, 60, 0.55);
        filter: brightness(1.05);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow:
            0 10px 22px rgba(255, 60, 60, 0.35);
    }
        .btn-primary.trigger-modal {
        margin-top: 10px;
        padding: 14px;
        border-radius: 14px;

        background: linear-gradient(
            135deg,
            #ff3b3b,
            #b80000
        );

        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: white;
        cursor: pointer;

        box-shadow:
            0 12px 30px rgba(255, 60, 60, 0.35);

        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            filter 0.25s ease;
    }

    .btn-primary.trigger-modal:hover {
        transform: translateY(-2px);
        box-shadow:
            0 18px 40px rgba(255, 60, 60, 0.55);
        filter: brightness(1.05);
    }

    .btn-primary.trigger-modal:active {
        transform: translateY(0);
        box-shadow:
            0 10px 22px rgba(255, 60, 60, 0.35);
    }

    /* =========================
    RESPONSIVE
    ========================= */

    @media (max-width: 600px) {
        .contact-form.apple-glass-card {
            padding: 30px 22px;
        }

        .center-text {
            font-size: 2rem;
        }
    }


@media (min-width: 2000px) {
    body { font-size: 20px; }
    .container, .nav-content { max-width: 1800px; }
    h1 { font-size: 8rem; }
    .sticky-visual { height: 70vh; top: 15vh; }
}

/* --- 12. MOBILE OPTIMIZATIONS (FIXED) --- */

/* Tablet / Small Laptop Adjustments */
@media (max-width: 1024px) {
    .sticky-container { gap: 40px; }
    .sticky-visual { height: 50vh; top: 25vh; }
    .scroll-content { width: 45%; }
    .step h3 { font-size: 2rem; }
    .grid-2-col { gap: 20px; }
    .app-layout { flex-direction: column; }
    .app-text, .app-visual { width: 100%; }
    /* Fix: Ensure grid items don't stretch weirdly */
    .hardware-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    /* 1. Global Spacing & Typography Fixes */
    body { overflow-x: hidden; width: 100%; }
    h1 { font-size: 3rem; line-height: 1.1; } /* Reduce from clamp default */
    .section-header h2 { font-size: 2.2rem; }
    
    /* 2. Navigation Fixes (Critical) */
    .glass-nav { height: 60px; padding: 0; }
    /* REMOVE the 600px limit that causes horizontal scroll */
    .nav-content { min-width: auto; width: 100%; padding: 0 20px; } 
    .logo { margin-right: 20px; font-size: 1.2rem; }
    .nav-links { gap: 20px; } 
    .btn-primary.trigger-modal { padding: 8px 16px; font-size: 0.8rem; }

    /* 3. Hero Section */
    .hero-section { padding: 0 15px; }
    .video-bg { transform: scale(1); /* Prevent zoom cutoffs */ }
    
    /* 4. Desktop Hiding & Mobile Showing */
    .desktop-only { display: none !important; }
    .mobile-media-card { display: block; margin-bottom: 20px; }
    
    /* 5. Sticky/Models Section */
    .sticky-container { display: flex; flex-direction: column; padding: 60px 20px; gap: 0; }
    .sticky-visual { display: none; }
    .scroll-content { width: 100%; padding-bottom: 0; }
    .step { 
        min-height: auto; 
        margin-bottom: 60px; 
        opacity: 1; 
        filter: none; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        padding-bottom: 40px;
    }
    .step:last-child { border-bottom: none; }
    
    /* 6. Fusion Section (3D Fixes) */
    .fusion-visual-container { 
        transform: scale(0.5); /* Scale down significantly */
        transform-origin: center top;
        height: 300px; /* Reduce height constraint */
        margin-top: 40px;
        width: 100%;
        perspective: 800px;
    }
    /* Fix the hardcoded width of layers causing overflow */
    .layer { width: 90vw; max-width: 300px; height: 200px; } 

    /* 7. Dashboard/Owner Section */
    .dashboard-3d-wrapper { 
        transform: none; /* Remove 3D tilt on mobile for readability */
        margin-top: 30px;
    }
    .screen-body { flex-direction: column; padding: 20px; }
    .screen-header { padding: 10px; }
    .url-bar { max-width: 100%; }

    /* 8. Grids & Layouts */
    .grid-2-col, .footer-grid, .workflow-grid, .hardware-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* 9. Arrows & Flow */
    .workflow-arrow, .arch-arrow { 
        transform: rotate(90deg); 
        margin: 10px auto; 
        display: block; 
        text-align: center;
        width: 100%;
    }
    .arch-wrapper { flex-direction: column; padding: 30px; gap: 20px; }
    
    /* 10. Install & ROI */
    .install-box, .roi-box { padding: 30px 20px; }
    .install-steps { flex-direction: column; align-items: flex-start; gap: 20px; }
    .roi-box { flex-direction: column; text-align: center; gap: 30px; }
    .roi-number { font-size: 3rem; }
    .roi-number span { font-size: 4rem; }

    /* 11. Police Section */
    .police-grid { grid-template-columns: 1fr; height: auto; display: flex; flex-direction: column; }
    .police-map { height: 300px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
    
    /* 12. App Section */
    .phone-frame { width: 100%; max-width: 300px; height: 550px; margin: 0 auto; }
    .app-text { margin-bottom: 50px; text-align: left; }
    
    /* 13. General Padding Reductions */
    .manifesto-section, .hardware-section, .workflow-section, .fusion-section, .safety-section, .app-section, .police-section, .dashboard-section, .roi-section, .install-section, .arch-section, .faq-section {
        padding: 60px 20px;
    }
    
    /* 14. Modals */
    .modal-card { width: 95%; padding: 30px; }
}
.success-message {
    display: none;
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
    color: #9cffd1;
    font-weight: 500;
}
.error-message {
    display: none;
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
    color: #ff6b6b;
    font-weight: 500;
}   