/* =====================================================================
   UDUS SafeNet — Public Portal
   Deep slate dark mode, frosted glass panels, glowing emerald accents.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --slate-950: #05070a;
    --slate-900: #0b0f16;
    --slate-850: #10151d;
    --slate-800: #161c26;
    --slate-700: #232b38;
    --slate-500: #64748b;
    --slate-300: #b8c2d0;
    --slate-100: #eef1f6;

    --emerald: #10b981;
    --emerald-bright: #34e8a8;
    --emerald-dim: rgba(16, 185, 129, 0.16);

    --badge-blue: #93c5fd;
    --badge-purple: #d8b4fe;

    --amber: #f5b942;
    --red: #ef4444;
    --danger-text: #fca5a5;
    --danger-bg: rgba(239, 68, 68, 0.14);
    --danger-border: rgba(239, 68, 68, 0.3);

    --glass-bg: rgba(22, 28, 38, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.04);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

    --grain-opacity: 0.025;
    --glow-opacity: 0.55;

    --navbar-bg: rgba(11, 15, 22, 0.72);
    --navbar-mobile-bg: rgba(13, 18, 27, 0.88);
    --navbar-sheen: rgba(255, 255, 255, 0.06);

    --input-bg: rgba(5, 7, 10, 0.5);
    --pill-bg: rgba(0, 0, 0, 0.25);
}

/* ---- Light theme ---- */
[data-theme="light"] {
    --slate-950: #f4f6fa;
    --slate-900: #eaeef4;
    --slate-850: #e2e7ee;
    --slate-800: #dbe1e9;
    --slate-700: #c3cbd6;
    --slate-500: #5b6472;
    --slate-300: #3d4552;
    --slate-100: #10151d;

    --emerald-dim: rgba(16, 185, 129, 0.12);
    --emerald-bright: #059669; /* darker than the dark-theme value — #34e8a8 is far too pale to read on a light background */

    --badge-blue: #1d4ed8;
    --badge-purple: #7e22ce;

    --danger-text: #b91c1c;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.28);

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(15, 23, 42, 0.09);
    --glass-highlight: rgba(15, 23, 42, 0.04);

    --grain-opacity: 0.015;
    --glow-opacity: 0.35;

    --navbar-bg: rgba(255, 255, 255, 0.72);
    --navbar-mobile-bg: rgba(255, 255, 255, 0.9);
    --navbar-sheen: rgba(15, 23, 42, 0.035);

    --input-bg: rgba(255, 255, 255, 0.65);
    --pill-bg: rgba(15, 23, 42, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body,
.glass,
.btn,
.navbar,
.location-status,
.location-prompt {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--slate-100);
    background:
        radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.10), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(52, 232, 168, 0.06), transparent 40%),
        linear-gradient(180deg, var(--slate-950) 0%, var(--slate-900) 100%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--emerald-dim); color: var(--slate-100); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

/* ---- Layout shells ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grain-overlay {
    pointer-events: none;
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    z-index: 0;
}

/* ---- Floating ambient glow orbs (depth behind the glass) ---- */
.glow-orb {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
    filter: blur(80px); opacity: var(--glow-opacity); animation: float 16s ease-in-out infinite;
}
.glow-orb-a { width: 480px; height: 480px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%); }
.glow-orb-b { width: 420px; height: 420px; top: 30vh; right: -160px; background: radial-gradient(circle, rgba(52,232,168,0.22), transparent 70%); animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,-30px); } }
@media (max-width: 640px) { .glow-orb { display: none; } }

/* ---- Navbar ---- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--glass-border);
    /* NOTE: backdrop-filter deliberately lives on ::before, not here — see below. */
}
/* A blurred/filtered element becomes the containing block for any
   position:fixed descendant. .nav-links (the mobile slide-in panel) is a
   real DOM child of .navbar and needs to be fixed relative to the actual
   viewport, not this ~70px bar — so the blur is applied via a pseudo-layer
   instead of directly on .navbar itself. */
.navbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--emerald), #0b7a56);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
    font-size: 1.1rem;
}
.brand small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--slate-500); letter-spacing: 0.6px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .nav-links button {
    font-family: inherit; font-size: 0.9rem; color: var(--slate-300);
    background: none; border: none; cursor: pointer;
    padding: 9px 16px; border-radius: 999px; transition: all 0.18s ease;
}
.nav-links a:hover, .nav-links button:hover { color: var(--slate-100); background: var(--glass-highlight); }

