/* ======== XGLOBAL™ FOOTER ================= */


/* ======= VARIABLES ========================= */

.xg-footer {

    --footer-bg: #030812;
    --footer-panel: #071321;
    --footer-panel-soft: rgba(255,255,255,.035);

    --footer-text: #f5f8fc;
    --footer-muted: #a9b8ca;
    --footer-subtle: #71839a;

    --footer-blue: #4da3ff;
    --footer-cyan: #35d8ff;
    --footer-green: #38e3a1;
    --footer-purple: #a875ff;

    --footer-border: rgba(255,255,255,.085);

    position: relative;

    width: 100%;

    overflow: hidden;

    isolation: isolate;

    color: var(--footer-text);

    background:

        radial-gradient(
            circle at 8% 8%,
            rgba(56,227,161,.09),
            transparent 28%
        ),

        radial-gradient(
            circle at 92% 12%,
            rgba(53,216,255,.08),
            transparent 30%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(77,163,255,.07),
            transparent 35%
        ),

        linear-gradient(
            160deg,
            #06101d 0%,
            #030812 52%,
            #02060d 100%
        );

    border-top:
        1px solid rgba(255,255,255,.08);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.xg-footer::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -3;

    background-image:

        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    pointer-events: none;

}


/* =========================================================
   AMBIENT ORBS
========================================================= */

.xg-footer-orb {

    position: absolute;

    z-index: -2;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(90px);

    opacity: .18;

}

.xg-footer-orb-one {

    width: 320px;
    height: 320px;

    top: -170px;
    left: -120px;

    background: #35d8ff;

}

.xg-footer-orb-two {

    width: 360px;
    height: 360px;

    right: -180px;
    bottom: -180px;

    background: #38e3a1;

}


/* =========================================================
   INNER
========================================================= */

.xg-footer-inner {

    width: min(
        1440px,
        calc(100% - 32px)
    );

    margin-inline: auto;

    padding:

        clamp(58px, 8vw, 105px)
        0
        30px;

}


/* =========================================================
   MAIN GRID
========================================================= */

.xg-footer-main {

    display: grid;

    grid-template-columns:
        minmax(280px, 1.65fr)
        repeat(4, minmax(150px, 1fr));

    gap:
        clamp(28px, 4vw, 65px);

    align-items: start;

}


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

.xg-footer-brand {

    min-width: 0;

    max-width: 540px;

}


.xg-footer-brand-link {

    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: #fff;

    text-decoration: none;

}


.xg-footer-logo-wrap {

    display: grid;

    place-items: center;

    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(77,163,255,.13),
            rgba(53,216,255,.035)
        );

    border:
        1px solid rgba(77,163,255,.16);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.07);

}


.xg-footer-logo {

    width: 49px;
    height: 49px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 15px rgba(0,0,0,.28)
        );

    transition:
        transform .3s ease;

}


.xg-footer-brand-link:hover
.xg-footer-logo {

    transform:
        scale(1.07)
        rotate(-3deg);

}


.xg-footer-brand-name {

    font-size:
        clamp(1.25rem, 2vw, 1.7rem);

    font-weight: 850;

    letter-spacing: -.035em;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #a9dcff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

}


.xg-footer-brand-line {

    width: 75px;

    height: 3px;

    margin:
        23px 0 20px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--footer-green),
            var(--footer-blue)
        );

}


.xg-footer-description {

    margin: 0;

    color: var(--footer-muted);

    font-size:
        clamp(.9rem, 1vw, 1rem);

    line-height: 1.85;

}


.xg-footer-description strong {

    color: #fff;

    font-weight: 750;

}


/* =========================================================
   PLATFORM CARD
========================================================= */

.xg-footer-platform-card {

    display: flex;

    align-items: center;

    gap: 12px;

    width: fit-content;

    max-width: 100%;

    margin-top: 25px;

    padding: 11px 14px;

    border:
        1px solid rgba(255,255,255,.075);

    border-radius: 14px;

    background:
        rgba(255,255,255,.025);

}


.xg-footer-platform-icon {

    display: grid;

    place-items: center;

    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    border-radius: 10px;

    color: var(--footer-cyan);

    background:
        rgba(53,216,255,.09);

}


.xg-footer-platform-card strong {

    display: block;

    color: #eaf4ff;

    font-size: .78rem;

    line-height: 1.3;

}


