.site-footer {
    position: relative;
    padding: 30px 40px 30px 320px;
    background: linear-gradient(
            180deg,
            #121519 0%,
            #0e1013 100%
    );
    border-top: 1px solid #272c32;
    overflow: hidden;
    isolation: isolate;
}

/* subtle AI glow */
.site-footer-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 500px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(
            circle,
            rgba(13, 110, 253, .18),
            transparent 70%
    );
    pointer-events: none;
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* =========================
   Brand
   ========================= */
.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.site-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8f9fa;
    white-space: nowrap;
}

.site-footer-logo i {
    color: #0d6efd;
    font-size: 1.3rem;
    filter: drop-shadow(
            0 0 8px rgba(13, 110, 253, .8)
    );
}

.site-footer-copy {
    color: #6c757d;
    font-size: .8rem;
    white-space: nowrap;
}

/* =========================
   Links
   ========================= */
.site-footer-links {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: end;
    gap: 12px 26px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #adb5bd;
    text-decoration: none;
    font-size: .875rem;
    white-space: nowrap;
    transition: color .2s ease,
    transform .2s ease;
}

.site-footer-links a i {
    font-size: .9rem;
    flex-shrink: 0;
}

.site-footer-links a:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

/* =========================
   Tablet
   ========================= */
@media (max-width: 1100px) {
    .site-footer {
        padding: 30px 30px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .site-footer-links {
        grid-template-columns: repeat(4, auto);
        justify-content: start;
    }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px;
    }

    .site-footer-inner {
        align-items: flex-start;
        gap: 24px;
    }

    .site-footer-brand {
        width: 100%;
    }

    .site-footer-copy {
        white-space: normal;
    }

    .site-footer-links {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        align-items: start;
        gap: 14px 20px;
    }

    .site-footer-links a {
        justify-content: flex-start;
        font-size: .9rem;
    }

    .site-footer-glow {
        top: -60px;
        left: 50%;
        width: 100%;
        height: 260px;
        background: radial-gradient(
                circle at top center,
                rgba(13, 110, 253, .18),
                transparent 70%
        );
    }
}

/* =========================
   Very small phones
   ========================= */
@media (max-width: 390px) {
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer-logo {
        font-size: 1rem;
    }

    .site-footer-copy {
        font-size: .75rem;
    }

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