/* ============================================================
   nav-upgrade.css – Claymatics Theme
   Liquid glass header · glow buttons · domain switcher · client ticker
   ============================================================ */

/* ===== RESET OLD NAV ===== */
.site-header { display: none !important; }

/* ===== HEADER SHELL ===== */
.clm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.clm-header__inner {
    background: rgba(11, 31, 59, 0.35);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    margin: 0 16px;
    padding: 10px 20px;
    transition: all 0.4s ease;
    box-shadow:
        0 0 0 1px rgba(30, 107, 255, 0.06),
        0 8px 32px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.clm-header--scrolled .clm-header__inner {
    background: rgba(11, 31, 59, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-color: rgba(255,255,255,0.09);
    box-shadow:
        0 0 0 1px rgba(30, 107, 255, 0.1),
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ===== LOGO ===== */
.clm-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.clm-logo__text {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}
.clm-logo__text em {
    font-style: normal;
    background: linear-gradient(90deg, var(--clm-blue), var(--clm-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.clm-logo__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--clm-blue);
    box-shadow: 0 0 8px var(--clm-blue), 0 0 16px rgba(var(--glow-blue-rgb),0.5);
    animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 8px var(--clm-blue), 0 0 16px rgba(var(--glow-blue-rgb),0.5); }
    50%      { transform: scale(1.35); box-shadow: 0 0 14px var(--clm-blue), 0 0 28px rgba(var(--glow-blue-rgb),0.7); }
}

/* ===== NAV LINKS (desktop) ===== */
.clm-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.clm-nav__list .nav-item { position: relative; }
.clm-nav__link,
.clm-nav__list a {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72) !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.clm-nav__link span,
.clm-nav__list a span { pointer-events: none; }

/* Hover: liquid glass pill */
.clm-nav__link:hover,
.clm-nav__list a:hover,
.clm-nav__list .current-menu-item > a,
.clm-nav__list .current_page_item > a {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 1px rgba(var(--glow-blue-rgb),0.18),
        0 0 12px rgba(var(--glow-blue-rgb),0.08);
}
.clm-nav__list .current-menu-item > a,
.clm-nav__list .current_page_item > a {
    color: #fff !important;
    background: rgba(var(--glow-blue-rgb),0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 0 1px rgba(var(--glow-blue-rgb),0.28),
        0 0 16px rgba(var(--glow-blue-rgb),0.12);
}

/* Glow underline on active */
.clm-nav__list .current-menu-item > a::after,
.clm-nav__list .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 16px; height: 2px;
    background: var(--clm-blue);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--clm-blue);
}

/* ===== GLOW BUTTONS ===== */
.clm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.01em;
}

/* Ghost button – liquid glass */
.clm-btn--ghost {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 8px rgba(0,0,0,0.2);
}
.clm-btn--ghost:hover {
    background: rgba(255,255,255,0.13);
    color: #fff !important;
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 0 0 1px rgba(var(--glow-blue-rgb),0.2),
        0 0 18px rgba(var(--glow-blue-rgb),0.12);
    transform: translateY(-1px);
}

/* Primary glow button */
.clm-btn--primary {
    background: linear-gradient(135deg, var(--clm-blue) 0%, #0f4fd4 100%);
    color: #fff !important;
    border: 1px solid rgba(var(--glow-blue-rgb),0.4);
    box-shadow:
        0 0 0 1px rgba(var(--glow-blue-rgb),0.3),
        0 0 12px rgba(var(--glow-blue-rgb),0.35),
        0 4px 16px rgba(var(--glow-blue-rgb),0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.clm-btn--primary:hover {
    background: linear-gradient(135deg, #2d7aff 0%, var(--clm-blue) 100%);
    box-shadow:
        0 0 0 1px rgba(var(--glow-blue-rgb),0.5),
        0 0 22px rgba(var(--glow-blue-rgb),0.55),
        0 0 45px rgba(var(--glow-blue-rgb),0.25),
        0 6px 20px rgba(var(--glow-blue-rgb),0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px) scale(1.02);
    color: #fff !important;
}
.clm-btn--primary:active { transform: translateY(0) scale(0.99); }

/* Animated glow ring on primary button */
.btn-glow-ring {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 70%,
        rgba(var(--glow-blue-rgb),0.6) 85%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: ringRotate 2.5s linear infinite;
    z-index: -1;
}
.clm-btn--primary:hover .btn-glow-ring { opacity: 1; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ringRotate { to { --angle: 360deg; } }

/* .com gets purple tint on primary */
.site-com .clm-btn--primary {
    background: linear-gradient(135deg, var(--clm-purple) 0%, #5548c8 100%);
    border-color: rgba(var(--glow-purple-rgb),0.4);
    box-shadow:
        0 0 0 1px rgba(var(--glow-purple-rgb),0.3),
        0 0 12px rgba(var(--glow-purple-rgb),0.35),
        0 4px 16px rgba(var(--glow-purple-rgb),0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.site-com .clm-btn--primary:hover {
    box-shadow:
        0 0 0 1px rgba(var(--glow-purple-rgb),0.5),
        0 0 22px rgba(var(--glow-purple-rgb),0.55),
        0 0 45px rgba(var(--glow-purple-rgb),0.25),
        0 6px 20px rgba(var(--glow-purple-rgb),0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.site-com .btn-glow-ring {
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 70%,
        rgba(var(--glow-purple-rgb),0.6) 85%,
        transparent 100%
    );
}
.site-net .clm-btn--primary {
    background: linear-gradient(135deg, var(--clm-teal) 0%, #0fa87a 100%);
    border-color: rgba(var(--glow-teal-rgb),0.4);
    box-shadow:
        0 0 0 1px rgba(var(--glow-teal-rgb),0.3),
        0 0 12px rgba(var(--glow-teal-rgb),0.35),
        0 4px 16px rgba(var(--glow-teal-rgb),0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.site-net .clm-btn--primary:hover {
    box-shadow:
        0 0 0 1px rgba(var(--glow-teal-rgb),0.5),
        0 0 22px rgba(var(--glow-teal-rgb),0.55),
        0 0 45px rgba(var(--glow-teal-rgb),0.25),
        0 6px 20px rgba(var(--glow-teal-rgb),0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.site-net .btn-glow-ring {
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 70%,
        rgba(var(--glow-teal-rgb),0.6) 85%,
        transparent 100%
    );
}

/* ===== DOMAIN SWITCHER PILL ===== */
.clm-domain-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.clm-domain-switcher .switcher-icon { font-size: 0.9rem; line-height: 1; }
.clm-domain-switcher .switcher-label { font-family: 'JetBrains Mono', monospace; }
.clm-domain-switcher .switcher-arrow {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.clm-domain-switcher:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border-color: rgba(var(--glow-teal-rgb),0.4);
    box-shadow:
        0 0 0 1px rgba(var(--glow-teal-rgb),0.2),
        0 0 16px rgba(var(--glow-teal-rgb),0.2);
    transform: translateY(-1px);
}
.clm-domain-switcher:hover .switcher-arrow {
    opacity: 1;
    transform: translate(2px,-2px);
}
/* .com switcher targets .net — teal glow */
.site-com .clm-domain-switcher:hover {
    border-color: rgba(var(--glow-teal-rgb),0.4);
    box-shadow: 0 0 0 1px rgba(var(--glow-teal-rgb),0.2), 0 0 16px rgba(var(--glow-teal-rgb),0.2);
}
/* .net switcher targets .com — purple glow */
.site-net .clm-domain-switcher:hover {
    border-color: rgba(var(--glow-purple-rgb),0.4);
    box-shadow: 0 0 0 1px rgba(var(--glow-purple-rgb),0.2), 0 0 16px rgba(var(--glow-purple-rgb),0.2);
}

/* ===== HAMBURGER ===== */
.clm-burger {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    width: 40px; height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.clm-burger span {
    display: block;
    width: 20px; height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.clm-burger:hover { background: rgba(255,255,255,0.12); border-color: rgba(var(--glow-blue-rgb),0.3); }
.clm-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.clm-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.clm-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER ===== */
.clm-mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    background: rgba(11,31,59,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.clm-mobile-nav.is-open { transform: translateX(0); }
.clm-mobile-nav__inner {
    padding: 90px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}
.clm-mobile-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.clm-mobile-nav__list li a {
    display: block;
    padding: 13px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-family: 'Syne', sans-serif;
    border: 1px solid transparent;
}
.clm-mobile-nav__list li a:hover,
.clm-mobile-nav__list .current-menu-item > a {
    color: #fff !important;
    background: rgba(255,255,255,0.06);
    border-color: rgba(var(--glow-blue-rgb),0.18);
    padding-left: 22px;
}
.clm-mobile-nav__footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.clm-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.clm-mobile-overlay.is-open { opacity: 1; pointer-events: all; }

/* ===== BODY OFFSET FOR FIXED HEADER ===== */
body { padding-top: 90px; }

/* ===== CLIENT LOGO TICKER ===== */
.clm-ticker-section {
    padding: 32px 0;
    overflow: hidden;
    background: var(--clm-navy);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.clm-ticker-section::before,
.clm-ticker-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.clm-ticker-section::before {
    left: 0;
    background: linear-gradient(to right, var(--clm-navy), transparent);
}
.clm-ticker-section::after {
    right: 0;
    background: linear-gradient(to left, var(--clm-navy), transparent);
}
.clm-ticker-label {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
}
.clm-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
    will-change: transform;
}
.clm-ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.clm-ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 48px;
    flex-shrink: 0;
}
.clm-ticker-item .logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.38;
    filter: grayscale(1) brightness(1.6);
    transition: opacity 0.3s ease, filter 0.3s ease;
    white-space: nowrap;
}
.clm-ticker-item .logo-wrap:hover {
    opacity: 0.85;
    filter: grayscale(0) brightness(1);
}
.clm-ticker-item .logo-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.clm-ticker-item .logo-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ===== GLOBAL BUTTON UPGRADES (hero sections etc) ===== */
.btn-glow,
.btn-glow-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}
.btn-glow-blue {
    background: linear-gradient(135deg, var(--clm-blue), #0f4fd4);
    color: #fff !important;
    border: 1px solid rgba(var(--glow-blue-rgb),0.35);
    box-shadow:
        0 0 0 1px rgba(var(--glow-blue-rgb),0.25),
        0 0 14px rgba(var(--glow-blue-rgb),0.35),
        0 4px 18px rgba(var(--glow-blue-rgb),0.2),
        inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-glow-blue:hover {
    background: linear-gradient(135deg, #2d7aff, var(--clm-blue));
    box-shadow:
        0 0 0 1px rgba(var(--glow-blue-rgb),0.5),
        0 0 24px rgba(var(--glow-blue-rgb),0.55),
        0 0 50px rgba(var(--glow-blue-rgb),0.2),
        0 6px 22px rgba(var(--glow-blue-rgb),0.35),
        inset 0 1px 0 rgba(255,255,255,0.22);
    transform: translateY(-2px) scale(1.02);
    color: #fff !important;
}
.btn-outline-ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82) !important;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-outline-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(var(--glow-blue-rgb),0.2), 0 0 16px rgba(var(--glow-blue-rgb),0.12);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .clm-header__inner { margin: 0 10px; padding: 8px 14px; }
    body { padding-top: 74px; }
}
@media (max-width: 575px) {
    .clm-header__inner { margin: 0 8px; border-radius: 14px; }
    .clm-btn--primary { padding: 8px 14px; font-size: 0.8rem; }
    .clm-ticker-item { padding: 0 24px; }
}
