/* Product footer: deep ink surface, brand + links + affiliations. */
.site-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 99, 230, .22), transparent 34%),
        linear-gradient(180deg, #182235 0%, #131b2a 100%);
    color: #e7edf7;
    display: block;
    font-family: var(--site-nav-font);
    font-size: 14px;
    height: auto;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
    margin-top: 56px;
    min-height: 0;
    overflow: visible;
    padding: 0;
    position: relative;
    text-align: left;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
    text-shadow: none;
}

.site-footer::before {
    background: linear-gradient(90deg, transparent, rgba(122, 92, 240, .7), transparent);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.site-footer-inner {
    box-sizing: border-box;
    display: grid;
    gap: 32px;
    grid-template-columns: 1.15fr .75fr 1.5fr;
    margin: 0 auto;
    max-width: 1200px;
    padding: 46px 32px 36px;
    width: 100%;
}

.site-footer-inner-no-affiliations {
    grid-template-columns: 1.2fr .8fr;
}

.site-footer-brand {
    max-width: 420px;
}

.site-footer-logo {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 10px;
    text-decoration: none;
}

.site-footer-logo:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--site-nav-accent), var(--site-nav-accent-2));
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(79, 99, 230, .28);
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.site-footer-logo > span:last-child {
    color: inherit;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: none;
}

.site-footer-tagline {
    color: #f2f5fb;
    font-size: 17px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.site-footer-desc {
    color: #9fadc2;
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    max-width: 390px;
}

.site-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.site-footer-social a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    color: #c7d2e2;
    display: inline-flex;
    font-size: 15px;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 36px;
}

.site-footer-social a:hover {
    background: rgba(122, 92, 240, .2);
    border-color: rgba(160, 150, 255, .5);
    color: #fff;
    transform: translateY(-1px);
}

.site-footer h2 {
    color: #8e9db3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 2px 0 16px;
    text-transform: uppercase;
}

.site-footer h2 span {
    color: #93a3ba;
    font-size: 10px;
    letter-spacing: .14em;
    margin-left: 6px;
}

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

.site-footer-nav a {
    color: #c5d0df;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
    width: fit-content;
}

.site-footer-nav a:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.site-footer-affiliations ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-affiliations li {
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.site-footer-affiliations li:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-footer-num {
    color: #8f8cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.65;
    min-width: 22px;
    padding-top: 1px;
}

.site-footer-affiliation {
    color: #d8e1ee;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer-bottom-inner {
    align-items: center;
    box-sizing: border-box;
    color: #9aa9bd;
    display: flex;
    font-size: 12px;
    gap: 16px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 16px 32px;
    width: 100%;
}

.site-footer-bottom-inner span {
    color: inherit;
}

.site-footer-bottom-inner a {
    color: #aebbd0;
    text-decoration: none;
}

.site-footer-bottom-inner a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .site-footer-inner {
        gap: 28px 32px;
        grid-template-columns: 1.2fr .8fr;
    }

    .site-footer-affiliations {
        border-top: 1px solid rgba(255, 255, 255, .08);
        grid-column: 1 / -1;
        padding-top: 24px;
    }

    .site-footer-affiliations ul {
        display: grid;
        gap: 0 28px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .site-footer-affiliations li {
        border-top: 0;
        padding: 8px 0;
    }
}

@media (max-width: 650px) {
    .site-footer {
        margin-top: 40px;
    }

    .site-footer-inner {
        gap: 26px;
        grid-template-columns: 1fr;
        padding: 34px 18px 28px;
    }

    .site-footer-brand {
        max-width: none;
    }

    .site-footer-affiliations {
        border-top: 0;
        grid-column: auto;
        padding-top: 0;
    }

    .site-footer-affiliations ul {
        grid-template-columns: 1fr;
    }

    .site-footer-affiliations li {
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding: 10px 0;
    }

    .site-footer-affiliations li:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .site-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 14px 18px 18px;
    }
}
