/* =========================================================
   APF COMPACT FOOTER
========================================================= */

#main-footer {
    position: relative;
    isolation: isolate;

    margin-top: 64px;
    padding: 42px 24px 20px;

    overflow: hidden;

    color: #fff;
    background:
        linear-gradient(180deg, #101013 0%, #09090b 100%);
}

#main-footer::before {
    content: "";

    position: absolute;
    z-index: -1;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            color-mix(in srgb, var(--beam-color) 26%, transparent) 18%,
            color-mix(in srgb, var(--beam-color) 38%, transparent) 50%,
            color-mix(in srgb, var(--beam-color) 26%, transparent) 82%,
            transparent 100%
        ) top / 100% 1px no-repeat,
        radial-gradient(
            circle at 82% 0%,
            color-mix(in srgb, var(--beam-color) 9%, transparent),
            transparent 34%
        );
}

.footer-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
}

/* =========================================================
   MAIN AREA
========================================================= */

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(38px, 6vw, 76px);
}

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

.footer-brand {
    min-width: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    color: #fff;
    text-decoration: none;
}

.footer-logo-svg {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    color: var(--beam-color);
    background:
        color-mix(in srgb, var(--beam-color) 7%, #0a0a0c);

    border:
        1px solid color-mix(
            in srgb,
            var(--beam-color) 27%,
            transparent
        );
    border-radius: 16px;

    box-shadow:
        inset 0 0 18px color-mix(
            in srgb,
            var(--beam-color) 5%,
            transparent
        );
}

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

    display: block;

    color: var(--beam-color);
    fill: currentColor;
}

.dynamic-logo-footer use {
    fill: currentColor;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-brand-copy strong {
    color: #f8f8fa;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;

    direction: ltr;
    white-space: nowrap;
}

.footer-brand-copy strong span {
    color: var(--beam-color);
}

.footer-brand-copy small {
    margin-top: 3px;

    color: #8e8e98;

    font-size: 11px;
    font-weight: 700;
}

.footer-description {
    max-width: 360px;
    margin: 17px 0 0;

    color: #aaaab3;

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.9;
}

/* =========================================================
   SOCIALS
========================================================= */

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #b8b8c0;
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;

    text-decoration: none;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.footer-social-btn svg {
    width: 17px;
    height: 17px;

    display: block;

    fill: currentColor;
    pointer-events: none;
}

.footer-social-btn:hover {
    color: #fff;
    background:
        color-mix(in srgb, var(--beam-color) 10%, transparent);

    border-color:
        color-mix(in srgb, var(--beam-color) 45%, transparent);

    transform: translateY(-2px);
}

/* =========================================================
   NAVIGATION
========================================================= */

.footer-navigation {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.15fr;
    gap: clamp(22px, 4vw, 52px);
}

.footer-column {
    min-width: 0;

    padding-inline-start: 18px;

    border-inline-start: 1px solid rgba(255, 255, 255, 0.065);
}

.footer-column-title {
    margin: 0 0 14px;

    color: #f2f2f4;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-links a {
    position: relative;

    color: #aaaab2;

    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.55;
    text-decoration: none;

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

.footer-links a::after {
    content: "";

    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;

    width: 0;
    height: 1px;

    background: var(--beam-color);

    transition: width 0.22s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* =========================================================
   APF NETWORK
========================================================= */

.footer-network {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 27px;
    padding: 12px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-network-label {
    flex: 0 0 auto;

    color: #92929b;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.footer-network-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 0;

    direction: ltr;
}

.footer-network-link {
    display: inline-flex;
    align-items: center;

    color: #a4a4ad;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.footer-network-link + .footer-network-link::before {
    content: "|";

    margin: 0 14px;

    color: rgba(255, 255, 255, 0.18);

    font-weight: 400;
}

.footer-network-link:hover,
.footer-network-link[aria-current="page"] {
    color: #f4f4f5;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding-top: 14px;

    color: #85858e;

    font-size: 10.5px;
    font-weight: 650;
}

.footer-bottom-note {
    color: #92929b;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    #main-footer {
        margin-top: 56px;
        padding-top: 36px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 22px;
    }

    .footer-description {
        max-width: none;
        margin-top: 6px;
    }

    .footer-socials {
        grid-column: 2;
        margin-top: 12px;
    }

    .footer-navigation {
        padding-top: 26px;

        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
    #main-footer {
        margin-top: 32px;
        padding: 25px 16px 14px;
    }

    .footer-main {
        gap: 21px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .footer-brand-link {
        justify-content: center;
    }

    .footer-logo-svg {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .dynamic-logo-footer {
        width: 30px;
        height: 30px;
    }

    .footer-brand-copy {
        text-align: left;
    }

    .footer-brand-copy strong {
        font-size: 18px;
    }

    .footer-description {
        max-width: 340px;
        margin-top: 10px;

        font-size: 11.5px;
        line-height: 1.8;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 11px;
    }

    .footer-social-btn {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .footer-social-btn svg {
        width: 16px;
        height: 16px;
    }

    .footer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 18px;

        padding-top: 19px;
    }

    .footer-column {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

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

        padding-top: 16px;

        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-column--support .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 18px;
    }

    .footer-column-title {
        margin-bottom: 11px;

        font-size: 12.5px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-network {
        flex-direction: column;
        justify-content: center;
        gap: 8px;

        margin-top: 20px;
        padding: 11px 0;
    }

    .footer-network-links {
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        gap: 0;
    }

    .footer-network-link {
        font-size: clamp(8.5px, 2.65vw, 10px);
    }

    .footer-network-link + .footer-network-link::before {
        margin: 0 clamp(6px, 2vw, 10px);
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        padding-top: 11px;

        text-align: center;
    }
}

/* =========================================================
   REVEAL
========================================================= */

.ameer-reveal {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(18px);

    transition:
        opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.ameer-reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ameer-reveal {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}
