/* ============================================================
FOOTER — site-wide. Brand mark mirrors the navbar logo asset.
Bottom zone: legal + application version, two strict credit
badges (Bi Logic support -> company LinkedIn, Qwen build credit).
Hairline borders, single accent, no gradients or glow on badges.
Mobile: two link columns down to 320px, compact rhythm.
============================================================ */
.ft {
    --ft-brand: #5b7cff;
    --ft-teal: #37c9a5;
    --ft-violet: #8b7cf6;
    --ft-bg: #05070f;
    --ft-line: rgba(255,255,255,0.07);
    --ft-line-strong: rgba(255,255,255,0.14);
    --ft-text: #b8c1d9;
    --ft-muted: #7a8ba8;
    --ft-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
    position: relative;
    overflow: hidden;
    background: var(--ft-bg);
    padding: 64px 40px 36px;
    border-top: 1px solid var(--ft-line);
}

    .ft *, .ft *::before, .ft *::after {
        box-sizing: border-box;
    }
    /* Gradient hairline + ambient glow */
    .ft::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--ft-brand) 20%, var(--ft-teal) 50%, var(--ft-violet) 80%, transparent);
        opacity: 0.6;
    }

    .ft::after {
        content: '';
        position: absolute;
        top: -120px;
        left: -80px;
        width: 420px;
        height: 320px;
        background: radial-gradient(circle, rgba(91,124,255,0.08), transparent 70%);
        pointer-events: none;
    }

.ft-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
/* ---------- Top: brand + link columns ---------- */
.ft-top {
    display: flex;
    justify-content: space-between;
    gap: 56px;
    padding-bottom: 44px;
}

.ft-brand {
    max-width: 320px;
}

.ft-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

    .ft-logo img {
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.ft-tagline {
    margin: 0 0 22px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ft-muted);
}

.ft-socials {
    display: flex;
    gap: 10px;
}

.ft-social {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ft-line);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    color: var(--ft-muted);
    transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

    .ft-social:hover {
        color: #fff;
        border-color: rgba(91,124,255,0.45);
        background: rgba(91,124,255,0.08);
        transform: translateY(-2px);
    }

    .ft-social:focus-visible {
        outline: 2px solid var(--ft-brand);
        outline-offset: 3px;
    }

    .ft-social svg {
        width: 18px;
        height: 18px;
    }

.ft-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px,1fr));
    gap: 40px;
}

.ft-col h4 {
    margin: 0 0 16px;
    font-family: var(--ft-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ft-muted);
}

.ft-col a {
    display: block;
    position: relative;
    width: fit-content;
    margin-bottom: 11px;
    color: var(--ft-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

    .ft-col a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--ft-brand), var(--ft-teal));
        transition: width 0.25s ease;
    }

    .ft-col a:hover {
        color: #fff;
        transform: translateX(3px);
    }

        .ft-col a:hover::after {
            width: 100%;
        }
/* ---------- Bottom: legal + version, credit badges ---------- */
.ft-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--ft-line);
}

.ft-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ft-copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ft-muted);
}

.ft-version {
    margin: 0;
    font-family: var(--ft-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ft-muted);
}

.ft-credits {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 12px;
}
/* Strict credit badge: hairline border, flat surface, mono type.
   Shared by the Bi Logic support link and the Qwen build credit. */
.ft-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--ft-line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    color: var(--ft-muted);
    font-family: var(--ft-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

    .ft-badge strong {
        color: #fff;
        font-weight: 700;
    }

    .ft-badge svg {
        flex: none;
        width: 14px;
        height: 14px;
        color: var(--ft-muted);
        transition: color 0.2s;
    }

    .ft-badge:hover {
        color: var(--ft-text);
        border-color: rgba(91,124,255,0.45);
        background: rgba(91,124,255,0.06);
    }

        .ft-badge:hover svg {
            color: var(--ft-brand);
        }

    .ft-badge:focus-visible {
        outline: 2px solid var(--ft-brand);
        outline-offset: 3px;
    }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ft-top {
        flex-direction: column;
        gap: 36px;
    }

    .ft-cols {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 600px) {
    .ft {
        padding: 44px 20px 28px;
    }

    .ft-top {
        gap: 30px;
        padding-bottom: 32px;
    }

    .ft-brand {
        max-width: none;
    }

    .ft-logo {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

        .ft-logo img {
            width: 28px;
            height: 28px;
        }

    .ft-tagline {
        margin-bottom: 18px;
    }
    /* Two columns hold down to 320px; tighter link rhythm. */
    .ft-cols {
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
    }

    .ft-col h4 {
        margin-bottom: 10px;
    }

    .ft-col a {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .ft-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ft-credits {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-social, .ft-col a, .ft-col a::after, .ft-badge, .ft-badge svg {
        transition: none !important;
    }

        .ft-social:hover, .ft-col a:hover {
            transform: none !important;
        }
}