/* ---- Mobile nav: hamburger toggle, close button, backdrop ---- */
.navbar-right { display: flex; align-items: center; gap: 10px; }

.nav-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--slate-100);
    font-size: 1.05rem; cursor: pointer; transition: all 0.18s ease;
}
.nav-icon-btn:hover { border-color: rgba(16,185,129,0.4); background: var(--glass-highlight); }

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--slate-100);
    font-size: 1.1rem; cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(16,185,129,0.4); background: var(--glass-highlight); }
.nav-close { display: none; }
.nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 290;
    background: rgba(5, 8, 12, 0.6); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: 0.92rem;
    padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
    color: #052018;
    box-shadow: 0 0 0 1px rgba(16,185,129,0.35), 0 8px 24px rgba(16, 185, 129, 0.28);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(52,232,168,0.5), 0 10px 30px rgba(16, 185, 129, 0.42); }

.btn-ghost {
    background: var(--glass-highlight);
    border-color: var(--glass-border);
    color: var(--slate-100);
}
.btn-ghost:hover { background: var(--glass-border); }

.btn-danger { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-border); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 9px; }

/* ---- Glass panel ---- */
.glass {
    position: relative;
    background:
        linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 20px 60px -20px rgba(0,0,0,0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 30%, rgba(16,185,129,0.12) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

/* ---- Hero ---- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-copy { animation: heroCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes heroCopyIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px; color: var(--emerald-bright);
    background: var(--emerald-dim); border: 1px solid rgba(16,185,129,0.3);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-bright); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title-strong { display:flex; flex-direction:column; gap:4px; font-size:clamp(2.5rem,5.3vw,4.45rem)!important; line-height:.98!important; letter-spacing:-2.4px!important; text-wrap:balance; }
.hero-title-strong .hero-kicker { font-size:.32em; line-height:1.2; letter-spacing:2.2px; color:var(--emerald-bright); opacity:.9; }
.hero-title-strong strong { font-weight:900; color:var(--slate-100); }
.hero-title-strong .hero-highlight { color:var(--emerald-bright); text-shadow:0 0 28px rgba(52,232,168,.18); }
.hero-title-strong .hero-brand-name { font-weight:1000; color:var(--slate-100); letter-spacing:-1px; text-shadow:0 0 24px rgba(255,255,255,.12), 0 0 32px rgba(52,232,168,.22); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; margin: 0 0 20px; letter-spacing: -1px; max-width: 700px; }
.hero h1 span { background: linear-gradient(120deg, var(--emerald-bright), #7ef0c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.1rem; color: var(--slate-300); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--glass-border); border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; margin-top: 60px; }
.stat-cell { background: var(--slate-850); padding: 22px 24px; }
.stat-cell .num { font-size: 1.8rem; font-weight: 800; color: var(--emerald-bright); font-family: var(--font-mono); }
.stat-cell .lbl { font-size: 0.82rem; color: var(--slate-500); margin-top: 4px; }

/* ---- Hero visual: an original "product mockup" — a live tactical map
   card with pulsing incident markers and floating status chips — rather
   than generic stock photography. Ties directly to what SafeNet does. ---- */
.hero-visual {
    position: relative; min-height: 380px;
    animation: heroVisualIn 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroVisualIn { from { opacity: 0; transform: translateY(22px) rotate(1.5deg) scale(0.97); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }

.hero-device {
    position: relative; width: 100%; aspect-ratio: 4 / 3.1; padding: 0;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 40px 50px 90px -30px rgba(0,0,0,0.65);
}
.hero-device-bar { display: flex; align-items: center; gap: 7px; padding: 16px 18px; border-bottom: 1px solid var(--glass-border); }
.hero-device-dot { width: 9px; height: 9px; border-radius: 50%; opacity: 0.85; }
.hero-device-label { margin-left: 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.6px; color: var(--slate-500); text-transform: uppercase; }

.hero-map { position: relative; height: calc(100% - 52px); overflow: hidden; background:
    radial-gradient(circle at 30% 20%, rgba(16,185,129,0.10), transparent 55%),
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: auto, 26px 26px, 26px 26px;
}
.hero-map-block { position: absolute; background: var(--slate-800); border: 1px solid var(--glass-border); border-radius: 6px; opacity: 0.85; }
.hero-map-block.b1 { top: 14%; left: 10%; width: 22%; height: 26%; }
.hero-map-block.b2 { top: 46%; left: 8%; width: 16%; height: 18%; }
.hero-map-block.b3 { top: 12%; left: 58%; width: 28%; height: 20%; }
.hero-map-block.b4 { top: 62%; left: 55%; width: 20%; height: 24%; }
.hero-map-path { position: absolute; top: 40%; left: 5%; width: 90%; height: 2px; background: var(--glass-border); transform: rotate(-4deg); }

.hero-pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); }
.hero-pin.critical { background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; }
.hero-pin.high { background: #ffb020; box-shadow: 0 0 10px #ffb020; }
.hero-pin.resolved { background: #34e8a8; box-shadow: 0 0 10px #34e8a8; }
.hero-pin-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; animation: pinRing 2.4s ease-out infinite; }
.hero-pin.critical .hero-pin-ring { color: #ff3b3b; }
.hero-pin.high .hero-pin-ring { color: #ffb020; animation-delay: 0.6s; }
.hero-pin.resolved .hero-pin-ring { color: #34e8a8; animation-delay: 1.2s; }
@keyframes pinRing { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

.hero-float-card, .hero-float-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 20px 40px -14px rgba(0,0,0,0.6);
}
.hero-float-a { bottom: -22px; left: -18px; animation: floatBob 6s ease-in-out infinite; }
.hero-float-b { top: -18px; right: 6%; padding: 10px 14px; font-size: 0.8rem; font-weight: 600; color: var(--emerald-bright); animation: floatBob 5s ease-in-out infinite 0.4s; }
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-float-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--emerald-dim); color: var(--emerald-bright); display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.hero-float-title { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.hero-float-sub { font-size: 0.72rem; color: var(--slate-500); margin-top: 2px; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { order: 2; max-width: 420px; margin: 20px auto 0; }
    .hero-copy { order: 1; text-align: center; }
    .hero-actions, .hero-badge { justify-content: center; }
    .hero-note { justify-content: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-copy, .hero-visual, .hero-float-a, .hero-float-b, .hero-pin-ring { animation: none !important; }
}

/* ---- Feature cards ---- */
.section { padding: 70px 0; position: relative; z-index: 1; }
.section-head { max-width: 620px; margin: 0 0 44px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--emerald); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; font-weight: 700; letter-spacing: -0.5px; }
.section-head p { color: var(--slate-300); margin: 0; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-card { padding: 26px; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(16,185,129,0.35); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 50px -18px rgba(16,185,129,0.25); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--emerald-dim); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 16px; color: var(--emerald-bright); }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--slate-300); font-size: 0.92rem; }

.hero-note { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--slate-500); margin-top: 20px; }
.hero-note i { color: var(--emerald-bright); }
.hero-note a { color: var(--emerald-bright); font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* ---- Emergency contacts ---- */
.emergency-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.emergency-card { padding: 26px; text-decoration: none; display: block; }
.emergency-card:hover { transform: translateY(-3px); border-color: rgba(239,68,68,0.35); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 50px -18px rgba(239,68,68,0.22); }
.emergency-icon { background: var(--danger-bg); color: var(--danger-text); }
.emergency-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.emergency-card p { margin: 0 0 14px; color: var(--slate-300); font-size: 0.86rem; }
.emergency-number { font-family: var(--font-mono); font-weight: 700; color: var(--slate-100); font-size: 1.05rem; letter-spacing: 0.3px; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 20px 24px; cursor: pointer; }
.faq-item summary { font-weight: 600; font-size: 0.96rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--emerald-bright); font-weight: 400; margin-left: 12px; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: var(--slate-300); font-size: 0.9rem; line-height: 1.6; }

/* ---- Location detection status (report modal) ---- */
.location-status { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: var(--slate-300); }
.location-status.source-gps { color: var(--emerald-bright); border-color: rgba(16,185,129,0.3); background: var(--emerald-dim); }
.location-status.source-ip { color: var(--amber); border-color: rgba(245,185,66,0.3); background: rgba(245,185,66,0.08); }
.location-status.source-error { color: var(--danger-text); border-color: var(--danger-border); background: var(--danger-bg); }

/* ---- Explicit "Use My Current Location" consent prompt ---- */
.location-prompt {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: var(--radius-md); border: 1px dashed var(--glass-border);
    background: rgba(255,255,255,0.02); margin-bottom: 10px;
}
.location-prompt i.fa-location-crosshairs { font-size: 1.3rem; color: var(--emerald-bright); flex-shrink: 0; }
.location-prompt > div { flex: 1; min-width: 0; }
.location-prompt strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.location-prompt p { margin: 0; font-size: 0.78rem; color: var(--slate-500); line-height: 1.5; }
.location-prompt .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) {
    .location-prompt { flex-direction: column; align-items: stretch; text-align: center; }
    .location-prompt .btn { width: 100%; }
}

/* ---- Anonymous tracking code result ---- */
.tracking-code-box { text-align: center; padding: 22px; border-radius: var(--radius-md); background: var(--emerald-dim); border: 1px solid rgba(16,185,129,0.35); margin-bottom: 20px; }
.tracking-code-label { font-size: 0.78rem; color: var(--slate-300); margin-bottom: 8px; }
.tracking-code-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: 1.5px; color: var(--emerald-bright); margin-bottom: 12px; }
.tracking-qr { border-radius: 10px; margin: 4px auto 6px; display: block; }
.tracking-qr-hint { font-size: 0.72rem; color: var(--slate-500); margin-bottom: 14px; }
.tracking-code-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.duplicate-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(245,185,66,0.08); border: 1px solid rgba(245,185,66,0.3); color: var(--amber); font-size: 0.8rem; text-align: left; }

