:root {
    --page-zoom: 0.8;
    --bg: #030303;
    --bg-deep: #000000;
    --fg: #FFFFFF;
    --muted: #A0A0A0;
    --card: rgba(15, 15, 20, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);

    --tier-beginner: #8A82FF;
    --tier-intermediate: #4CAF50;
    --tier-expert: #FFC107;
    --tier-mastery: #FF7043;
    --tier-ascension: #E53935;
    --tier-transcendence: #AB47BC;
    --tier-singularity: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Reproduce el zoom al 80% del navegador como vista por defecto */
    zoom: var(--page-zoom);
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    line-height: 1.7;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

/* ── Sticky Navigation & Mobile Drawer ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: rgba(4, 4, 7, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.site-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.site-nav__logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.site-nav__logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    flex-shrink: 0;
}

.site-nav__logo-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.85);
    animation: corePulse 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
        box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
        box-shadow: 0 0 16px 3px rgba(180, 210, 255, 0.95);
    }
}

.site-nav__logo-sub {
    opacity: 0.55;
    font-weight: 300;
    font-size: 0.85em;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
}

.site-nav__links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-nav__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav__links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    margin-left: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Hamburger toggle for mobile */
.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    margin-left: auto;
    transition: all 0.25s ease;
}

.site-nav__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__toggle.active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle.active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-nav__toggle.active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-nav__drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #09090f;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav.open .mobile-nav__drawer {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-nav__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: auto;
}

.mobile-nav__link {
    display: block;
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.mobile-nav__link:hover, .mobile-nav__link:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.mobile-nav__cta {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0 1.25rem;
    }
    .site-nav__links {
        display: none;
    }
    .site-nav__toggle {
        display: flex;
    }
}

/* ── Glass Cards ── */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transition: border-color 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Title shimmer — traveling highlight on h1 */
h1.gradient-text {
    background: linear-gradient(90deg,
            #b0b0b0 0%, #ffffff 12%, #d4d0ff 24%,
            #ffffff 40%, #b0b0b0 56%, #ffffff 72%, #c8c0ff 88%, #b0b0b0 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease-in-out infinite;
}

@keyframes titleShimmer {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: -100% center;
    }
}

/* ── Tier variables ── */
.tier-beginner {
    --tier-color: var(--tier-beginner);
}

.tier-intermediate {
    --tier-color: var(--tier-intermediate);
}

.tier-expert {
    --tier-color: var(--tier-expert);
}

.tier-mastery {
    --tier-color: var(--tier-mastery);
}

.tier-ascension {
    --tier-color: var(--tier-ascension);
}

.tier-transcendence {
    --tier-color: var(--tier-transcendence);
}

.tier-singularity {
    --tier-color: var(--tier-singularity);
}

.tier-card {
    border-left: 0 !important;
    will-change: transform;
    transform-style: preserve-3d;
    overflow: visible !important;
    box-shadow: none;
}

.tier-card.glass-card {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tier-card.glass-card:hover {
    border-color: transparent;
}

.tier-card-tilt {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: visible;
    transform-style: preserve-3d;
    will-change: transform;
}

.tier-card-shell {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: inherit;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.25s ease;
}

.tier-card-shell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--tier-color, rgba(255, 255, 255, 0.2));
    opacity: 0.82;
    pointer-events: none;
    z-index: 2;
}

.tier-card:hover .tier-card-shell {
    box-shadow: 0 0 48px -12px var(--tier-color, rgba(255, 255, 255, 0.1)),
        0 24px 64px -24px rgba(0, 0, 0, 0.6);
}

.tier-title {
    color: var(--tier-color);
}

