/* ============================================================
   NavTrack — Hero (Full-screen fixed BG + Parallax Reveal)
   Background stays fixed, content scrolls over it.
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--navbar-height) + 48px) 0 80px;
    z-index: 1;
}

/* ── Fixed background image ────────────────────────────────── */
.hero__bg {
    position: fixed;
    inset: 0;
    z-index: -2;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Dark overlay ──────────────────────────────────────────── */
.hero__overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 20, 40, 0.6) 0%,
        rgba(10, 20, 40, 0.55) 40%,
        rgba(10, 20, 40, 0.7) 100%
    );
    z-index: -1;
}

/* ── Content ───────────────────────────────────────────────── */
.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Eyebrow ───────────────────────────────────────────────── */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
}

.hero__eyebrow-pip {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pip-pulse 2s ease-in-out infinite;
}
@keyframes pip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.75); }
}

/* ── Title ─────────────────────────────────────────────────── */
.hero__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title .text-gradient {
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ── Subtitle ──────────────────────────────────────────────── */
.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0 auto 44px;
    max-width: 620px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* ── Buttons ───────────────────────────────────────────────── */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.hero__actions .btn--hero-primary {
    padding: 15px 32px;
    background: #16a34a;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.4);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.hero__actions .btn--hero-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.5);
}

.hero__actions .btn--hero-secondary {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
}
.hero__actions .btn--hero-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ── Metrics (glass bar) ───────────────────────────────────── */
.hero__metrics {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    margin-top: 52px;
    padding: 22px 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
}

.hero__metric { display: flex; flex-direction: column; align-items: center; }
.hero__metric-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    color: #ffffff;
    line-height: 1.15;
}
.hero__metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 4px;
}
.hero__metric-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
}

/* ── Trust ─────────────────────────────────────────────────── */
.hero__trust { margin-top: 32px; }
.hero__trust-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.hero__trust-text strong { color: #fff; font-weight: 700; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 639px) {
    .hero { min-height: 100svh; padding-bottom: 60px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn--hero-primary,
    .hero__actions .btn--hero-secondary { width: 100%; justify-content: center; }
    .hero__metrics { gap: 16px; padding: 18px 20px; }
}

/* ============================================================
   Sections after hero need solid background to "cover" the
   fixed hero image as user scrolls (parallax reveal effect).
   ============================================================ */

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.stats-bar__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats-bar__grid { grid-template-columns: repeat(4, 1fr); } }
.stats-bar__item {
    padding: 36px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease-out);
}
.stats-bar__item:hover { background: var(--bg-secondary); }
.stats-bar__item:hover .stats-bar__value .counter-value { color: var(--accent-secondary); }
@media (min-width: 768px) {
    .stats-bar__item:nth-child(4n) { border-right: none; }
    .stats-bar__item:nth-last-child(-n+4) { border-bottom: none; }
}
@media (max-width: 767px) {
    .stats-bar__item:nth-child(2n) { border-right: none; }
    .stats-bar__item:nth-last-child(-n+2) { border-bottom: none; }
}
.stats-bar__value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}
.stats-bar__value .counter-value { color: var(--text-primary); transition: color 0.3s; }
.stats-bar__label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