/* ---- Offline report queue badge ---- */
#btn-open-report, #btn-open-report-guest { position: relative; }
.offline-queue-badge {
    position: absolute; top: -7px; right: -7px;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
    background: var(--amber); color: #241a00; font-size: 0.66rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px var(--slate-900);
}

/* ---- Track-a-report result ---- */
#track-result { margin-top: 4px; }
.tracked-report { padding: 20px; margin-top: 6px; }
.tracked-report .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tracked-report h4 { margin: 0 0 6px; font-size: 1rem; }
.tracked-report p { margin: 0; color: var(--slate-300); font-size: 0.88rem; }
.tracked-note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); font-size: 0.84rem; color: var(--slate-300); }

/* ---- Alert banner (public) ---- */
.alert-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 14px; border: 1px solid; }
.alert-banner.info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); }
.alert-banner.warning { background: rgba(245,185,66,0.09); border-color: rgba(245,185,66,0.35); }
.alert-banner.critical { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.4); }
.alert-banner .ic { font-size: 1.2rem; }
.alert-banner .body h4 { margin: 0 0 4px; font-size: 0.95rem; }
.alert-banner .body p { margin: 0; font-size: 0.85rem; color: var(--slate-300); }
.alert-banner .meta { font-size: 0.72rem; color: var(--slate-500); margin-top: 6px; font-family: var(--font-mono); }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--slate-300); margin-bottom: 7px; }
.field .hint { font-size: 0.76rem; color: var(--slate-500); margin-top: 6px; }

