/* Premium statistics section: all decorative layers remain behind readable content. */
.wf-public-home section.wf-stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 76px 0 34px;
    background: radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .16), transparent 25%), radial-gradient(circle at 88% 78%, rgba(34, 211, 238, .09), transparent 24%), #07111f;
}
.wf-public-home section.wf-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(rgba(96, 165, 250, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .09) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
.wf-stats__effects { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.wf-stats__effects i { width: 42vw; height: 42vw; position: absolute; border-radius: 50%; filter: blur(85px); opacity: .12; animation: wfStatsFloat 12s ease-in-out infinite alternate; }
.wf-stats__effects i:nth-child(1) { left: -18%; top: -48%; background: #2563eb; }
.wf-stats__effects i:nth-child(2) { right: -20%; bottom: -60%; background: #0891b2; animation-delay: -4s; }
.wf-stats__effects i:nth-child(3) { left: 38%; top: 20%; background: #3b82f6; opacity: .06; animation-delay: -8s; }
.wf-stats__effects b { width: 5px; height: 5px; position: absolute; left: 16%; top: 24%; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 16px rgba(103, 232, 249, .7); opacity: .34; animation: wfStatsParticle 7s ease-in-out infinite; }
.wf-stats__effects b:last-child { left: 84%; top: 68%; animation-delay: -3.5s; }
.wf-public-home section.wf-stats .wf-stats__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 22px; align-items: stretch; }

.wf-public-home section.wf-stats .wf-stat-card {
    min-width: 0;
    min-height: 190px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 32px 28px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid rgba(34, 211, 238, .28);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(13, 27, 42, .96), rgba(8, 20, 38, .92));
    box-shadow: 0 18px 55px rgba(0, 0, 0, .32), 0 0 28px rgba(34, 211, 238, .1);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: visible;
    transform: translateY(28px) scale(.97);
    transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 650ms cubic-bezier(.22, 1, .36, 1), border-color 250ms ease, box-shadow 250ms ease;
    transition-delay: var(--wf-reveal-delay, 0ms);
}
.wf-public-home section.wf-stats .wf-stat-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.wf-public-home section.wf-stats .wf-stat-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 80%;
    aspect-ratio: 1;
    right: -40%;
    bottom: -70%;
    border-radius: 50%;
    background: var(--wf-stat-glow, rgba(59, 130, 246, .2));
    filter: blur(45px);
    opacity: .3;
    pointer-events: none;
    animation: wfStatsInnerGlow 7s ease-in-out infinite alternate;
}
.wf-public-home section.wf-stats .wf-stat-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -50% auto -50% -70%;
    width: 36%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .085), transparent);
    transform: skewX(-18deg);
    animation: wfStatsShimmer 7s ease-in-out infinite;
}
.wf-stat-card--paid { --wf-stat-glow: rgba(34, 211, 238, .28); }
.wf-stat-card--traders { --wf-stat-glow: rgba(34, 197, 94, .24); }
.wf-stat-card--countries { --wf-stat-glow: rgba(139, 92, 246, .24); }
.wf-stat-card--funded { --wf-stat-glow: rgba(16, 185, 129, .25); }
.wf-public-home section.wf-stats .wf-stat-card:nth-child(2)::after { animation-delay: -1.75s; }
.wf-public-home section.wf-stats .wf-stat-card:nth-child(3)::after { animation-delay: -3.5s; }
.wf-public-home section.wf-stats .wf-stat-card:nth-child(4)::after { animation-delay: -5.25s; }

