.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(11, 16, 32, 0.82);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: rgba(124, 156, 255, 0.14);
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-content {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: 2rem 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.footer-copy,
.footer-bottom {
    color: var(--text-soft);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.footer-bottom {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: 0 0 2rem;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: rgba(11, 16, 32, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .footer-content {
        flex-direction: column;
    }
}