/* ---- Evidence upload: drop zone + preview list ---- */
.file-drop {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 16px; border: 1.5px dashed var(--glass-border); border-radius: var(--radius-md);
    color: var(--slate-300); font-size: 0.88rem; cursor: pointer; text-align: center;
    background: rgba(255,255,255,0.02); transition: all 0.15s ease;
}
.file-drop i { color: var(--emerald-bright); font-size: 1.1rem; }
.file-drop:hover, .file-drop.drag-over { border-color: var(--emerald-bright); background: var(--emerald-dim); color: var(--slate-100); }

.evidence-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.evidence-preview-item {
    position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,0.35);
    display: flex; align-items: center; justify-content: center;
}
.evidence-preview-item img, .evidence-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.evidence-preview-item .file-icon { font-size: 1.4rem; color: var(--slate-500); }
.evidence-preview-item .video-badge {
    position: absolute; bottom: 4px; left: 4px; font-size: 0.6rem; padding: 2px 6px; border-radius: 999px;
    background: rgba(0,0,0,0.65); color: var(--emerald-bright); letter-spacing: 0.3px;
}
.evidence-preview-item .remove-file {
    position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.7); color: #fca5a5; border: none; cursor: pointer; font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.evidence-preview-item .remove-file:hover { background: rgba(239,68,68,0.85); color: #fff; }
.input, select.input, textarea.input {
    width: 100%; font-family: inherit; font-size: 0.94rem; color: var(--slate-100);
    background: var(--input-bg); border: 1px solid var(--glass-border);
    border-radius: 11px; padding: 12px 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, select.input:focus, textarea.input:focus {
    outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-dim);
}
textarea.input { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-msg { font-size: 0.85rem; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-border); }
.form-msg.success { background: var(--emerald-dim); color: var(--emerald-bright); border: 1px solid rgba(16,185,129,0.35); }