.wf-public-home section.wf-stats .wf-stat-card > * {
    position: relative;
    z-index: 5;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
}
.wf-public-home section.wf-stats .wf-stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid !important;
    place-items: center;
    color: #67e8f9 !important;
    border: 1px solid rgba(125, 211, 252, .3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(34, 211, 238, .14));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22), 0 0 24px rgba(34, 211, 238, .14), inset 0 1px rgba(255, 255, 255, .06);
    font: 800 22px/1 "Plus Jakarta Sans", sans-serif !important;
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.wf-public-home section.wf-stats .wf-stat-card--traders .wf-stat-icon { color: #6ee7b7 !important; }
.wf-public-home section.wf-stats .wf-stat-card--countries .wf-stat-icon { color: #a5b4fc !important; }
.wf-public-home section.wf-stats .wf-stat-card--funded .wf-stat-icon { color: #5eead4 !important; }
.wf-public-home section.wf-stats .wf-stat-label {
    margin: 20px 0 14px;
    color: #7dd3fc !important;
    font: 700 13px/1.4 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    white-space: normal;
}
.wf-public-home section.wf-stats .wf-stat-card > strong {
    display: block;
    width: 100%;
    margin: 0;
    overflow: visible;
    color: #fff !important;
    font: 800 clamp(34px, 4vw, 52px)/1 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: -1.5px !important;
    text-shadow: 0 0 24px rgba(34, 211, 238, .2);
    white-space: nowrap;
}
.wf-public-home section.wf-stats .wf-stat-card > strong::before { display: none; }
.wf-public-home section.wf-stats .wf-stat-card > small {
    display: block;
    margin-top: 14px;
    padding: 0;
    overflow: visible;
    color: #cbd5e1 !important;
    font: 500 15px/1.6 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: 0 !important;
    white-space: normal;
}

@media (hover: hover) {
    .wf-public-home section.wf-stats .wf-stat-card.visible:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(103, 232, 249, .72); box-shadow: 0 24px 68px rgba(0, 0, 0, .4), 0 0 38px rgba(34, 211, 238, .18); }
    .wf-public-home section.wf-stats .wf-stat-card:hover .wf-stat-icon { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 30px rgba(34, 211, 238, .22); }
}

.wf-stats-ticker { position: relative; z-index: 2; margin-top: 40px; overflow: hidden; border-block: 1px solid rgba(59, 130, 246, .17); background: rgba(5, 15, 29, .6); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wf-stats-ticker > div { width: max-content; padding: 15px 0; display: flex; align-items: center; gap: 52px; animation: wfStatsTicker 24s linear infinite; }
.wf-stats-ticker span { display: flex; align-items: center; gap: 9px; color: #cbd5e1; font: 650 13px/1.2 "Plus Jakarta Sans", sans-serif; white-space: nowrap; }
.wf-stats-ticker i { width: 20px; height: 20px; display: grid; place-items: center; color: #67e8f9; border: 1px solid rgba(34, 211, 238, .28); border-radius: 50%; background: rgba(34, 211, 238, .06); font-size: 10px; font-style: normal; }

@keyframes wfStatsFloat { to { transform: translate3d(8%, 10%, 0) scale(1.12); } }
@keyframes wfStatsParticle { 50% { opacity: .75; transform: translate3d(20px, -24px, 0) scale(1.45); } }
@keyframes wfStatsInnerGlow { to { transform: translate3d(-18%, -10%, 0) scale(1.12); opacity: .42; } }
@keyframes wfStatsShimmer { 0%, 74% { left: -70%; opacity: 0; } 80% { opacity: .65; } 96%, 100% { left: 145%; opacity: 0; } }
@keyframes wfStatsTicker { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
    .wf-public-home section.wf-stats .wf-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .wf-public-home section.wf-stats { padding-top: 58px; }
    .wf-public-home section.wf-stats .wf-stats__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .wf-public-home section.wf-stats .wf-stat-card { min-height: 190px; }
    .wf-public-home section.wf-stats .wf-stat-card > strong { font-size: clamp(34px, 12vw, 48px) !important; }
    .wf-stats-ticker { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .wf-stats__effects i,
    .wf-stats__effects b,
    .wf-public-home section.wf-stats .wf-stat-card::before,
    .wf-public-home section.wf-stats .wf-stat-card::after,
    .wf-stats-ticker > div { animation: none !important; }
    .wf-public-home section.wf-stats .wf-stat-card { opacity: 1; transform: none; transition: none; }
    .wf-public-home section.wf-stats .wf-stat-card:hover,
    .wf-public-home section.wf-stats .wf-stat-card:hover .wf-stat-icon { transform: none; }
    .wf-stats-ticker > div { width: auto; justify-content: center; flex-wrap: wrap; }
}

/* Defeat the older adjacent-section card rule without affecting any other section. */
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stats__grid { gap: 22px; }
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stats__grid > article.wf-stat-card {
    min-height: 190px;
    padding: 32px 28px;
    border: 1px solid rgba(34, 211, 238, .28);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(13, 27, 42, .96), rgba(8, 20, 38, .92));
    box-shadow: 0 18px 55px rgba(0, 0, 0, .32), 0 0 28px rgba(34, 211, 238, .1);
}
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stat-card > .wf-stat-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    color: #67e8f9 !important;
    font: 800 22px/1 "Plus Jakarta Sans", sans-serif !important;
}
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stat-card > .wf-stat-label {
    margin: 20px 0 14px;
    color: #7dd3fc !important;
    font: 700 13px/1.4 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: 1.5px !important;
}
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stat-card > strong {
    margin: 0;
    color: #fff !important;
    font: 800 clamp(34px, 4vw, 52px)/1 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: -1.5px !important;
}
.wf-public-home section.wf-trust-strip + section.wf-stats .wf-stat-card > small {
    margin-top: 14px;
    padding: 0;
    color: #cbd5e1 !important;
    font: 500 15px/1.6 "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: 0 !important;
}
@media (hover: hover) {
    .wf-public-home section.wf-trust-strip + section.wf-stats .wf-stats__grid > article.wf-stat-card.visible:hover {
        transform: translateY(-6px) scale(1.02);
        border-color: rgba(103, 232, 249, .72);
        box-shadow: 0 24px 68px rgba(0, 0, 0, .4), 0 0 38px rgba(34, 211, 238, .18);
    }
}
@media (max-width: 620px) {
    .wf-public-home section.wf-trust-strip + section.wf-stats .wf-stats__grid { grid-template-columns: minmax(0, 1fr); }
}
