/* ===== Navigation ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(9, 9, 11, 0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    color: var(--text-strong);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    transition: color 0.3s ease;
}

.logo span {
    color: var(--brand-accent);
}

a.logo:hover {
    color: var(--brand-accent);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
    color: var(--text-strong);
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-500);
}

.nav-ext {
    margin-left: 0.125rem;
    font-size: 0.625rem;
    opacity: 0.6;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 1.25rem;
    cursor: pointer;
}

.nav-toggle:hover {
    color: var(--text-strong);
}

.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem 1.5rem;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
}

.mobile-menu .btn {
    margin-top: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle,
    .mobile-menu {
        display: none;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.btn--primary {
    background: var(--brand-600);
    box-shadow: 0 0 20px var(--brand-glow);
}

.btn--primary:hover {
    background: var(--brand-500);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--pill {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn--pill:hover {
    transform: none;
    box-shadow: 0 0 15px var(--brand-glow);
}

/* ===== Cards ===== */
.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--border);
}

@media (min-width: 640px) {
    .card--lg {
        padding: 2rem;
    }
}

/* ===== Tags & badges ===== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-solid);
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--brand-accent);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Icon boxes ===== */
.icon-box {
    --icon-color: var(--brand-accent);

    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    color: var(--icon-color);
    font-size: 1.25rem;
}

.icon-box--lg {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.875rem;
}

.icon-box--microsoft { --icon-color: #00a4ef; }
.icon-box--blue { --icon-color: #60a5fa; }
.icon-box--amber { --icon-color: #fbbf24; }