.avatar-picker { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-picker img, .avatar-preview {
    width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--glass-border); background: var(--slate-800);
}
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(2, 4, 7, 0.72);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
    padding: 30px; position: relative; animation: modalIn 0.2s ease;
}
.modal.modal-lg { max-width: 780px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
    position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
    border-radius: 50%; background: var(--glass-highlight); border: 1px solid var(--glass-border);
    color: var(--slate-300); font-size: 1rem; cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: var(--emerald-dim); color: var(--slate-100); }
.modal h2 { margin: 0 0 4px; font-size: 1.4rem; }
.modal .sub { color: var(--slate-500); font-size: 0.88rem; margin: 0 0 26px; }

.tabs { display: flex; gap: 6px; margin-bottom: 24px; background: var(--pill-bg); padding: 5px; border-radius: 11px; }
.tab-btn { flex: 1; padding: 9px; border: none; background: none; color: var(--slate-500); border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.tab-btn.active { background: var(--emerald-dim); color: var(--emerald-bright); }

/* ---- Map ---- */
#report-map, #profile-map-preview { height: 320px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); z-index: 1; }
.map-hint { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--slate-500); margin: 10px 0 12px; }
#btn-retry-location { margin-bottom: 12px; }
.coord-pill { font-family: var(--font-mono); font-size: 0.78rem; background: var(--pill-bg); padding: 4px 10px; border-radius: 999px; color: var(--emerald-bright); border: 1px solid var(--glass-border); }

