.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px auto;
    padding: 10px 14px;
    background: color-mix(in oklab, var(--bg-2) 92%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand__mark {
    width: 36px;
    height: 36px;
    display: block;
}

.brand__name {
    letter-spacing: 0.2px;
}

.nav__links {
    display: flex;
    gap: 18px;
    margin-left: 10px;
}

.nav__links a {
    color: #c9d1e4;
    padding: 8px 0;
    position: relative;
}

.nav__links a.is-active {
    color: var(--text);
}

.nav__links a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
}

.nav__actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 720px) {
    .nav__inner {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .nav__links {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav__links::-webkit-scrollbar {
        display: none;
    }

    .nav__actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav__actions .btn {
        padding: 7px 10px;
        border-radius: 999px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .nav__links {
        justify-content: space-between;
        gap: 12px;
    }

    .nav__actions .btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}
