/* ============================================================
   Liquid Glass Pill Nav — overrides inline nav styles site-wide
   ============================================================ */

nav {
    position: fixed !important;
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: calc(100% - 24px) !important;
    max-width: 1100px !important;
    height: 56px !important;
    z-index: 100;
    background:
        linear-gradient(180deg,
            rgba(22, 22, 26, 0.55) 0%,
            rgba(8, 8, 12, 0.42) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 -1px 0 rgba(0, 0, 0, 0.25) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
    overflow: visible;
}

/* Specular top highlight (the "wet" sheen) */
nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%);
    border-radius: 9999px;
    pointer-events: none;
}

/* Faint bottom shadow line (depth cue) */
nav::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8%;
    right: 8%;
    height: 18px;
    background: radial-gradient(ellipse at center top,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(6px);
}

nav .c {
    height: 54px !important;
    padding: 0 8px 0 22px !important;
    max-width: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

nav .logo {
    font-size: 1rem !important;
}

/* Pill CTA button at the right edge sits inside the rim */
nav .nav-cta {
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    font-size: 0.82rem !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 4px 14px rgba(0, 212, 170, 0.25);
}

nav .nav-links {
    gap: 24px !important;
}
nav .nav-links a {
    font-size: 0.86rem !important;
    transition: color 0.2s, opacity 0.2s !important;
}

/* Hamburger sits inside the rim */
nav .hamburger {
    margin-right: 8px;
}

/* Mobile menu becomes a matching glass card under the pill */
.mobile-menu {
    top: 82px !important;
    left: 12px !important;
    right: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg,
            rgba(22, 22, 26, 0.85) 0%,
            rgba(8, 8, 12, 0.82) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Mobile-only sticky CTA bar (some pages have it) gets matching treatment */
.mobile-cta-bar {
    background:
        linear-gradient(180deg,
            rgba(22, 22, 26, 0.78) 0%,
            rgba(8, 8, 12, 0.85) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Subtle scroll-state intensification (optional progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    nav { transition: box-shadow 0.25s ease, background 0.25s ease; }
}

/* Small screens: nav still pills but slimmer */
@media (max-width: 768px) {
    nav {
        top: 10px !important;
        height: 52px !important;
        width: calc(100% - 20px) !important;
    }
    nav .c {
        height: 50px !important;
        padding: 0 6px 0 18px !important;
    }
    .mobile-menu { top: 74px !important; }
}