.xg-footer-platform-card span {

    display: block;

    margin-top: 3px;

    color: var(--footer-subtle);

    font-size: .68rem;

}


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

.xg-footer-column {

    min-width: 0;

}


.xg-footer-heading {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 21px;

}


.xg-footer-heading-icon {

    display: grid;

    place-items: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border-radius: 9px;

    color: var(--footer-cyan);

    background:
        linear-gradient(
            135deg,
            rgba(53,216,255,.11),
            rgba(77,163,255,.05)
        );

    border:
        1px solid rgba(53,216,255,.1);

    font-size: 13px;

}


.xg-footer-column h2 {

    margin: 0;

    color: #fff;

    font-size:
        clamp(.86rem, 1vw, .98rem);

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: -.01em;

}


/* =========================================================
   COLUMN LIST
========================================================= */

.xg-footer-column ul {

    display: grid;

    gap: 4px;

    padding: 0;

    margin: 0;

    list-style: none;

}


.xg-footer-column li {

    margin: 0;

}


.xg-footer-column a {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 38px;

    padding: 5px 7px;

    margin-left: -7px;

    border-radius: 10px;

    color: var(--footer-muted);

    text-decoration: none;

    font-size:
        clamp(.8rem, .9vw, .9rem);

    line-height: 1.35;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;

}


.xg-footer-column a:hover {

    color: #fff;

    background:
        rgba(77,163,255,.055);

    transform:
        translateX(3px);

}


.xg-footer-column a:focus-visible {

    outline:
        2px solid var(--footer-cyan);

    outline-offset: 2px;

}


.xg-footer-link-icon {

    display: grid;

    place-items: center;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    border-radius: 7px;

    color: #83caff;

    background:
        rgba(77,163,255,.065);

    font-size: 11px;

    transition:
        background .2s ease,
        color .2s ease;

}


.xg-footer-column a:hover
.xg-footer-link-icon {

    color: #dff7ff;

    background:
        rgba(53,216,255,.13);

}


/* =========================================================
   DIVIDER
========================================================= */

.xg-footer-divider {

    display: flex;

    align-items: center;

    width: 100%;

    margin:
        clamp(45px, 6vw, 75px)
        0
        30px;

}


.xg-footer-divider::before,
.xg-footer-divider::after {

    content: "";

    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.09)
        );

}


.xg-footer-divider::after {

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.09),
            transparent
        );

}


.xg-footer-divider span {

    width: 7px;
    height: 7px;

    margin-inline: 12px;

    border-radius: 50%;

    background: var(--footer-cyan);

    box-shadow:
        0 0 18px rgba(53,216,255,.45);

}


/* =========================================================
   ECOSYSTEM STATEMENT
========================================================= */

.xg-footer-ecosystem {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    width: fit-content;

    max-width: 100%;

    margin:
        0 auto
        28px;

    padding:
        12px 18px;

    border:
        1px solid rgba(255,255,255,.065);

    border-radius: 15px;

    background:
        rgba(255,255,255,.025);

}


.xg-footer-ecosystem-icon {

    display: grid;

    place-items: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 11px;

    color: var(--footer-green);

    background:
        rgba(56,227,161,.08);

    font-size: 17px;

}


.xg-footer-ecosystem-text {

    min-width: 0;

}


.xg-footer-ecosystem-text strong {

    display: block;

    color: #fff;

    font-size: .82rem;

    font-weight: 800;

}


.xg-footer-ecosystem-text span {

    display: block;

    margin-top: 4px;

    color: var(--footer-subtle);

    font-size: .72rem;

}


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

.xg-footer-bottom {

    padding:
        25px 15px 5px;

    border-top:
        1px solid rgba(255,255,255,.065);

    text-align: center;

}


.xg-footer-bottom p {

    width: min(
        100%,
        1050px
    );

    margin:
        9px auto;

    color: var(--footer-subtle);

    font-size:
        clamp(.7rem, .85vw, .82rem);

    line-height: 1.7;

}


.xg-footer-bottom strong {

    color: #e9f2fb;

    font-weight: 750;

}


.xg-footer-powered {

    color: #8fa3ba !important;

}


.xg-footer-copyright {

    color: #8799ae !important;

}


