.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(9, 18, 48, 0.6);
    backdrop-filter: blur(18px);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.site-header.scrolled,
.site-header.is-solid {
    background: rgba(10, 19, 50, 0.95);
    box-shadow: 0 20px 60px rgba(9, 20, 51, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(49, 241, 209, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-text span:first-child {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.62);
}

.brand-text span:last-child {
    font-size: 1.25rem;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    background: rgba(49, 241, 209, 0.18);
}

.menu-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.menu-toggle[aria-expanded='true'] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded='true'] .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.primary-nav {
    position: fixed;
    inset: var(--header-height) 1.5rem auto 1.5rem;
    background: rgba(10, 19, 50, 0.96);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-30px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--aqua-400), var(--pink-400));
    transition: width 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current='page']::after {
    width: 100%;
}

.primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-action {
    display: none;
}

.header-action .btn {
    font-size: 0.8rem;
    padding: 0.85rem 1.6rem;
    box-shadow: 0 18px 35px rgba(49, 241, 209, 0.25);
}

.section {
    position: relative;
    padding: 6rem 0;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 49, 0.45);
    opacity: 0.38;
    z-index: 0;
}

.section--alt::before {
    background: rgba(255, 255, 255, 0.06);
    opacity: 0.22;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 1rem;
}

.section-heading p {
    max-width: 56ch;
    margin: 0 auto;
}

.site-footer {
    background: rgba(7, 16, 44, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding: 3.25rem 0 2.5rem;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 0.75rem;
}

.footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-block {
    display: grid;
    gap: 0.65rem;
    font-size: 0.95rem;
}

.footer-block h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #fff;
}

.footer-block ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.footer-block a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-block a:hover,
.footer-block a:focus-visible {
    color: var(--aqua-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 28, 0.92);
}

.footer-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 960px) {
    .menu-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        gap: 2.5rem;
    }

    .primary-nav ul {
        flex-direction: row;
        gap: 2.5rem;
    }

    .primary-nav a::after {
        bottom: -0.6rem;
    }

    .header-action {
        display: block;
    }
}

@media (min-width: 720px) {
    .footer-bottom__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .header-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 540px) {
    .brand-text {
        display: none;
    }
}
