/* ─── Unified site footer ─── */

.site-footer {
    margin: 0;
    padding: 3rem 0 0.75rem;
    background: #2c3329;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(51, 65, 85, 0.9);
}

.site-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
    align-items: start;
}

.site-footer__info {
    text-align: center;
}

.site-footer__info p {
    margin: 0;
}

.site-footer__info p + p {
    margin-top: 0.5rem;
}

.site-footer__brand {
    color: #ffffff;
    font-weight: 700;
}

.site-footer__info a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    padding: 0.15rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__info a:hover,
.site-footer__info a:focus-visible {
    color: #dbe4d9;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: flex-start;
    font-weight: 500;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.8rem;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: #738c6f;
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Made-by credit bar ─── */

.footer-made-by {
    max-width: 80rem;
    margin: 0.625rem auto 0;
    padding: 0.5rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-made-by__label {
    margin: 0;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer-made-by__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease;
}

.footer-made-by__brand:hover { transform: translateY(-1px); opacity: 0.88; }

.footer-made-by__brand:focus-visible {
    outline: 2px solid #2fe6ff;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-made-by__logo {
    filter: drop-shadow(0 2px 6px rgba(47, 230, 255, 0.18));
    flex: 0 0 auto;
}

.footer-made-by__terminal {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.01em;
}

.footer-made-by__terminal .t-prefix { color: #b0aae8; margin-right: 0.4em; }
.footer-made-by__terminal .t-dollar  { color: #8da889; margin-right: 0.4em; }
.footer-made-by__terminal .t-output  { color: #c8d8f0; }

.footer-made-by__terminal .t-caret {
    width: 0.4em;
    height: 0.8em;
    margin-left: 2px;
    border-radius: 1px;
    background: #2fe6ff;
    transform: translateY(1px);
    flex-shrink: 0;
}

@keyframes fmb-blink  { 0%,45%{opacity:1} 50%,95%{opacity:0} 100%{opacity:1} }
.footer-made-by__logo .fmb-pcaret,
.footer-made-by__terminal .t-caret { animation: fmb-blink 1.1s steps(1) infinite; }

/* ─── Responsive ─── */

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .site-footer__info {
        text-align: left;
    }
    .site-footer__nav {
        justify-content: flex-end;
        gap: 0.35rem 1rem;
    }
}

@media (min-width: 1536px) {
    .site-footer__inner,
    .footer-made-by {
        max-width: 96rem;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .site-footer__nav {
        gap: 0.6rem;
    }

    .footer-made-by {
        flex-wrap: wrap;
    }

    .footer-made-by__label {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-made-by__logo .fmb-pcaret,
    .footer-made-by__terminal .t-caret { animation: none !important; }
    .footer-made-by__brand { transition: none; }
}
