.site-footer {
    position: relative;
    margin-top: 4rem;
    padding: 3.4rem 1rem 6.5rem;
    background: #081323;
    border-top: 1px solid #1b314d;
    overflow: hidden;
}

/* Home page already renders the same dark gradient behind this footer, so fade the flat
   footer background in from transparent instead of cutting hard into it. */
.home-page + .site-footer {
    margin-top: 0;
    border-top: none;
    background: linear-gradient(180deg, transparent 0%, #081323 9rem, #081323 100%);
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1338px;
    margin: 0 auto;
    padding: 0;
    color: #e2e8f0;
    animation: footer-rise 560ms ease-out;
}

.site-footer-card {
    position: relative;
    border: 1px solid #1b314d;
    border-radius: 26px;
    padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.6rem, 4vw, 3.2rem) clamp(1.4rem, 3vw, 2rem);
}

.site-footer-watermark {
    position: absolute;
    left: 50%;
    bottom: -3.2rem;
    transform: translate(-50%, 0);
    z-index: 0;
    font-size: clamp(4.5rem, 15vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(241, 245, 251, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 92%);
    mask-image: linear-gradient(to top, #000 40%, transparent 92%);
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: #f1f5fb;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.site-footer-brand span span,
.site-footer-bottom-brand span span {
    color: #557df2;
}

.site-footer-logo {
    width: 2.65rem;
    height: 2.65rem;
    object-fit: contain;
}

.site-footer-tag {
    max-width: 320px;
    margin: 1.35rem 0 1.7rem;
    color: #a8bad3;
    font-size: 0.98rem;
    line-height: 1.6;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(160px, 0.85fr) minmax(245px, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.site-footer-col {
    min-width: 0;
}

.site-footer-label {
    color: #f1f5fb;
    margin: 0 0 0.42rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.site-footer-value {
    display: flex;
    gap: 0.72rem;
    color: #afc0d7;
    font-size: 0.95rem;
    margin: 0.8rem 0;
    line-height: 1.55;
}

.site-footer-value i {
    flex: 0 0 1rem;
    margin-top: 0.2rem;
    color: #5585ff;
}

.site-footer-list {
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.site-footer-list a {
    color: #afc0d7;
    font-size: 0.95rem;
    text-decoration: none;
    outline: none;
}

.site-footer-list a:hover,
.site-footer-list a:focus-visible {
    color: #e0f2fe;
}

.site-footer-list a::before,
.site-footer-links a::before {
    content: ">";
    margin-right: 0.75rem;
    color: #5585ff;
    font-size: 1.25rem;
    line-height: 0;
    vertical-align: -0.08rem;
}

.site-footer-links {
    display: grid;
    gap: 0.9rem;
}

.site-footer-platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer-platform {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #263c59;
    border-radius: 9px;
    color: #d8e3f2;
    background: #102039;
    font-size: 1.05rem;
}

.site-footer-link {
    color: #afc0d7;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 140ms ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
    color: #e0f2fe;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid #1b314d;
}

.site-footer-bottom-copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #a9bad1;
    font-size: 0.85rem;
}

.site-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: #6f819a;
    font-size: 0.82rem;
}

.site-footer-bottom-links a {
    color: #afc0d7;
    text-decoration: none;
}

.site-footer-bottom-links a:hover,
.site-footer-bottom-links a:focus-visible {
    color: #fff;
}

@keyframes footer-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
    }

    .site-footer-watermark {
        font-size: clamp(3.5rem, 18vw, 7rem);
        bottom: -1.8rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 2.5rem;
        padding: 2.6rem 1.2rem 4.5rem;
    }

    .site-footer-inner {
        padding: 0;
    }

    .site-footer-card {
        padding: 1.8rem 1.2rem 1.4rem;
        border-radius: 18px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer-brand {
        font-size: 1.55rem;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 2.5rem;
    }

    .site-footer-bottom-links {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-inner {
        animation: none;
    }
}