/* ---- Report cards (student "my reports") ---- */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-item { display: flex; gap: 16px; padding: 16px 18px; align-items: center; }
.report-item .cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--slate-800); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.report-item .info { flex: 1; min-width: 0; }
.report-item .info h4 { margin: 0 0 3px; font-size: 0.94rem; }
.report-item .info p { margin: 0; font-size: 0.82rem; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-item .media-count { font-size: 0.72rem; color: var(--emerald-bright); margin-top: 4px; }
.badge { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.badge.pending { background: rgba(245,185,66,0.14); color: var(--amber); }
.badge.verified { background: rgba(59,130,246,0.14); color: var(--badge-blue); }
.badge.assigned { background: rgba(168,85,247,0.14); color: var(--badge-purple); }
.badge.resolved { background: var(--emerald-dim); color: var(--emerald-bright); }
.badge.dismissed { background: rgba(148,163,184,0.14); color: var(--slate-500); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--slate-500); }
.empty-state .ic { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.6; }

/* ---- Footer ---- */
.footer { padding: 40px 0; border-top: 1px solid var(--glass-border); color: var(--slate-500); font-size: 0.85rem; text-align: center; position: relative; z-index: 1; }

/* ---- Toast ---- */
#toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 11px; font-size: 0.88rem; min-width: 240px; animation: toastIn 0.25s ease; }
.toast i { margin-right: 8px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { background: #0e3b2c; border: 1px solid rgba(16,185,129,0.4); color: #34e8a8; }
.toast.error { background: #3b0e0e; border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.25); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

@media (max-width: 640px) {
    .navbar { padding: 14px 18px; }
    .hero { padding: 70px 0 60px; }
    .stat-strip { grid-template-columns: 1fr; }
}

/* ---- Mobile nav: slide-in glass panel instead of a crowded button row ---- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
        width: min(320px, 84vw); height: 100vh;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 6px; flex-wrap: nowrap;
        padding: 76px 18px 24px;
        background:
            linear-gradient(155deg, var(--navbar-sheen), rgba(255,255,255,0) 40%),
            var(--navbar-mobile-bg);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-left: 1px solid var(--glass-border);
        box-shadow: -20px 0 60px -20px rgba(0,0,0,0.7);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); }

    .nav-links a, .nav-links button {
        width: 100%; text-align: left; justify-content: flex-start;
        padding: 13px 16px; font-size: 0.95rem; border-radius: 12px;
    }
    .nav-links .btn { width: 100%; margin-left: 0 !important; }
    .nav-links span { padding: 4px 16px 10px; }

    .nav-close {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 18px; right: 18px;
        width: 38px; height: 38px; border-radius: 10px;
        background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--slate-300);
        font-size: 1rem; cursor: pointer;
    }
    .nav-close:hover { color: var(--slate-100); border-color: rgba(239,68,68,0.4); }
}

/* =====================================================================
   Portal+ features: messages, safety walk, community map
   ===================================================================== */

/* ---- Message thread (public modal + inline in My Reports) ---- */
.messages-thread {
    max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
    padding: 4px 2px; margin-bottom: 14px;
}
.msg-bubble {
    max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem;
    border: 1px solid var(--glass-border);
}
.msg-bubble.reporter { align-self: flex-end; background: var(--emerald-dim); border-color: rgba(16,185,129,0.3); }
.msg-bubble.officer { align-self: flex-start; background: rgba(255,255,255,0.03); }
.msg-sender { display: block; font-size: 0.68rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.msg-text { display: block; color: var(--slate-100); line-height: 1.45; }
.msg-time { display: block; font-size: 0.68rem; color: var(--slate-500); margin-top: 5px; }
.messages-input-row { display: flex; gap: 8px; }
.messages-input-row .input { flex: 1; }

/* ---- Safety Walk ---- */
.walk-active-status { padding: 16px; }
.walk-status-row { display: flex; align-items: center; gap: 10px; }
.walk-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.walk-status-dot.active { background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-bright); animation: pulse 2s infinite; }
.walk-share-row { display: flex; gap: 8px; }
.walk-share-row .input { flex: 1; font-family: var(--font-mono); font-size: 0.8rem; }

/* ---- Community Safety Map ---- */
#community-map-canvas { height: 360px; border-radius: 14px; border: 1px solid var(--glass-border); z-index: 1; }
.cmap-breakdown { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.cmap-bar-row { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 10px; }
.cmap-bar-label { font-size: 0.78rem; color: var(--slate-300); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-bar-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.cmap-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), #4fc3ff); }
.cmap-bar-count { font-size: 0.76rem; color: var(--slate-500); text-align: right; font-family: var(--font-mono); }
@media (max-width: 560px) {
    .cmap-bar-row { grid-template-columns: 90px 1fr 28px; }
}

/* =====================================================================
   Landing page: extra motion & micro-interactions
   ===================================================================== */

/* ---- Scroll-reveal entrance (triggered by IntersectionObserver in app.js) ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- A second, differently-timed ambient glow blob for a richer background ---- */
.hero::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,195,255,0.22), transparent 70%);
    filter: blur(90px); opacity: var(--glow-opacity);
    top: 30%; right: -6%;
    animation: float 22s ease-in-out infinite reverse;
    pointer-events: none; z-index: 0;
}

/* ---- Nav link underline sweep ---- */
.nav-links a, .nav-links button {
    position: relative;
    overflow: hidden;
}
.nav-links a::after, .nav-links button::after {
    content: '';
    position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
    background: var(--emerald-bright); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links button:hover::after { transform: scaleX(1); }
.nav-links .btn::after { display: none; } /* filled buttons don't need the underline */

/* ---- Primary button shine sweep on hover ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 130%; }

/* ---- Feature / emergency card icon pop on hover ---- */
.feature-icon, .emergency-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }
.emergency-card:hover .emergency-icon { transform: scale(1.12) rotate(6deg); }

/* ---- FAQ answer fade-in on open, gentle hover lift ---- */
.faq-item { transition: border-color 0.2s ease, transform 0.2s ease; }
.faq-item:hover { border-color: rgba(16,185,129,0.25); transform: translateY(-1px); }
.faq-item[open] p { animation: faqAnswerIn 0.3s ease both; }
@keyframes faqAnswerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Stat cells: subtle pop + hover glow, triggered on reveal ---- */
.stat-cell { transition: background 0.2s ease; }
.stat-cell:hover { background: var(--glass-highlight); }
.stat-cell .num { display: inline-block; }
.reveal.in-view .stat-cell .num { animation: statPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes statPop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* ---- Skeleton shimmer for loading states (my-reports, community map) ---- */
.skeleton-row {
    height: 64px; border-radius: 14px; margin-bottom: 12px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-highlight) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border: 1px solid var(--glass-border);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Alert banners slide in when they appear ---- */
.alert-banner { animation: alertIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- My Reports / report-item hover lift ---- */
.report-item { transition: transform 0.2s ease, border-color 0.2s ease; }
.report-item:hover { transform: translateY(-2px) translateX(2px); border-color: rgba(16,185,129,0.3); }

/* ---- Section eyebrow: small animated underline draw-in when revealed ---- */
.eyebrow { position: relative; padding-bottom: 6px; }
.eyebrow::after {
    content: '';
    position: absolute; left: 0; bottom: 0; height: 2px; width: 28px;
    background: var(--emerald-bright); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.reveal.in-view .eyebrow::after { transform: scaleX(1); }

/* ---- Respect reduced-motion preference across all of the above ---- */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: opacity 0.3s ease; transform: none !important; }
    .hero::after, .stat-cell .num, .faq-item[open] p, .alert-banner,
    .feature-icon, .emergency-icon, .btn-primary::before, .skeleton-row {
        animation: none !important; transition: none !important;
    }
}

/* ---- Landing-page motion + interactive toolkit ---- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg,var(--emerald),var(--emerald-bright)); box-shadow: 0 0 14px rgba(16,185,129,.7); pointer-events:none; }
.hero { position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; width:620px; height:620px; right:-180px; top:-120px; border:1px solid rgba(52,232,168,.08); border-radius:50%; animation: heroOrbit 18s linear infinite; pointer-events:none; }
.hero::after { content:''; position:absolute; width:360px; height:360px; left:36%; bottom:-250px; border:1px solid rgba(16,185,129,.06); border-radius:50%; animation: heroOrbit 12s linear infinite reverse; pointer-events:none; }
@keyframes heroOrbit { to { transform: rotate(360deg); } }
.hero-copy { animation: heroCopyIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual { animation: heroVisualIn 1s cubic-bezier(.2,.8,.2,1) .12s both; perspective:1200px; }
@keyframes heroCopyIn { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes heroVisualIn { from{opacity:0;transform:translateY(28px) scale(.96) rotateX(5deg)} to{opacity:1;transform:none} }
.hero-device { transform-style:preserve-3d; transition:transform .18s ease-out; }
.hero-map { isolation:isolate; }
.hero-scan-line { position:absolute; left:0; right:0; height:2px; top:-4px; background:linear-gradient(90deg,transparent,rgba(52,232,168,.9),transparent); box-shadow:0 0 18px rgba(52,232,168,.65); z-index:3; animation:scanMap 4s ease-in-out infinite; }
@keyframes scanMap { 0%,100%{top:0;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{top:100%;opacity:0} }
.hero-route-dot { position:absolute; width:5px;height:5px;border-radius:50%;background:var(--emerald-bright);box-shadow:0 0 10px var(--emerald);z-index:2; animation:routeTravel 5s linear infinite; }
.route-one{top:40%;left:10%}.route-two{top:48%;left:35%;animation-delay:1.6s}.route-three{top:36%;left:65%;animation-delay:3.1s}
@keyframes routeTravel { 0%{transform:translate(0,0);opacity:0} 10%{opacity:1} 50%{transform:translate(70px,16px);opacity:1} 90%{opacity:0} 100%{transform:translate(130px,24px);opacity:0} }
.hero-scan-ring { position:absolute; border:1px solid rgba(52,232,168,.16); border-radius:50%; pointer-events:none; }
.ring-one{width:420px;height:420px;right:-80px;top:0;animation:ringPulse 6s ease-in-out infinite}.ring-two{width:250px;height:250px;right:10%;top:18%;animation:ringPulse 6s ease-in-out 1.5s infinite}
@keyframes ringPulse { 0%,100%{transform:scale(.94);opacity:.25} 50%{transform:scale(1.04);opacity:.7} }
.hero-particle { position:absolute;width:6px;height:6px;border-radius:50%;background:var(--emerald-bright);box-shadow:0 0 14px rgba(52,232,168,.8);animation:particleFloat 7s ease-in-out infinite; }
.particle-one{right:9%;top:30%}.particle-two{right:38%;top:8%;width:4px;height:4px;animation-delay:2s}.particle-three{right:22%;bottom:5%;width:5px;height:5px;animation-delay:4s}
@keyframes particleFloat {0%,100%{transform:translate3d(0,0,0);opacity:.35}50%{transform:translate3d(14px,-28px,0);opacity:1}}
.safety-toolkit { padding-top: 30px; }
.toolkit-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.toolkit-card { min-height:118px; padding:20px; display:flex; align-items:center; gap:13px; text-decoration:none; color:inherit; text-align:left; cursor:pointer; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.toolkit-card:hover { transform:translateY(-5px); border-color:rgba(16,185,129,.4); box-shadow:0 18px 40px -20px rgba(16,185,129,.32); }
.toolkit-card > span:nth-child(2){flex:1}.toolkit-card strong{display:block;font-size:.92rem}.toolkit-card small{display:block;color:var(--slate-500);margin-top:5px;font-size:.74rem}.toolkit-icon{width:42px;height:42px;border-radius:12px;background:var(--emerald-dim);color:var(--emerald-bright);display:grid;place-items:center;flex-shrink:0}.toolkit-icon.danger{background:var(--danger-bg);color:var(--danger-text)}.tool-arrow{color:var(--slate-500);transition:transform .2s ease}.toolkit-card:hover .tool-arrow{transform:translateX(4px);color:var(--emerald-bright)}
.network-strip{margin-top:16px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.network-status{display:flex;align-items:center;gap:9px;font-size:.8rem}.network-status span:last-child{color:var(--slate-500)}.live-pulse{width:8px;height:8px;border-radius:50%;background:var(--emerald);box-shadow:0 0 0 0 rgba(16,185,129,.5);animation:livePulse 2s infinite}.network-metrics{display:flex;gap:22px;color:var(--slate-500);font-size:.72rem}.network-metrics b{color:var(--slate-100);font-family:var(--font-mono)}
@keyframes livePulse {70%{box-shadow:0 0 0 8px rgba(16,185,129,0)}100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
.tips-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;align-items:center}.tip-controls{display:flex;align-items:center;gap:12px;margin-top:26px}.tip-controls .nav-icon-btn{width:38px;height:38px}.tip-controls span{font-family:var(--font-mono);font-size:.72rem;color:var(--slate-500);min-width:52px;text-align:center}.tip-stage{min-height:310px;padding:36px;position:relative;overflow:hidden}.tip-slide{display:none;animation:tipIn .35s ease both}.tip-slide.active{display:block}.tip-slide > i{font-size:1.8rem;color:var(--emerald-bright);margin:28px 0 14px}.tip-slide h3{font-size:1.5rem;margin:0 0 10px}.tip-slide p{color:var(--slate-300);max-width:520px}.tip-number{position:absolute;right:28px;top:20px;font-family:var(--font-mono);font-size:3.8rem;font-weight:800;color:rgba(255,255,255,.05)}.tip-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--glass-highlight)}.tip-progress span{display:block;height:100%;width:25%;background:var(--emerald);transition:width .3s ease}
@keyframes tipIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@media (max-width: 980px){.toolkit-grid{grid-template-columns:repeat(2,1fr)}.tips-layout{grid-template-columns:1fr;gap:25px}.network-strip{align-items:flex-start;flex-direction:column}}
@media (max-width: 560px){.toolkit-grid{grid-template-columns:1fr}.network-metrics{width:100%;justify-content:space-between;gap:8px}.network-status{flex-wrap:wrap}.tip-stage{min-height:330px;padding:28px}.hero::before,.hero::after,.hero-scan-ring,.hero-particle{display:none}}
@media (prefers-reduced-motion: reduce){.hero::before,.hero::after,.hero-copy,.hero-visual,.hero-scan-line,.hero-route-dot,.hero-scan-ring,.hero-particle,.live-pulse{animation:none!important}.hero-device{transform:none!important}.tip-slide{animation:none!important}}

/* ---- Enhanced landing-page quick actions ---- */
.hero-quick-actions { padding-top: 0; margin-top: -6px; position: relative; z-index: 4; }
.quick-action-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.quick-action-card { width:100%; display:flex; align-items:center; gap:13px; text-align:left; padding:15px 16px; border:1px solid var(--glass-border); border-radius:16px; background:var(--glass-bg); color:var(--slate-100); cursor:pointer; text-decoration:none; backdrop-filter:blur(12px); box-shadow:0 12px 30px rgba(0,0,0,.12); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.quick-action-card:hover { transform:translateY(-4px); border-color:rgba(16,185,129,.35); box-shadow:0 18px 40px rgba(16,185,129,.12); }
.quick-action-card > span:nth-child(2) { display:flex; flex:1; flex-direction:column; gap:2px; }
.quick-action-card b { font-size:.9rem; }
.quick-action-card small { color:var(--slate-500); font-size:.72rem; line-height:1.35; }
.quick-action-card > i:last-child { color:var(--slate-500); }
.quick-action-icon { width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center; }
.quick-action-icon.danger { color:var(--danger-text);background:var(--danger-bg); }
.quick-action-icon.blue { color:var(--badge-blue);background:rgba(59,130,246,.12); }
.quick-action-icon.amber { color:var(--amber);background:rgba(245,185,66,.12); }
.capability-grid { grid-template-columns:repeat(3,1fr); }
.capability-card { min-height:205px; }
@media (max-width:900px) { .quick-action-grid,.capability-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) { .quick-action-grid,.capability-grid { grid-template-columns:1fr; } .hero-title-strong { letter-spacing:-1.5px!important; } }