/* ── Tier assets helpers ── */
.tier-logo {
    width: 0;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    flex-shrink: 0;
    opacity: 0;
    margin-right: 0;
    transform: translateX(-8px) scale(0.88);
    transition: width 0.22s ease, margin-right 0.22s ease, opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tier-head-main {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(0px);
}

.tier-header-copy {
    min-width: 0;
}

.tier-strip-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 0.35rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.accordion-header {
    position: relative;
    overflow: hidden;
    --tier-bg-opacity: 1;
    --tier-shade-opacity: 1;
    background-color: rgba(6, 8, 12, 0.72);
    isolation: isolate;
    min-height: 100px;
    padding-top: 1.75rem;
    padding-bottom: 1.35rem;
}

.accordion-header .tier-title {
    margin-top: 4.75rem;
    margin-bottom: 4.75rem;
    line-height: 1.12;
}

.accordion-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--tier-bg);
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--tier-bg-opacity, 1);
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.accordion-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0.08) 100%);
    opacity: var(--tier-shade-opacity, 1);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tier-card:hover .accordion-header {
    background-color: rgba(6, 8, 12, 0.48);
    --tier-shade-opacity: 0.45;
}

.accordion-header.active,
.accordion-header.active:hover {
    background-color: rgba(6, 8, 12, 0.72);
    --tier-shade-opacity: 1;
}

.accordion-header>* {
    position: relative;
    z-index: 1;
}

.accordion-header.active {
    --tier-bg-opacity: 0;
}

.accordion-header.active .tier-head-main {
    transform: translateX(6px);
}

.accordion-header.active .tier-logo {
    width: 44px;
    margin-right: 0.6rem;
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* ── Tier Widget VFX ── */
.accordion-header {
    will-change: transform;
}

.tier-particle-canvas {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 4;
}

.tier-specular {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.015) 58%, transparent 72%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.25s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

.tier-strip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tier-bg {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.98);
    filter: saturate(1.08) contrast(1.02) brightness(1.15);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.14s ease, transform 0.22s ease;
}

.hero-tier-bg.show {
    opacity: 1;
    transform: scale(1);
}

.hero-tier-bg.fade-out {
    opacity: 0;
    transform: scale(1.04);
}

.hero-icon-img {
    transition: opacity 0.16s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-icon-img.hero-tier-pop {
    animation: heroTierPop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroTierPop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.86);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Hero Subtitle & Action Buttons ── */
.hero-subtitle {
    letter-spacing: clamp(0.12em, 1.2vw, 0.26em);
    color: #94a3b8;
    text-wrap: balance;
    word-break: normal;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.hero-actions__primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.hero-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* ── Buttons ── */
.btn-cosmic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-cosmic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s ease;
}

.btn-cosmic:hover::before {
    left: 100%;
}

.btn-cosmic:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 25px -4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: #fff !important;
    color: #000 !important;
    border-color: transparent !important;
    font-weight: 700;
}

.btn-primary:hover {
    background: #f1f5f9 !important;
    box-shadow: 0 0 35px 0 rgba(255, 255, 255, 0.5) !important;
}

.btn-hero-cta {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%) !important;
    color: #030305 !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    box-shadow: 0 0 25px -4px rgba(255, 255, 255, 0.5), 0 8px 20px -6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.btn-hero-cta:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 35px 0 rgba(255, 255, 255, 0.7), 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}

.btn-hero-icon {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: btnShine 6s infinite;
}

@keyframes btnShine {
    0%, 75% { left: -120%; }
    100% { left: 220%; }
}

.btn-hero-sub {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-hero-sub:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.25s ease;
}

.btn-tertiary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-svg-icon {
    width: 15px;
    height: 15px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* ── Hero Stats Row ── */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(12, 12, 18, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 2.5rem 0 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.35rem 2.2rem;
    flex: 1;
    min-width: 130px;
    transition: background 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hero-stat+.hero-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat__num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.hero-stat__label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 0.45rem;
    font-weight: 600;
}

/* ── Hero gradient overlay ── */
.hero-gradient {
    position: relative;
    background: radial-gradient(ellipse at center top, rgba(60, 60, 80, 0.15) 0%, transparent 60%);
}

/* Con zoom de página, 100vh se resuelve en el espacio interno:
   se compensa para que el hero siga ocupando el alto visible completo.
   El padding inferior extra sube un poco el bloque central del hero. */
header.hero-gradient {
    min-height: calc(100vh / var(--page-zoom));
    padding-bottom: calc(5rem + 100px);
}

/* ── Hero Icon ── */
.hero-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 960 / 231;
    perspective: 440px;
    transform-style: preserve-3d;
    will-change: transform;
    --hero-tilt-x: 0deg;
    --hero-tilt-y: 0deg;
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-icon-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-icon-img {
    position: relative;
    z-index: 3;
    width: clamp(82px, 9vw, 128px);
    height: clamp(82px, 9vw, 128px);
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.3));
    animation: heroIconPulse 3s ease-in-out infinite;
}

