/* Site header + mobile nav (all front pages) */
.cs-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px, calc(100% - 24px));
    z-index: 9999;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .35s ease;
    font-family: 'Inter', sans-serif;
    border-radius: 18px;
    border: 1px solid rgba(var(--cs-rgb-olive), 0.16);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 32px rgba(15, 23, 42, .08);
}

.cs-header.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, .94);
    border-color: rgba(var(--cs-rgb-olive), 0.2);
    box-shadow: 0 12px 36px rgba(15, 23, 42, .1);
}

.cs-logo-img {
    max-height: 52px;
    max-width: min(220px, 52vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

.cs-nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 30px; }
.cs-nav a,
.cs-nav-dropdown-toggle {
    color: #2f3b2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 999px;
    transition: color .22s ease, background-color .22s ease;
}
.cs-nav a:hover { color: var(--cs-olive-dark); background: rgba(var(--cs-rgb-lime), 0.22); }
.cs-demo-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(var(--cs-rgb-olive), .28);
    background-image:
        var(--cs-btn-sound-texture),
        linear-gradient(145deg, var(--cs-olive-dark) 0%, var(--cs-olive) 38%, #7d9448 72%, var(--cs-lime) 100%);
    background-size: 200px 100%, 100% 100%;
    background-position: 0 50%, 0 0;
    background-repeat: repeat, no-repeat;
    animation: csVoiceWaveDrift 3.6s linear infinite;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.08),
        0 8px 24px rgba(var(--cs-rgb-olive), .28);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.cs-demo-btn:hover {
    transform: translateY(-1px);
}
.cs-menu-toggle { display: none; border: 0; background: none; cursor: pointer; }
.cs-menu-toggle span { display: block; width: 24px; height: 2px; background: #0f172a; margin: 5px 0; }
.cs-menu-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.2); display: none; z-index: 10000; }
.cs-menu-overlay.active { display: block; }
.cs-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--cs-line);
    z-index: 10001;
    padding: 80px 28px;
    transition: .3s;
}
.cs-mobile-menu.active { right: 0; }
.cs-mobile-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cs-mobile-menu a { color: #334155; text-decoration: none; font-weight: 600; }
.cs-mobile-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; font-size: 28px; color: #334155; cursor: pointer; }

@media (max-width: 1024px) {
    .cs-nav,
    .cs-header .cs-demo-btn {
        display: none !important;
    }
    .cs-menu-toggle { display: block; }
    .cs-header {
        top: max(8px, env(safe-area-inset-top, 0px));
        width: calc(100% - 16px);
        padding: 10px 14px;
    }
    .cs-logo-img {
        max-height: 44px;
        max-width: min(168px, 46vw);
    }
}
