.site-header {
    position: sticky;
    top: 16px; 
    z-index: 50;
    padding: 12px 0;
}


.header-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(17, 18, 23, 0.08);
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
    padding: 2px 10px;
}

[data-theme="dark"] .header-pill {
    background: rgba(22, 24, 31, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.logo {
    font-family: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

    .nav-links a {
        color: var(--text);
        position: relative;
        padding: 8px 12px;
        border-radius: 999px;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
        font-size: 14px;
    }

    .nav-links:hover a {
        color: var(--muted);
    }

        .nav-links:hover a:hover {
            color: var(--text);
            transform: translateY(-1px);
        }

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(17, 18, 23, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
}

    .header-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(17, 18, 23, 0.22);
        opacity: 0.96;
    }

[data-theme="dark"] .header-cta {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .header-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(17, 18, 23, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.theme-toggle-icon {
    line-height: 1;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .header-pill {
        justify-content: space-between;
    }
}