.hero-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(200, 190, 255, 0.08) 25%,
            rgba(160, 140, 255, 0.04) 50%,
            transparent 75%);
    animation: heroGlow 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Footer logo */
.footer-logo {
    height: 32px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(0.2);
    transition: opacity 0.3s;
    margin-bottom: 0.75rem;
}

.footer-logo:hover {
    opacity: 0.85;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(var(--hero-tilt-x)) rotateX(var(--hero-tilt-y));
    }

    50% {
        transform: translateY(-10px) rotateY(var(--hero-tilt-x)) rotateX(var(--hero-tilt-y));
    }
}

@keyframes heroIconPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.25));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 60px rgba(180, 160, 255, 0.2));
        transform: scale(1.04);
    }
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ── Hero Cinematic Upgrade ── */

/* Spotlight / ambient haze behind hero content */
.hero-spotlight {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 900px;
    height: 650px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
            rgba(140, 130, 255, 0.07) 0%,
            rgba(100, 80, 200, 0.035) 35%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: spotlightBreathe 8s ease-in-out infinite;
}

@keyframes spotlightBreathe {

    0%,
    100% {
        opacity: 0.55;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

/* Outer soft halo behind logo */
.hero-icon-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(180, 170, 255, 0.045) 0%,
            rgba(140, 120, 220, 0.02) 45%,
            transparent 72%);
    z-index: 0;
    pointer-events: none;
    animation: haloPulse 5s ease-in-out infinite;
}

@keyframes haloPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
        opacity: 1;
    }
}

/* Conic light rays emanating from the logo */
.hero-icon-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
    animation: raysSpin 50s linear infinite;
    background:
        conic-gradient(from 0deg,
            transparent 0deg, rgba(255, 255, 255, 0.35) 2deg, transparent 4deg,
            transparent 45deg, rgba(255, 255, 255, 0.22) 47deg, transparent 49deg,
            transparent 90deg, rgba(255, 255, 255, 0.38) 92deg, transparent 94deg,
            transparent 135deg, rgba(255, 255, 255, 0.18) 137deg, transparent 139deg,
            transparent 180deg, rgba(255, 255, 255, 0.28) 182deg, transparent 184deg,
            transparent 225deg, rgba(255, 255, 255, 0.2) 227deg, transparent 229deg,
            transparent 270deg, rgba(255, 255, 255, 0.32) 272deg, transparent 274deg,
            transparent 315deg, rgba(255, 255, 255, 0.16) 317deg, transparent 319deg,
            transparent 360deg);
    -webkit-mask-image: radial-gradient(circle, transparent 18%, white 38%, transparent 68%);
    mask-image: radial-gradient(circle, transparent 18%, white 38%, transparent 68%);
}

@keyframes raysSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Orbit rings around the logo */
.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    margin-left: -95px;
    margin-top: -95px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: orbitSpin 30s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.hero-orbit--outer {
    width: 270px;
    height: 270px;
    margin-left: -135px;
    margin-top: -135px;
    border-color: rgba(255, 255, 255, 0.03);
    animation-duration: 50s;
    animation-direction: reverse;
}

.hero-orbit__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(180, 170, 255, 0.45);
}

/* Inner ring dot positions */
.hero-orbit:not(.hero-orbit--outer) .hero-orbit__dot:nth-child(1) {
    top: -1.5px;
    left: 50%;
    margin-left: -1.5px;
}

