/* A quiet learning landscape: colour at the edges, clear space for the text. */
.home-page {
    background: #f8f9fd;
    isolation: isolate;
}
.home-page::before { content: none; }
.home-page .hero {
    background:
        linear-gradient(180deg, transparent 65%, #f8f9fd 100%),
        radial-gradient(ellipse at 0% 16%, #dcd2fb 0, transparent 42%),
        radial-gradient(ellipse at 100% 44%, #d3f1e9 0, transparent 43%),
        radial-gradient(ellipse at 78% -15%, #f8e8e4 0, transparent 38%),
        linear-gradient(180deg, #f7f5ff 0%, #fafbfe 66%, #f8f9fd 100%);
    overflow: hidden;
}
.home-page .hero::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: none;
    background: url("assets/learning-field.svg") center top / max(100%, 1250px) auto no-repeat;
    opacity: .72;
    pointer-events: none;
    mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
}
.home-page .hero::after {
    inset: 0;
    width: auto;
    height: auto;
    filter: none;
    border-radius: 0;
    pointer-events: none;
    background: radial-gradient(#8477b72e .8px, transparent .8px);
    background-size: 24px 24px;
    mask-image:
        linear-gradient(90deg, #0008, transparent 28%, transparent 72%, #0008),
        linear-gradient(180deg, #000 65%, transparent 100%);
    mask-composite: intersect;
}
.home-page .hero > .container { position: relative; }
.home-page .bento-item {
    background: #ffffffd9;
    border-color: #ffffff;
    box-shadow: 0 8px 32px #3a2d6410, inset 0 0 0 1px #e9e6f880;
}
.home-page .test-hub:not(#tests) {
    background: linear-gradient(180deg, #f8f9fd, #f0f4f9 55%, #f8f9fd) !important;
    border-top: 0 !important;
}
.home-page #how-it-works {
    background:
        radial-gradient(ellipse at 12% 50%, #ebe5fa 0, transparent 45%),
        linear-gradient(180deg, #f8f9fd, #faf9fd 50%, #f8f9fd);
}
.home-page #tests {
    background:
        linear-gradient(180deg, #f8f9fd, transparent 18%, transparent 80%, #f3f4fc),
        radial-gradient(ellipse at 100% 60%, #dff2ec 0, transparent 46%),
        radial-gradient(ellipse at 0% 80%, #eee7fb 0, transparent 48%),
        linear-gradient(180deg, #f8f9fd, #f3f4fc) !important;
}
.home-page .progression-section {
    background:
        linear-gradient(180deg, #f3f4fc, transparent 18%, transparent 78%, #eeebf8),
        radial-gradient(ellipse at 0% 40%, #cfc1ef, transparent 65%),
        radial-gradient(ellipse at 100% 60%, #c6e3e7, transparent 60%),
        #e3dff2;
    border-top: 0;
}
.home-page .progression-section::before {
    background: url("assets/learning-field.svg") center / cover no-repeat;
    opacity: .7;
    mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
    pointer-events: none;
}
.home-page .progression-section h2,
.home-page .progression-section h3 { color: #30264c; }
.home-page .progression-section .section-header p { color: #68617d; }
.home-page .prog-row {
    color: #30264c;
    background: linear-gradient(110deg, #ffffffeb, #f8f6ffd9);
    border-color: #ffffff;
    box-shadow: 0 5px 18px #5341760b;
}
.home-page .prog-row:hover { background: #fff; }
.home-page .tier-imba-row { border-color: #e2cb8e; background: linear-gradient(110deg, #fff9e5, #fdf7ed); }
.home-page .tier-elite-row { border-color: #d4bee9; }
.home-page .prog-icon-box { color: #7656b1; background: #e9e0fa; }
.home-page .tier-imba-row .prog-icon-box { color: #9c721b; background: #f7e7b4; }
.home-page .p-xp-pill { color: #776c8b; }
.home-page .prog-count { color: #51406d; }
.home-page .prog-label { color: #7a718a; }
.home-page .academy-section {
    background:
        linear-gradient(180deg, #eeebf8, transparent 35%, transparent 60%, #f0eef9),
        radial-gradient(ellipse at 95% 45%, #d5eee5 0, transparent 55%),
        radial-gradient(ellipse at 5% 50%, #e1d7f6 0, transparent 60%),
        #f0eef9;
    isolation: isolate;
    overflow: hidden;
}
.home-page .academy-section::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -130px;
    top: -170px;
    border: 1px solid #ffffffb0;
    border-radius: 50%;
    box-shadow: 0 0 0 45px #ffffff20, 0 0 0 90px #ffffff15;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
.home-page .leaderboard-section {
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f0eef9, transparent 22%, transparent 78%, #f8f9fd),
        radial-gradient(ellipse at 50% 32%, #fff5d8 0, #fff5d800 37%),
        radial-gradient(ellipse at 0% 45%, #c7b5fa 0, transparent 55%),
        radial-gradient(ellipse at 100% 55%, #b8e7e6 0, transparent 52%),
        linear-gradient(180deg, #f0eef9, #e8e3fc 65%, #f8f9fd);
}
.home-page .leaderboard-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-conic-gradient(from -20deg at 50% 27%, #ffffff40 0deg 10deg, transparent 10deg 28deg);
    mask-image: linear-gradient(transparent, #000 24%, #000 65%, transparent);
}
.home-page .leaderboard-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 130%;
    height: 300px;
    left: -15%;
    bottom: -60px;
    border-radius: 50%;
    border: 1px solid #9985cd24;
    box-shadow: 0 -30px 0 0 #ffffff20, 0 -31px 0 0 #9985cd20, 0 -65px 0 0 #ffffff10, 0 -66px 0 0 #9985cd16;
    mask-image: linear-gradient(transparent, #000 22%, transparent 76%);
}
.arena-emblem {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    color: #a46107;
    border: 1px solid #ffe9a5;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff9df, #f5d47b);
    box-shadow: 0 15px 45px #d8a33c30, 0 0 0 10px #fff9e850, inset 0 2px 0 #ffffff;
    transform: rotate(-6deg);
}
.arena-emblem svg { width: 42px; height: 42px; transform: rotate(6deg); stroke-width: 1.6; }
.home-page #leaderboard .section-header { margin-bottom: 30px; }
.home-page .lb-tabs { justify-content: center; margin: 0 auto 22px; }
.home-page .lb-tab { background: #ffffff85; border-color: #ffffffa0; color: #62567f; }
.home-page .lb-tab.active { background: #6547e8; color: white; }
.home-page .leaderboard-card {
    background: #ffffff80;
    border-color: #ffffff;
    box-shadow: 0 24px 65px #53408f13;
}
.home-page .lb-header { background: #ffffff60; border-color: #e9e2f5; }
.lb-podium { list-style: none; display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 52px 26px 26px; margin: 0; }
.podium-player {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    min-height: 220px;
    padding: 46px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #d6ddeb;
    border-radius: 20px 20px 12px 12px;
    background: linear-gradient(155deg, #fff, #eaf0f8);
    box-shadow: 0 8px 0 #dce3ef, 0 14px 25px #5650770d;
}
.podium-place-1 { order: 2; min-height: 260px; background: linear-gradient(155deg, #fffdf3, #fff0bf); border-color: #ebcb74; box-shadow: 0 8px 0 #edd58e, 0 20px 40px #b88a2020; }
.podium-place-2 { order: 1; }
.podium-place-3 { order: 3; min-height: 200px; background: linear-gradient(155deg, #fffaf6, #f8e8dc); border-color: #e9cbb7; box-shadow: 0 8px 0 #ecd7c8, 0 14px 25px #5650770d; }
.podium-medal { position: absolute; top: -27px; display: grid; place-items: center; width: 56px; height: 56px; border: 4px solid #fff; border-radius: 50%; color: #71809b; background: #e3e9f3; box-shadow: 0 6px 15px #35466915; }
.podium-place-1 .podium-medal { width: 66px; height: 66px; top: -33px; color: #905000; background: linear-gradient(135deg, #ffeaaa, #efbb4c); }
.podium-place-3 .podium-medal { color: #a7643b; background: #f0d3bf; }
.podium-rank { font-weight: 800; font-size: .8rem; color: #7c6e94; margin-bottom: 10px; }
.podium-place-1 .podium-rank { color: #9b6a0a; }
.podium-player h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; margin-bottom: 10px; }
.podium-score { display: block; margin-top: auto; padding-top: 18px; font-family: Outfit, sans-serif; color: #5e4b91; font-size: 1.6rem; }
.podium-score small { font-size: .65rem; letter-spacing: .1em; }
.podium-place-1 .podium-score { color: #91600a; font-size: 2rem; }
.podium-test { font-size: .75rem; color: #6c6580; }
.arena-cta { text-align: center; margin-top: 34px; }
.arena-cta svg { width: 18px; height: 18px; }
.home-page #courses {
    background:
        linear-gradient(180deg, #f8f9fd, transparent 20%, transparent 75%, #f1f2fa),
        radial-gradient(ellipse at 15% 80%, #f6e9e4 0, transparent 42%),
        radial-gradient(ellipse at 95% 90%, #e0eaf8 0, transparent 42%),
        linear-gradient(180deg, #f8f9fd, #f1f2fa);
}
.home-page footer {
    background: linear-gradient(180deg, #f1f2fa, #ebe9f6) !important;
    color: var(--ink);
}
.home-page footer .container:first-child { border-color: #dcdbea !important; }
.home-page footer .logo { color: var(--ink); }
.home-page footer p, .home-page footer span { color: #68718a; }
.home-page footer .logo span { color: var(--primary); }
.home-page footer a:hover { color: #4c35bd !important; }
.home-page .footer-social a { color: #74658e; background: #ffffffa8; border: 1px solid #e0dcef; }
.home-page .footer-social a:hover { color: white !important; background: var(--primary); }
@media (max-width: 680px) {
    .home-page .lb-tabs { justify-content: flex-start; }
    .lb-podium { flex-direction: column; align-items: stretch; gap: 42px; padding: 48px 22px 26px; }
    .podium-player { max-width: none; min-height: 180px; }
    .podium-place-1 { order: 0; }
    .podium-place-2 { order: 1; }
}
@media (max-width: 680px) {
    .home-page .hero::before { opacity: .35; background-size: 1000px auto; }
    .home-page .hero::after { opacity: .45; }
    .home-page .hero {
        background:
            linear-gradient(180deg, transparent 65%, #f8f9fd 100%),
            radial-gradient(ellipse at 0% 10%, #e4dafb 0, transparent 50%),
            radial-gradient(ellipse at 100% 40%, #e0f3ed 0, transparent 50%),
            linear-gradient(180deg, #f7f5ff, #f8f9fd);
    }
}
