/* Xreference flagship footer - inspired by the Protosoft footer, tuned for the Xreference shell. */
.xr-site-footer--flagship {
    --xr-footer-bg: #061326;
    --xr-footer-bg-deep: #030b18;
    --xr-footer-panel: rgba(6, 22, 45, 0.78);
    --xr-footer-panel-strong: rgba(7, 27, 56, 0.92);
    --xr-footer-accent: #1b64c4;
    --xr-footer-accent-soft: #7eace2;
    --xr-footer-text: #d9e5f5;
    --xr-footer-muted: #9fb0c6;
    --xr-footer-line: rgba(126, 172, 226, 0.20);
    --xr-footer-white: #ffffff;
    padding: 0 !important;
    color: var(--xr-footer-text);
    background: var(--xr-footer-bg-deep);
}

.xr-site-footer--flagship .container-xl {
    max-width: 1424px;
}

.xr-footer-proof-strip {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0 1.2rem;
    background:
        radial-gradient(circle at 82% 20%, rgba(27, 100, 196, 0.28), transparent 34%),
        linear-gradient(135deg, #061326 0%, #092446 100%);
    border-top: 1px solid rgba(126, 172, 226, 0.10);
}

.xr-footer-proof-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(126, 172, 226, 0.04), transparent);
    pointer-events: none;
}

.xr-footer-proof-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--xr-footer-line);
}

.xr-footer-proof-item {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
}

.xr-site-footer--flagship .xr-footer-proof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    min-width: 34px;
    height: auto;
    margin-top: 5px;
    color: #4aa3ff;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 30px;
    line-height: 1;
    text-align: center;
}

.xr-footer-proof-item strong {
    display: block;
    margin: 0 0 0.15rem;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
}

.xr-footer-proof-item span,
.xr-footer-proof-item a {
    display: block;
    color: var(--xr-footer-text);
    font-size: 0.96rem;
    line-height: 1.35;
    text-decoration: none;
}

.xr-footer-proof-item a:hover,
.xr-footer-proof-item a:focus {
    color: #ffffff;
    text-decoration: none;
}

.xr-footer-main {
    position: relative;
    overflow: hidden;
    padding: 2.8rem 0 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(27, 100, 196, 0.16), transparent 32%),
        linear-gradient(135deg, #030b18 0%, #061326 54%, #081d3b 100%);
}

.xr-footer-main::before {
    content: "";
    position: absolute;
    inset: 1rem 0 auto 0;
    height: 76%;
    opacity: 0.075;
    background-image: var(--xr-footer-map, none);
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: min(820px, 68vw) auto;
    pointer-events: none;
}

.xr-footer-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%);
    pointer-events: none;
}

.xr-footer-body-grid,
.xr-footer-bottom {
    position: relative;
    z-index: 1;
}

.xr-footer-body-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.95fr) minmax(360px, 1fr) minmax(430px, 1.08fr);
    gap: clamp(3rem, 5vw, 5.5rem);
    align-items: start;
}

.xr-footer-product-logo,
.xr-footer-maker-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.xr-footer-product-logo img {
    display: block;
    width: 248px;
    max-width: 100%;
    height: auto;
    margin: 0 0 1.25rem;
}

.xr-footer-product h3 {
    max-width: 330px;
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 850;
}

.xr-footer-product p,
.xr-footer-maker p,
.xr-footer-confidence p {
    margin: 0 0 0.9rem;
    color: var(--xr-footer-text);
    font-size: 0.92rem;
    line-height: 1.58;
}

.xr-footer-product p:last-child,
.xr-footer-maker p:last-child,
.xr-footer-confidence p:last-child {
    margin-bottom: 0;
}

.xr-footer-tags {
    display: grid;
    justify-items: start;
    gap: 0.45rem;
    margin-top: 1.05rem;
}

.xr-footer-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.8rem;
    padding: 0.28rem 0.78rem;
    border: 1px solid rgba(126, 172, 226, 0.25);
    border-radius: 999px;
    color: #dfeafe;
    background: rgba(126, 172, 226, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.xr-footer-tags i {
    color: #4aa3ff;
    font-size: 0.9rem;
}

.xr-footer-maker {
    display: flex;
    min-height: 407px;
    flex-direction: column;
    padding: 1.9rem 2rem 2rem;
    border: 1px solid var(--xr-footer-line);
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(126, 172, 226, 0.13), transparent 34%),
        var(--xr-footer-panel);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.xr-site-footer--flagship .xr-footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin: 0 0 1.1rem;
    color: var(--xr-footer-accent-soft);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.xr-site-footer--flagship .xr-footer-kicker i {
    color: var(--xr-footer-accent-soft);
}

.xr-footer-maker-logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin: 0.1rem 0 1.55rem;
}

.xr-footer-maker-name {
    margin: 0.15rem 0 1rem;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 850;
}

.xr-footer-visit,
.xr-footer-bottom-links a {
    color: var(--xr-footer-accent-soft);
    font-weight: 750;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.xr-footer-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

.xr-footer-visit:hover,
.xr-footer-visit:focus,
.xr-footer-bottom-links a:hover,
.xr-footer-bottom-links a:focus {
    color: #ffffff;
    text-decoration: none;
}

.xr-footer-confidence-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xr-footer-confidence-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.78rem;
    align-items: center;
    margin: 0;
    padding: 0.54rem 0;
    border-bottom: 1px solid var(--xr-footer-line);
    color: var(--xr-footer-text);
    font-size: 0.94rem;
    line-height: 1.34;
}

.xr-footer-confidence-list li:first-child {
    padding-top: 0.25rem;
}

.xr-footer-confidence-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #4aa3ff;
    background: rgba(74, 163, 255, 0.12);
    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: 50%;
    font-size: 1rem;
}

.xr-footer-confidence p {
    margin-top: 1.15rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (min-width: 1200px) {
    .xr-footer-confidence-list li > span:last-child {
        white-space: nowrap;
    }
}

.xr-footer-confidence-title {
    margin-bottom: 0.95rem;
}

.xr-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.8rem;
    padding: 1.7rem 0;
    border-top: 1px solid var(--xr-footer-line);
}

.xr-footer-bottom p {
    margin: 0;
    color: var(--xr-footer-muted);
    font-size: 0.92rem;
}

.xr-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.2rem;
}

@media (max-width: 1199.98px) {
    .xr-footer-body-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 991.98px) {
    .xr-footer-proof-strip {
        padding-top: 3.6rem;
    }

    .xr-footer-proof-grid,
    .xr-footer-body-grid {
        grid-template-columns: 1fr;
    }

    .xr-footer-proof-grid {
        gap: 1.4rem;
    }

    .xr-footer-main {
        padding-top: 3.4rem;
    }

    .xr-footer-product-logo img,
    .xr-footer-maker-logo img {
        max-width: 235px;
    }
}

@media (max-width: 767.98px) {
    .xr-footer-proof-strip {
        padding: 3rem 0 1.8rem;
    }

    .xr-footer-proof-item {
        align-items: flex-start;
    }

    .xr-site-footer--flagship .xr-footer-proof-icon {
        width: 34px;
        min-width: 34px;
        height: auto;
        border-radius: 0 !important;
        font-size: 28px;
    }

    .xr-footer-body-grid {
        gap: 2rem;
    }

    .xr-footer-product h3 {
        font-size: 1.22rem;
    }

    .xr-footer-maker {
        padding: 1.15rem;
    }

    .xr-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 3rem;
    }

    .xr-footer-bottom-links {
        justify-content: flex-start;
        gap: 0.85rem 1rem;
    }
}