.hero-orbit:not(.hero-orbit--outer) .hero-orbit__dot:nth-child(2) {
    bottom: -1.5px;
    left: 50%;
    margin-left: -1.5px;
}

.hero-orbit:not(.hero-orbit--outer) .hero-orbit__dot:nth-child(3) {
    top: 50%;
    right: -1.5px;
    margin-top: -1.5px;
}

/* Outer ring dot positions */
.hero-orbit--outer .hero-orbit__dot:nth-child(1) {
    top: 10%;
    left: -1.5px;
}

.hero-orbit--outer .hero-orbit__dot:nth-child(2) {
    bottom: 10%;
    right: -1.5px;
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Subtitle ornamental lines */
.hero-subtitle-ornament {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
}

.hero-subtitle-ornament::before,
.hero-subtitle-ornament::after {
    content: '';
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    flex-shrink: 0;
}

/* Enhanced stats row — animated gradient border */
.hero-stats {
    position: relative;
    border-color: transparent !important;
}

.hero-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12),
            rgba(180, 170, 255, 0.1),
            rgba(255, 255, 255, 0.05),
            rgba(180, 170, 255, 0.1),
            rgba(255, 255, 255, 0.12));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: statsBorderFlow 6s linear infinite;
    pointer-events: none;
}

@keyframes statsBorderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-stat__num {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

/* Hero ambient particle canvas */
.hero-ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Accordion ── */
/* ── Accordion (grid-row collapse for smooth animation) ── */
.accordion-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-wrap.open {
    grid-template-rows: 1fr;
}

.accordion-wrap>.accordion-inner {
    overflow: hidden;
}

/* Fallback for accordion-content (legacy approach kept working) */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-content>* {
    overflow: hidden;
}

.accordion-content.open {
    grid-template-rows: 1fr;
}

.accordion-content>.px-6.pb-6 {
    padding-top: 1rem;
}

.accordion-header {
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-icon {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* ── Stat Badges in Accordion Header ── */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ── Platform Criteria Grid ── */
.platform-criteria-header {
    margin-bottom: 0.85rem;
}

.platform-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    display: inline-block;
    flex-shrink: 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin: 0.75rem 0 2rem;
}

@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

.platform-card {
    background: rgba(16, 16, 24, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 86px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-card:hover {
    background: rgba(24, 24, 36, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.05);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.platform-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.platform-card__req {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.platform-card__subreq {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
}

.platform-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    line-height: 1.2;
}

.platform-card__tag--osu {
    background: rgba(255, 102, 170, 0.15);
    color: #ff66aa;
    border: 1px solid rgba(255, 102, 170, 0.3);
}

.platform-card__tag--lazer {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Etterna Card (Morado) */
.platform-card--etterna {
    border-color: rgba(168, 85, 247, 0.32);
    background: rgba(26, 16, 40, 0.55);
}

.platform-card--etterna:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 8px 24px -6px rgba(168, 85, 247, 0.3), 0 0 16px rgba(168, 85, 247, 0.15);
}

.platform-card--etterna::before {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
}

.platform-card__tag--etterna,
.platform-card__tag--vs {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Quaver Card (Celeste / Azul) */
.platform-card--quaver {
    border-color: rgba(0, 194, 255, 0.32);
    background: rgba(12, 24, 40, 0.55);
}

.platform-card--quaver:hover {
    border-color: rgba(0, 194, 255, 0.6);
    box-shadow: 0 8px 24px -6px rgba(0, 194, 255, 0.3), 0 0 16px rgba(0, 194, 255, 0.15);
}

.platform-card--quaver::before {
    background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.6), transparent);
}

.platform-card__tag--quaver {
    background: rgba(0, 194, 255, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(0, 194, 255, 0.4);
}

.platform-card__tag--mobile {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.platform-card__tag--pc {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.platform-card__tag--rhythm {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}



/* ── Tier Summary Strip ── */
.tier-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .tier-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .tier-strip {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0.25rem 1rem;
        gap: 0.65rem;
        scrollbar-width: none;
    }
    .tier-strip::-webkit-scrollbar {
        display: none;
    }
    .tier-strip-card {
        min-width: 130px;
        flex-shrink: 0;
    }
}

.tier-strip-card {
    border-radius: 12px;
    padding: 1rem 0.75rem;
    background: rgba(14, 14, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-top: 3px solid var(--tc, rgba(255, 255, 255, 0.25));
    position: relative;
    overflow: hidden;
}

.tier-strip-card:hover {
    background: rgba(24, 24, 34, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--tc, #fff);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px var(--tc, rgba(255, 255, 255, 0.25));
}

.tier-strip-card.active {
    background: rgba(30, 30, 44, 0.95);
    border-color: var(--tc, #fff);
    box-shadow: 0 0 25px -4px var(--tc, rgba(255, 255, 255, 0.4));
}

.tier-strip-card__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tc, #fff);
    display: block;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.tier-strip-card__desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    display: block;
}

/* ── Course Tabs ── */
.course-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0 1.5rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.course-tabs::-webkit-scrollbar {
    display: none;
}

.course-tab {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.course-tab__label {
    line-height: 1;
}

.course-tab__meter {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.course-tab__meter i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--tier-color, #fff);
    opacity: var(--pip-opacity, 0.14);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.course-tab__meter i:nth-child(1) {
    height: 5px;
}

.course-tab__meter i:nth-child(2) {
    height: 7px;
}

.course-tab__meter i:nth-child(3) {
    height: 9px;
}

.course-tab__meter i:nth-child(4) {
    height: 11px;
}

.course-tab__meter i:nth-child(5) {
    height: 13px;
}

.course-tab:hover .course-tab__meter i,
.course-tab.active .course-tab__meter i {
    transform: translateY(-1px);
}

.course-tab[data-level="1"] {
    --lvl-emphasis: 0.22;
}

.course-tab[data-level="2"] {
    --lvl-emphasis: 0.34;
}

.course-tab[data-level="3"] {
    --lvl-emphasis: 0.48;
}

.course-tab[data-level="4"] {
    --lvl-emphasis: 0.62;
}

.course-tab[data-level="5"] {
    --lvl-emphasis: 0.78;
}

.course-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: color-mix(in srgb, var(--tier-color, #fff) 45%, rgba(255, 255, 255, 0.08));
}

.course-tab.active {
    color: var(--tier-color, #fff);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--tier-color, rgba(255, 255, 255, 0.3));
    box-shadow: 0 0 calc(8px + var(--lvl-emphasis, 0.3) * 10px) -6px var(--tier-color, rgba(255, 255, 255, 0.4));
}

.course-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.course-panel.active {
    display: block;
    animation: panelFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab active indicator animation */
.course-tab {
    position: relative;
}

.course-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: var(--tier-color, rgba(255, 255, 255, 0.4));
    transform: translateX(-50%) scaleX(0);
    animation: tabIndicator 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    border-radius: 1px;
}

@keyframes tabIndicator {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

.tier-category-range {
    display: block;
    overflow: hidden;
    opacity: 1;
    max-height: 1.6rem;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease, margin-bottom 0.28s ease;
}

.accordion-content.open .tier-category-range {
    opacity: 0;
    max-height: 0;
    transform: translateY(-6px);
    margin-bottom: 0 !important;
    pointer-events: none;
}

/* ── Course Section Header ── */
.course-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.course-section-header__label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tier-color, #fff);
}

.course-forum-link {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
}

.course-forum-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.course-header-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.course-dl-link {
    font-size: 0.8rem;
    color: rgba(180, 210, 255, 0.8);
    text-decoration: none;
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(140, 180, 255, 0.15);
    transition: all 0.2s;
    background: rgba(140, 180, 255, 0.05);
}

.course-dl-link:hover {
    color: #fff;
    border-color: rgba(140, 180, 255, 0.35);
    background: rgba(140, 180, 255, 0.12);
}

/* ── Map Row ── */
.map-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(14, 14, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.55rem;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.map-row:hover {
    background: rgba(24, 24, 38, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.4);
}

.map-row--no-link {
    cursor: default;
}

.map-row--no-link:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.map-row__info {
    flex: 1;
    min-width: 0;
}

.map-row__title {
    font-size: 0.94rem;
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.4;
}

.map-row__title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.map-row__title a:hover {
    color: #38bdf8;
    border-bottom-color: rgba(56, 189, 248, 0.4);
}

.map-row__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.3;
}

.badge-bpm {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.badge-skill {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-skill--stream {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #67e8f9 !important;
    border-color: rgba(6, 182, 212, 0.32) !important;
}

.badge-skill--jack {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fdba74 !important;
    border-color: rgba(249, 115, 22, 0.32) !important;
}

.badge-skill--tech {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #d8b4fe !important;
    border-color: rgba(168, 85, 247, 0.32) !important;
}

.badge-skill--ln {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
}

.badge-skill--rice {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #fde047 !important;
    border-color: rgba(234, 179, 8, 0.32) !important;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.map-link-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    transform: scale(1.08);
}

/* Etterna map links (Morado) */
.map-link-btn[href*="etternaonline.com"]:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.55);
    color: #d8b4fe;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* Quaver map links (Celeste / Azul) */
.map-link-btn[href*="quavergame.com"]:hover {
    background: rgba(0, 194, 255, 0.2);
    border-color: rgba(0, 194, 255, 0.55);
    color: #7dd3fc;
    box-shadow: 0 0 14px rgba(0, 194, 255, 0.35);
}

/* ── Map links ── */
.map-link {
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.map-link:hover {
    color: var(--fg);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.map-link[href*="etternaonline.com"]:hover,
.map-row__title a[href*="etternaonline.com"]:hover {
    color: #c084fc !important;
}

.map-link[href*="quavergame.com"]:hover,
.map-row__title a[href*="quavergame.com"]:hover {
    color: #38bdf8 !important;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section dividers ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 5rem auto;
    width: 70%;
}

/* ── Pattern boxes (legacy) ── */
.pattern-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pattern-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Pattern category cards ── */
.pattern-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pattern-cat-card {
    border-radius: 16px;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    transition: all 0.3s ease;
}

.pattern-cat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(255, 255, 255, 0.07);
}

.pattern-cat-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.pattern-cat-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pattern-cat-card__desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Pattern prose panels ── */
.pattern-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.pattern-panel__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pattern-panel__title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    flex-shrink: 0;
}

.pattern-special-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ddd;
    margin-right: 0.3rem;
    white-space: nowrap;
}

/* ── Info box ── */
.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

/* ── Contributors ── */
.contrib-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.contrib-role-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

/* ═══════════════════════════════════════════════════
   CONTRIBUTORS & CREDITS (CLEAN UNIFIED BOARD)
   ═══════════════════════════════════════════════════ */

.contrib-board {
    background: rgba(12, 12, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.contrib-board__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contrib-board__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.contrib-board__meta {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

/* Rows layout */
.contrib-row {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contrib-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contrib-row:first-child {
    padding-top: 0;
}

.contrib-row__role {
    width: 190px;
    flex-shrink: 0;
    padding-top: 0.35rem;
}

.contrib-role-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

.contrib-row__names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    flex-grow: 1;
    align-items: center;
}

/* Contributor Pills */
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1.3;
}

.pill-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Captain pill: Refined golden accent */
.pill-link--captain {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.38rem 0.95rem;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.32);
    color: #fef08a;
}

.pill-link--captain:hover {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.55);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}

/* Platform-aware subtle hover highlights */
.pill-link[href*="osu.ppy.sh"]:hover {
    border-color: rgba(255, 102, 170, 0.45);
    background: rgba(255, 102, 170, 0.12);
    color: #ffc2df;
}

.pill-link[href*="soundcloud.com"]:hover {
    border-color: rgba(255, 85, 0, 0.45);
    background: rgba(255, 85, 0, 0.12);
    color: #ffaa80;
}

.pill-link[href*="youtube.com"]:hover {
    border-color: rgba(255, 0, 51, 0.45);
    background: rgba(255, 0, 51, 0.12);
    color: #ff99aa;
}

.pill-link[href*="etternaonline.com"]:hover {
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.28);
}

.pill-link[href*="quavergame.com"]:hover {
    border-color: rgba(0, 194, 255, 0.55);
    background: rgba(0, 194, 255, 0.16);
    color: #7dd3fc;
    box-shadow: 0 4px 16px rgba(0, 194, 255, 0.28);
}

/* Translators Grid */
.translator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.translator-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.translator-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.translator-lang {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.translator-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* ── Discord Community Hub (Refined Cosmic Theme) ── */
.contrib-discord-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.85rem 2.25rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(14, 14, 24, 0.75) 50%, rgba(88, 101, 242, 0.05) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(88, 101, 242, 0.32);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px -8px rgba(88, 101, 242, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contrib-discord-card:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 40px -6px rgba(88, 101, 242, 0.3);
}

.contrib-discord-card__ambient {
    position: absolute;
    top: -80px;
    left: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contrib-discord-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.25rem;
}

.contrib-discord-card__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
}

.contrib-discord-card__icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.25) 0%, rgba(88, 101, 242, 0.1) 100%);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: #a5b4fc;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
    transition: all 0.3s ease;
}

.contrib-discord-card:hover .contrib-discord-card__icon-wrap {
    color: #ffffff;
    border-color: rgba(88, 101, 242, 0.7);
    box-shadow: 0 0 26px rgba(88, 101, 242, 0.45);
    transform: scale(1.05);
}

.contrib-discord-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contrib-discord-card__badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.discord-pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid #22c55e;
    animation: discordPulse 2.2s infinite ease-out;
}

@keyframes discordPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.3); opacity: 0; }
}

.contrib-discord-card__tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5b4fc;
}

.contrib-discord-card__heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.contrib-discord-card__description {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 540px;
}

.contrib-discord-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contrib-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.contrib-discord-btn:hover {
    background: linear-gradient(135deg, #6774f4 0%, #515dd6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}

.contrib-discord-btn:active {
    transform: translateY(0);
}

.contrib-discord-card__code {
    font-size: 0.72rem;
    font-family: monospace;
    color: #64748b;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .contrib-discord-card {
        padding: 1.5rem 1.4rem;
    }

    .contrib-discord-card__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .contrib-discord-card__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contrib-discord-card__action {
        width: 100%;
        align-items: stretch;
    }

    .contrib-discord-btn {
        width: 100%;
    }

    .contrib-discord-card__code {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .contrib-board {
        padding: 1.25rem 1.2rem;
    }

    .contrib-row {
        flex-direction: column;
        gap: 0.65rem;
        padding: 1rem 0;
    }

    .contrib-row__role {
        width: 100%;
        padding-top: 0;
    }

    .translator-grid {
        grid-template-columns: 1fr;
    }
}



/* ── Back to top ── */
.back-to-top {

    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    color: #fff;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

*:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
   ACCESIBILIDAD (Fase 0)
   ═══════════════════════════════════════════════════ */

/* Skip link — visible solo al enfocar con teclado */
.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transform: translateY(-300%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* Contraste AA de los utilitarios grises de Tailwind sobre #030303:
   gray-500 (#6b7280) = 4.1:1 y gray-600 (#4b5563) = 2.6:1.
   El selector duplicado supera en especificidad al CSS que inyecta el CDN. */
.text-gray-500.text-gray-500 {
    color: #9CA3AF;
}

.text-gray-600.text-gray-600 {
    color: #9CA3AF;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 900px) {
    .tier-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .site-nav__links {
        display: none;
    }

    .pattern-cat-grid {
        grid-template-columns: 1fr;
    }

    .tier-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .tier-strip-card:last-child {
        grid-column: span 2;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat {
        padding: 1rem 1.25rem;
    }

    .hero-stat+.hero-stat {
        border-left: none;
    }

    .hero-stat:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-stat:nth-child(1),
    .hero-stat:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-stat__num {
        font-size: 1.85rem;
    }
}

@keyframes starPulse {

    0%,
    100% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }
}