/* ── Container ──────────────────────────────────────────────────────── */
.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    gap: 24px;
}

@media (max-width: 1024px) {
    .site-nav {
        padding: 12px 20px;
        gap: 16px;
    }

    .nav-links-center {
        gap: 16px;
        font-size: 13px;
    }
}

.site-nav.scrolled {
    background: rgba(7, 9, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text span {
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: block;
    font-size: 15px;
}

.logo-text small {
    font-size: 11px;
    color: var(--muted);
}

.nav-links-center {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links-center a {
    color: var(--muted);
    transition: color 0.2s;
}

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

.nav-right {
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile drawer */
.nav-mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 26, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    padding: 16px 24px 24px;
}

.nav-mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-mobile-drawer a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}

.nav-mobile-drawer a:last-child {
    border-bottom: none;
    margin-top: 12px;
}

.nav-mobile-drawer .button {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ── Section base ───────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}

.section.dark {
    background: var(--surface);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

/* ── Grid ───────────────────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-mascot {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.footer-tagline {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-nav-heading {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 16px;
}

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer nav a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer nav a:hover {
    color: var(--text);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
}
/* ── Mobile Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Nav: hide desktop links, show hamburger */
    .nav-links-center,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Sections: reduce vertical padding */
    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .section-head p {
        font-size: 15px;
    }

    /* Footer: stack to single column */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-social {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
    }
}