.xg-footer-trademarks {

    max-width: 900px !important;

    font-size:
        clamp(.66rem, .8vw, .76rem) !important;

}


.xg-footer-mini-links {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;

}


.xg-footer-mini-links a {

    color: #8ea4ba;

    text-decoration: none;

    font-size: .73rem;

    font-weight: 650;

    transition:
        color .2s ease;

}


.xg-footer-mini-links a:hover {

    color: #fff;

}


.xg-footer-mini-links a:focus-visible {

    outline:
        2px solid var(--footer-cyan);

    outline-offset: 3px;

    border-radius: 3px;

}


.xg-footer-mini-links span {

    color: #445468;

    font-size: .65rem;

}


/* =========================================================
   LARGE TABLETS
========================================================= */

@media (max-width: 1150px) {

    .xg-footer-main {

        grid-template-columns:
            minmax(280px, 1.5fr)
            repeat(2, minmax(170px, 1fr));

    }


    .xg-footer-brand {

        grid-column: 1 / -1;

        max-width: 760px;

    }

}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 760px) {

    .xg-footer-inner {

        width:
            min(
                100% - 30px,
                620px
            );

        padding-top: 55px;

    }


    .xg-footer-main {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 38px 25px;

    }


    .xg-footer-brand {

        grid-column: 1 / -1;

        max-width: none;

    }


    .xg-footer-heading {

        margin-bottom: 15px;

    }


    .xg-footer-column a {

        min-height: 40px;

    }


    .xg-footer-description {

        line-height: 1.75;

    }

}


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

@media (max-width: 560px) {

    .xg-footer {

        text-align: center;

    }


    .xg-footer-inner {

        width:
            calc(100% - 28px);

        padding-top: 48px;

        padding-bottom: 22px;

    }


    .xg-footer-main {

        grid-template-columns: 1fr;

        gap: 34px;

    }


    .xg-footer-brand {

        display: flex;

        flex-direction: column;

        align-items: center;

    }


    .xg-footer-brand-link {

        justify-content: center;

    }


    .xg-footer-brand-line {

        margin:
            20px auto;

    }


    .xg-footer-description {

        max-width: 560px;

        font-size: .91rem;

        line-height: 1.8;

    }


    .xg-footer-platform-card {

        text-align: left;

    }


    .xg-footer-heading {

        justify-content: center;

    }


    .xg-footer-column ul {

        gap: 3px;

    }


    .xg-footer-column a {

        justify-content: center;

        margin-left: 0;

        padding:
            7px 5px;

    }


    .xg-footer-column a:hover {

        transform: none;

    }


    .xg-footer-link-icon {

        width: 27px;
        height: 27px;

        flex-basis: 27px;

    }


    .xg-footer-ecosystem {

        width: 100%;

        justify-content: center;

        text-align: left;

        padding: 13px;

    }


    .xg-footer-bottom {

        padding-inline: 5px;

    }


}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .xg-footer-inner {

        width:
            calc(100% - 22px);

        padding-top: 42px;

    }


    .xg-footer-logo-wrap {

        width: 55px;
        height: 55px;

        flex-basis: 55px;

        border-radius: 16px;

    }


    .xg-footer-logo {

        width: 43px;
        height: 43px;

    }


    .xg-footer-brand-name {

        font-size: 1.15rem;

    }


    .xg-footer-description {

        font-size: .87rem;

    }


    .xg-footer-platform-card {

        width: 100%;

        justify-content: flex-start;

    }


    .xg-footer-ecosystem-text strong {

        font-size: .76rem;

    }


    .xg-footer-ecosystem-text span {

        font-size: .66rem;

        line-height: 1.5;

    }


    .xg-footer-mini-links {

        gap: 6px;

    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 320px) {

    .xg-footer-brand-link {

        flex-direction: column;

    }


    .xg-footer-brand-name {

        font-size: 1.1rem;

    }


    .xg-footer-description {

        font-size: .83rem;

    }


    .xg-footer-platform-card {

        text-align: center;

        flex-direction: column;

    }


    .xg-footer-ecosystem {

        flex-direction: column;

        text-align: center;

    }


    .xg-footer-bottom p {

        font-size: .65rem;

    }

}


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

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

    .xg-footer *,
    .xg-footer *::before,
    .xg-footer *::after {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}
