/* NAV — mobile first */
.nav{
    display: none;
    gap: 20px;
}

/* Hamburger — rounded square */
.nav-toggle{
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;

    border-radius: 12px; /* rounded square */
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;

    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-toggle:hover{
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.55);
}

.nav-toggle:active{
    transform: scale(.98);
}

.nav-toggle__icon{
    display:block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

/* open state (mobile dropdown) */
.nav.is-open{
    position: absolute;
    top: calc(var(--topbar-h, 64px) - 6px);
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: color-mix(in oklab, var(--primary-color) 92%, #000);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.nav.is-open .nav__link{
    display: inline-block;
    width: max-content;
    align-self: flex-start;

    color: rgba(255,255,255,.92);
    padding: 6px 0;
}

.nav.is-open .nav__link::after{
    background: #fff;
}

.nav.is-open .nav__link:hover{
    color: #fff;
}

.nav.is-open .nav__link:hover::after{
    transform: scaleX(1);
}

.nav.is-open .nav__link.is-active{
    color: #fff;
}

.nav.is-open .nav__link.is-active::after{
    transform: scaleX(1);
}

.nav__link{
    position: relative;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: var(--fs-4);
    letter-spacing: .04em;
    padding: 8px 0;
    transition: color .2s ease;
}

/* underline */
.nav__link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-4px;
    width:100%;
    height:2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav__link:hover{
    color: #fff;
}

.nav__link:hover::after{
    transform: scaleX(1);
}

.nav__link.is-active{
    color: #fff;
}

.nav__link.is-active::after{
    transform: scaleX(1);
}

/* desktop */
@media (min-width: 900px){
    .nav-toggle{ display:none; }
    .nav{
        display:flex;
        gap: 28px;
    }
    .nav.is-open{
        position: static;
        display:flex;
        flex-direction: row;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* Buttons (white theme) */
.btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}
.btn--ghost{
    background: transparent;
    color: var(--primary-color);
}
.actions{ display:flex; gap: 12px; flex-wrap: wrap; }

/* Card + footer (white theme) */
.card{
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
}

.footer{
    margin-top: auto;
    padding: 18px 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    text-align: center;
}
