:root {
    --coinflow-footer-bg: #071525;
    --coinflow-footer-light: #0d2035;
    --coinflow-footer-text: #ffffff;
    --coinflow-footer-muted: #8d9bad;
    --coinflow-footer-border: rgba(255, 255, 255, 0.09);
    --coinflow-blue: #2f80ed;
    --coinflow-blue-dark: #236fd5;
}


/* ======================================================
   FOOTER
====================================================== */

.coinflow-footer {
    margin-top: 0;

    background: var(--coinflow-footer-bg);

    color: var(--coinflow-footer-text);
}


/* ======================================================
   MAIN FOOTER
====================================================== */

.footer-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding: 70px 0 60px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1.7fr)
        repeat(3, minmax(130px, 1fr));

    gap: 55px;
}


/* ======================================================
   BRAND
====================================================== */

.footer-brand {
    max-width: 350px;
}


.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #ffffff;

    text-decoration: none;
}


.footer-logo-mark {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: flex-end;

    gap: 3px;

    padding: 7px;

    border-radius: 10px;

    background: #ffffff;
}


.footer-logo-mark span {
    display: block;

    width: 4px;

    border-radius: 3px;

    background: var(--coinflow-footer-bg);
}


.footer-logo-mark span:nth-child(1) {
    height: 8px;
}


.footer-logo-mark span:nth-child(2) {
    height: 14px;
}


.footer-logo-mark span:nth-child(3) {
    height: 20px;
}


.footer-logo > span:last-child {
    font-size: 20px;

    font-weight: 750;

    letter-spacing: -0.045em;
}


.footer-brand p {
    margin: 18px 0 0;

    max-width: 320px;

    color: var(--coinflow-footer-muted);

    font-size: 14px;

    line-height: 1.75;
}


/* ======================================================
   FOOTER COLUMNS
====================================================== */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-column h3 {
    margin: 3px 0 18px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.01em;
}


.footer-column a {
    margin-bottom: 12px;

    color: var(--coinflow-footer-muted);

    text-decoration: none;

    font-size: 13px;

    line-height: 1.5;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.footer-column a:hover {
    color: #ffffff;

    transform: translateX(2px);
}


.footer-note {
    color: var(--coinflow-footer-muted);

    font-size: 13px;

    line-height: 1.5;
}


/* ======================================================
   FOOTER BOTTOM
====================================================== */

.footer-bottom {
    border-top: 1px solid var(--coinflow-footer-border);
}


.footer-bottom-container {
    width: min(1180px, calc(100% - 48px));

    min-height: 70px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.footer-bottom p {
    margin: 0;

    color: var(--coinflow-footer-muted);

    font-size: 12px;
}


.footer-bottom-links {
    display: flex;

    align-items: center;

    gap: 24px;
}


.footer-bottom-links a {
    color: var(--coinflow-footer-muted);

    text-decoration: none;

    font-size: 12px;

    transition: color 0.2s ease;
}


.footer-bottom-links a:hover {
    color: #ffffff;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 850px) {

    .footer-container {
        grid-template-columns:
            1.5fr
            1fr
            1fr;

        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;

        max-width: 500px;
    }
}


@media (max-width: 600px) {

    .footer-container {
        width: calc(100% - 32px);

        padding: 55px 0 45px;

        grid-template-columns:
            1fr 1fr;

        gap: 38px 25px;
    }


    .footer-brand {
        grid-column: 1 / -1;
    }


    .footer-brand p {
        font-size: 13px;
    }


    .footer-column h3 {
        margin-bottom: 15px;
    }


    .footer-column a,
    .footer-note {
        font-size: 13px;
    }


    .footer-bottom-container {
        width: calc(100% - 32px);

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;
    }


    .footer-bottom-links {
        gap: 18px;

        flex-wrap: wrap;
    }
}


@media (max-width: 380px) {

    .footer-container {
        width: calc(100% - 24px);

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-brand {
        grid-column: auto;
    }


    .footer-bottom-container {
        width: calc(100% - 24px);
    }
}


/* ======================================================
   REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {

    .footer-column a,
    .footer-bottom-links a {
        transition: none;
    }
}