* {
    box-sizing: border-box;
}

body {
    padding: 28px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);

}

/* remove rounded corners when fixed so it spans full width */
.site-header{ border-radius: 0; }

/* logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--font-color, #ffffff);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-2, #60a5fa), var(--accent, #2dd4bf));
    color: #022;
    font-size: 18px;
}

.logo-text {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.2px;
}

/* nav */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.nav a {
    color: var(--font-color, #ffffff);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 6px;
    border-radius: 8px;
}

.nav a:focus {
    outline: 3px solid rgba(45,212,191,0.12);
    outline-offset: 4px;
}

.nav a:hover {
    background: rgba(255,255,255,0.02);
}

/* Right controls */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang {
    appearance: none;
    background: transparent;
    color: var(--font-color, #ffffff);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.login {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: inline-grid;
    place-items: center;
    color: var(--accent, #2dd4bf);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
}

/* responsive: show hamburger on small screens and hide full nav */
.nav {
    min-width: 0;
}

.nav-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    place-items: center;
    color: var(--accent, #2dd4bf);
    border: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
}

.hamburger svg {
    width: 20px;
    height: 20px;
}

/* mobile menu (full-screen dropdown) */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0.9), rgba(2,6,23,0.95));
    padding: 80px 20px 20px;
    z-index: 80;
    overflow: auto;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav .nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.mobile-nav a {
    font-size: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--font-color, #ffffff);
    text-decoration: none;
    background: rgba(255,255,255,0.02);
    display: block;
}

@media (max-width: 720px) {
    .site-header {
        padding: 10px;
    }
    .nav {
        display: none;
    }
    .hamburger {
        display: inline-grid;
    }
    .nav-scroll {
        gap: 12px;
    }
    .nav a {
        padding: 8px 10px;
        white-space: nowrap;
    }
}

/* focus for select */
.lang:focus {
    outline: 3px solid rgba(45,212,191,0.12);
    outline-offset: 4px;
}