/* ============================================================
   BRAINYGAMING — ONE-PAGE VR / GAMING WORLD THEME
   ============================================================ */

:root {
    --bg: #05030f;
    --bg-2: #0a0620;
    --panel: rgba(18, 12, 46, .55);
    --panel-border: rgba(124, 92, 255, .25);
    --cyan: #00f0ff;
    --magenta: #ff2ea6;
    --violet: #7c5cff;
    --lime: #9dff00;
    --text: #eae6ff;
    --muted: #9a92c4;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --glow-cyan: 0 0 18px rgba(0, 240, 255, .55);
    --glow-magenta: 0 0 18px rgba(255, 46, 166, .5);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--magenta); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--violet), var(--magenta));
    border-radius: 8px;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* SVG icon system (professional line icons) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
    width: 1em; height: 1em; display: block;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    overflow: visible;
}

/* ============================================================
   BOOT SCREEN
   ============================================================ */
.boot-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s;
}
.boot-screen.done { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; width: min(420px, 80vw); }
.boot-logo {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.4rem, 5vw, 2.2rem); letter-spacing: .3em;
    color: var(--text); margin-bottom: 28px;
}
.boot-bar {
    height: 6px; border-radius: 6px; overflow: hidden;
    background: rgba(124, 92, 255, .15);
    border: 1px solid var(--panel-border);
}
.boot-bar span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: var(--glow-cyan);
    transition: width .25s ease;
}
.boot-status {
    margin-top: 14px; font-family: var(--font-display);
    font-size: .65rem; letter-spacing: .25em; color: var(--muted);
    animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* Glitch effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; inset: 0;
}
.glitch::before {
    color: var(--cyan); clip-path: inset(20% 0 55% 0);
    animation: glitch-a 2.4s infinite linear alternate-reverse;
}
.glitch::after {
    color: var(--magenta); clip-path: inset(60% 0 15% 0);
    animation: glitch-b 1.8s infinite linear alternate-reverse;
}
@keyframes glitch-a { 0% { transform: translate(-3px, -2px); } 50% { transform: translate(2px, 1px); } 100% { transform: translate(-1px, 2px); } }
@keyframes glitch-b { 0% { transform: translate(3px, 1px); } 50% { transform: translate(-2px, -1px); } 100% { transform: translate(1px, -2px); } }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */
#stars {
    position: fixed; inset: 0; z-index: -3;
    width: 100%; height: 100%;
}
.grid-floor {
    position: fixed; left: -25%; right: -25%; bottom: -12vh;
    height: 46vh; z-index: -2; pointer-events: none;
    background:
        linear-gradient(transparent, rgba(5, 3, 15, .2)),
        repeating-linear-gradient(90deg, rgba(0, 240, 255, .16) 0 1px, transparent 1px 70px),
        repeating-linear-gradient(0deg, rgba(124, 92, 255, .16) 0 1px, transparent 1px 46px);
    transform: perspective(500px) rotateX(62deg);
    mask-image: linear-gradient(transparent, #000 35%);
    -webkit-mask-image: linear-gradient(transparent, #000 35%);
    animation: grid-slide 5s linear infinite;
}
@keyframes grid-slide { to { background-position: 0 0, 0 0, 0 46px; } }

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-blob {
    position: absolute; border-radius: 50%;
    filter: blur(110px); opacity: .32;
}
.aurora-blob.b1 { width: 46vw; height: 46vw; background: var(--violet); top: -12%; left: -8%; animation: drift1 22s ease-in-out infinite alternate; }
.aurora-blob.b2 { width: 38vw; height: 38vw; background: var(--magenta); bottom: -10%; right: -6%; animation: drift2 26s ease-in-out infinite alternate; }
.aurora-blob.b3 { width: 30vw; height: 30vw; background: var(--cyan); top: 42%; left: 38%; opacity: .18; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-11vw, -9vh) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-7vw, 10vh) scale(.9); } }

/* ============================================================
   HUD: PROGRESS + DOTS
   ============================================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
    background: rgba(124, 92, 255, .12);
}
.scroll-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
    box-shadow: var(--glow-cyan);
}

.hud-dots {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
    z-index: 900; display: flex; flex-direction: column; gap: 16px;
}
.hud-dots a {
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid var(--muted); position: relative;
    transition: all .3s var(--ease);
}
.hud-dots a::after {
    content: attr(data-label); position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-family: var(--font-display);
    font-size: .55rem; letter-spacing: .2em; color: var(--cyan);
    opacity: 0; white-space: nowrap; transition: opacity .25s;
}
.hud-dots a:hover::after { opacity: 1; }
.hud-dots a.active {
    background: var(--cyan); border-color: var(--cyan);
    box-shadow: var(--glow-cyan); transform: scale(1.35);
}

/* ============================================================
   COPYRIGHT BAR (above header)
   ============================================================ */
.copyright-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 955;
    background: rgba(5, 3, 15, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--panel-border);
    transition: transform .45s var(--ease);
}
.copyright-bar.hidden { transform: translateY(-100%); }
.cb-inner {
    width: min(1240px, 92%); margin: 0 auto; padding: 7px 0;
}
.cb-inner p {
    font-size: .68rem; line-height: 1.4; color: var(--muted);
    text-align: center; letter-spacing: .01em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 950;
    padding: 16px 0; transition: top .45s var(--ease), padding .4s var(--ease),
        background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled {
    top: 0; padding: 10px 0;
    background: rgba(5, 3, 15, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-border);
}
.logo-img { height: 40px; width: auto; display: block; }
.site-header.scrolled .logo-img { height: 34px; transition: height .4s var(--ease); }
.header-inner {
    width: min(1240px, 92%); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
    color: var(--cyan); font-size: 1.5rem;
    text-shadow: var(--glow-cyan);
    animation: spin-slow 9s linear infinite;
    display: inline-block;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo-text {
    font-family: var(--font-display); font-weight: 800;
    letter-spacing: .12em; font-size: 1.02rem;
}
.logo-text em {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
    font-family: var(--font-display); font-size: .68rem;
    letter-spacing: .18em; color: var(--muted);
    position: relative; padding: 6px 0; transition: color .25s;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transition: width .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--cyan);
    box-shadow: var(--glow-cyan); transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: .72rem; font-weight: 700;
    letter-spacing: .18em; padding: 14px 30px; border-radius: 4px;
    position: relative; overflow: hidden; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn span { position: relative; z-index: 2; }
.btn-sm { padding: 10px 20px; font-size: .62rem; }
.btn-lg { padding: 17px 40px; font-size: .8rem; }
.btn.full { width: 100%; }

.btn-neon {
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
    background-size: 200% 100%; color: #050310;
    animation: btn-flow 4s linear infinite;
}
@keyframes btn-flow { to { background-position: 200% 0; } }
.btn-neon:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glow-magenta), var(--glow-cyan); }

.btn-ghost {
    border: 1px solid var(--cyan); color: var(--cyan);
    background: rgba(0, 240, 255, .05);
}
.btn-ghost:hover {
    background: rgba(0, 240, 255, .14); transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
.container { width: min(1240px, 92%); margin: 0 auto; }
.container.narrow { width: min(840px, 92%); }
.center { text-align: center; }
.section { padding: 120px 0; position: relative; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-family: var(--font-display);
    font-size: .62rem; letter-spacing: .32em; color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, .35); border-radius: 3px;
    padding: 6px 16px; margin-bottom: 18px;
    background: rgba(0, 240, 255, .05);
}
.section-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.7rem, 4.6vw, 3rem); letter-spacing: .06em;
    line-height: 1.18;
}
.section-sub { color: var(--muted); max-width: 620px; margin: 18px auto 0; font-size: 1.1rem; }

.grad-text {
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px rgba(234, 230, 255, .85);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0; transform: translateY(46px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 140px 0 90px;
    overflow: hidden;
}
.hero-layers { position: absolute; inset: 0; pointer-events: none; }
.hero-ring {
    position: absolute; left: 50%; top: 52%; border-radius: 50%;
    border: 1px solid rgba(124, 92, 255, .3);
    transform: translate(-50%, -50%);
}
.hero-ring.ring-1 { width: 46vmin; height: 46vmin; border-color: rgba(0, 240, 255, .35); animation: ring-pulse 5s ease-in-out infinite; }
.hero-ring.ring-2 { width: 72vmin; height: 72vmin; animation: ring-pulse 5s ease-in-out 1s infinite; }
.hero-ring.ring-3 { width: 100vmin; height: 100vmin; border-color: rgba(255, 46, 166, .2); animation: ring-pulse 5s ease-in-out 2s infinite; }
@keyframes ring-pulse {
    0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.floater {
    position: absolute; width: clamp(46px, 6vw, 74px); height: clamp(46px, 6vw, 74px);
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(10, 6, 32, .5); border: 1px solid var(--panel-border);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 24px rgba(0, 240, 255, .18), inset 0 0 18px rgba(124, 92, 255, .12);
    animation: hover-float 5.5s ease-in-out infinite;
    opacity: .95;
}
.floater .ico {
    width: 55%; height: 55%; stroke-width: 1.7;
    filter: drop-shadow(0 0 8px currentColor);
}
.floater.f1 { top: 18%; left: 10%; color: var(--cyan); }
.floater.f2 { top: 26%; right: 12%; animation-delay: .8s; color: var(--magenta); }
.floater.f3 { top: 60%; left: 7%; animation-delay: 1.6s; color: var(--lime); }
.floater.f4 { bottom: 22%; right: 9%; animation-delay: 2.4s; color: var(--violet); }
.floater.f5 { top: 12%; left: 46%; animation-delay: 3.2s; color: var(--cyan); }
.floater.f6 { bottom: 14%; left: 30%; animation-delay: 4s; color: var(--magenta); }
@keyframes hover-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-22px) rotate(5deg); }
}

.hero-content { position: relative; z-index: 2; width: min(900px, 92%); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: .6rem; letter-spacing: .28em;
    color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35);
    padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
    background: rgba(0, 240, 255, .06); backdrop-filter: blur(6px);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
    box-shadow: 0 0 10px var(--lime); animation: blink 1.4s infinite;
}
.hero-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: 1.06;
    letter-spacing: .04em; margin-bottom: 26px;
}
.hero-title .line { display: block; }
.hero-sub {
    color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chip {
    font-family: var(--font-display); font-size: .6rem; letter-spacing: .2em;
    color: var(--lime); border: 1px solid rgba(157, 255, 0, .3);
    background: rgba(157, 255, 0, .06); padding: 7px 14px; border-radius: 100px;
}

.scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--muted); z-index: 2;
}
.mouse {
    width: 24px; height: 38px; border: 1.5px solid var(--muted);
    border-radius: 14px; display: flex; justify-content: center; padding-top: 6px;
}
.wheel {
    width: 3px; height: 8px; border-radius: 3px; background: var(--cyan);
    box-shadow: var(--glow-cyan); animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hint-text { font-family: var(--font-display); font-size: .55rem; letter-spacing: .3em; }

/* ============================================================
   CARDS (WHY)
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.game-card {
    position: relative; padding: 38px 30px;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 14px; backdrop-filter: blur(10px);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    overflow: hidden;
}
.game-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 40px rgba(0, 240, 255, .06);
}
.card-glow {
    position: absolute; inset: -1px; border-radius: 14px; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, .14), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.game-card:hover .card-glow { opacity: 1; }
.card-icon {
    width: 60px; height: 60px; margin-bottom: 20px; color: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(0, 240, 255, .07); border: 1px solid var(--panel-border);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, .4));
    transition: transform .35s var(--ease), color .35s;
}
.card-icon .ico { width: 28px; height: 28px; }
.game-card:hover .card-icon { transform: translateY(-4px) rotate(-6deg); color: var(--magenta); }
.card-level {
    display: block; font-family: var(--font-display); font-size: .58rem;
    letter-spacing: .28em; color: var(--magenta); margin-bottom: 12px;
}
.game-card h3 {
    font-family: var(--font-display); font-size: 1.05rem;
    letter-spacing: .06em; margin-bottom: 12px;
}
.game-card p { color: var(--muted); }
.card-xp {
    margin-top: 22px; height: 5px; border-radius: 5px;
    background: rgba(124, 92, 255, .18); overflow: hidden;
}
.card-xp span {
    display: block; height: 100%; width: 0; border-radius: 5px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: var(--glow-cyan);
    transition: width 1.4s var(--ease) .4s;
}
.reveal.in .card-xp span { width: var(--xp, 80%); }

/* ============================================================
   HOW IT WORKS — QUEST TRACK
   ============================================================ */
.quest-track { position: relative; width: min(760px, 100%); margin: 0 auto; }
.quest-line {
    position: absolute; left: 31px; top: 10px; bottom: 10px; width: 3px;
    background: rgba(124, 92, 255, .18); border-radius: 3px;
}
.quest-line span {
    display: block; width: 100%; height: 0;
    background: linear-gradient(180deg, var(--cyan), var(--magenta));
    box-shadow: var(--glow-cyan); border-radius: 3px;
    transition: height .2s linear;
}
.quest-step {
    display: flex; gap: 30px; align-items: flex-start;
    padding: 26px 0; position: relative;
}
.quest-node {
    flex: 0 0 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border: 2px solid var(--violet);
    font-family: var(--font-display); font-weight: 800; color: var(--cyan);
    box-shadow: 0 0 0 6px rgba(124, 92, 255, .1);
    position: relative; z-index: 2; transition: all .4s var(--ease);
}
.quest-step.in .quest-node {
    border-color: var(--cyan); box-shadow: var(--glow-cyan), 0 0 0 8px rgba(0, 240, 255, .08);
    transform: scale(1.06);
}
.quest-body {
    flex: 1; background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 12px; padding: 24px 28px; backdrop-filter: blur(8px);
    transition: border-color .3s;
}
.quest-body:hover { border-color: var(--cyan); }
.quest-body h3 {
    font-family: var(--font-display); font-size: .95rem;
    letter-spacing: .14em; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px; color: var(--text);
}
.quest-body h3 .ico { width: 22px; height: 22px; color: var(--cyan); flex: 0 0 auto; }
.quest-body p { color: var(--muted); }

/* ============================================================
   SCIENCE
   ============================================================ */
.science-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.science-copy .section-title { text-align: left; margin: 0 0 22px; }
.science-copy .section-tag { margin-bottom: 18px; }
.science-copy p { color: var(--muted); font-size: 1.12rem; margin-bottom: 30px; }
.science-copy strong { color: var(--cyan); }

.science-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat-pod {
    position: relative; padding: 30px 24px; text-align: center;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 14px; overflow: hidden; backdrop-filter: blur(8px);
    transition: transform .3s var(--ease), border-color .3s;
}
.stat-pod:hover { transform: translateY(-6px); border-color: var(--magenta); }
.stat-value {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.stat-ring {
    position: absolute; width: 130px; height: 130px; border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, .25);
    top: -55px; right: -55px;
    animation: spin-slow 14s linear infinite;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    margin-bottom: 54px;
}
.skill-tile {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 12px; padding: 28px 20px; text-align: center;
    backdrop-filter: blur(8px);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.skill-tile:hover {
    transform: translateY(-8px) scale(1.02); border-color: var(--cyan);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45), var(--glow-cyan);
}
.skill-ico {
    width: 54px; height: 54px; margin: 0 auto 16px; color: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 240, 255, .06); border: 1px solid var(--panel-border);
    transition: transform .35s var(--ease), color .35s, box-shadow .35s;
}
.skill-ico .ico { width: 26px; height: 26px; }
.skill-tile:hover .skill-ico {
    transform: rotate(8deg) scale(1.08); color: var(--magenta);
    box-shadow: 0 0 20px rgba(255, 46, 166, .4);
}
.skill-tile h3 {
    font-family: var(--font-display); font-size: .78rem;
    letter-spacing: .1em; margin-bottom: 16px; min-height: 2.2em;
    display: flex; align-items: center; justify-content: center;
}
.skill-bar {
    display: block; height: 5px; border-radius: 5px;
    background: rgba(124, 92, 255, .18); overflow: hidden;
}
.skill-bar i {
    display: block; height: 100%; width: 0; border-radius: 5px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    box-shadow: var(--glow-cyan);
    transition: width 1.3s var(--ease) .35s;
}
.reveal.in .skill-bar i { width: var(--w, 80%); }

/* ============================================================
   GAMES (API-DRIVEN)
   ============================================================ */
.games-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.games-loader {
    grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted);
}
.games-loader p { margin-top: 16px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; }
.spinner {
    display: inline-block; width: 44px; height: 44px; border-radius: 50%;
    border: 3px solid rgba(124, 92, 255, .2); border-top-color: var(--cyan);
    box-shadow: var(--glow-cyan); animation: spin-slow .8s linear infinite;
}
.games-error { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--magenta); }
.games-error .btn { margin-top: 20px; }

.game-tile {
    position: relative; display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px);
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
    transform-style: preserve-3d;
}
.game-tile:hover {
    border-color: var(--cyan);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(0, 240, 255, .18);
}
.game-thumb {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-2), #1a0f3a);
}
.game-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s var(--ease); filter: saturate(1.05);
}
.game-tile:hover .game-thumb img { transform: scale(1.08); }
.game-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 3, 15, .92) 4%, rgba(5, 3, 15, .15) 46%, transparent 75%);
}
.game-scan {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, .12), transparent);
    background-size: 100% 40%; background-repeat: no-repeat;
    transition: opacity .3s;
}
.game-tile:hover .game-scan { opacity: 1; animation: scan 1.4s linear infinite; }
@keyframes scan { 0% { background-position: 0 -40%; } 100% { background-position: 0 140%; } }
.game-meta {
    position: absolute; left: 16px; bottom: 14px; z-index: 3;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.game-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-size: .56rem; letter-spacing: .12em;
    padding: 6px 11px; border-radius: 100px; color: var(--text);
    background: rgba(10, 6, 32, .7); border: 1px solid var(--panel-border);
    backdrop-filter: blur(6px);
}
.game-badge .ico { width: 13px; height: 13px; color: var(--cyan); }
.game-badge.mag .ico { color: var(--magenta); }
.game-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.game-body h3 {
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .03em;
    line-height: 1.35; margin-bottom: 12px; color: var(--text);
}
.game-body p { color: var(--muted); font-size: .93rem; flex-grow: 1; margin-bottom: 20px; }
.game-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-size: .64rem; letter-spacing: .16em;
    color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35);
    background: rgba(0, 240, 255, .05); padding: 12px 18px; border-radius: 6px;
    transition: all .25s var(--ease);
}
.game-cta .ico { width: 14px; height: 14px; }
.game-cta:hover {
    background: rgba(0, 240, 255, .15); box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}
.game-index {
    position: absolute; top: 14px; right: 16px; z-index: 3;
    font-family: var(--font-display); font-size: .6rem; letter-spacing: .1em;
    color: var(--muted); background: rgba(10, 6, 32, .65);
    border: 1px solid var(--panel-border); padding: 5px 9px; border-radius: 6px;
    backdrop-filter: blur(6px);
}

/* ============================================================
   PLAYERS
   ============================================================ */
.player-select { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.player-card {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 16px; padding: 40px 34px; backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.player-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}
.player-card.alt::before { background: linear-gradient(90deg, var(--magenta), transparent); }
.player-card:hover { border-color: var(--cyan); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.player-card.alt:hover { border-color: var(--magenta); }
.player-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.player-avatar {
    width: 76px; height: 76px; border-radius: 14px; color: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 240, 255, .07); border: 1px solid var(--panel-border);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, .4));
}
.player-avatar .ico { width: 36px; height: 36px; }
.player-card.alt .player-avatar { color: var(--magenta); filter: drop-shadow(0 0 10px rgba(255, 46, 166, .4)); }
.player-tag {
    font-family: var(--font-display); font-size: .58rem;
    letter-spacing: .3em; color: var(--cyan);
}
.player-card.alt .player-tag { color: var(--magenta); }
.player-card h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .06em; }
.player-card > p { color: var(--muted); margin-bottom: 20px; }

.perk-list { list-style: none; margin: 0 0 28px; }
.perk-list li {
    position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text);
}
.perk-list li::before {
    content: '▸'; position: absolute; left: 0; color: var(--lime);
    text-shadow: 0 0 8px var(--lime);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    gap: 28px; align-items: stretch; justify-content: center;
    max-width: 820px; margin: 0 auto;
}
.price-card {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 16px; padding: 40px 32px; text-align: center;
    display: flex; flex-direction: column; backdrop-filter: blur(10px);
    position: relative;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.price-card:hover { transform: translateY(-8px); border-color: var(--cyan); }
.price-card.featured {
    border-color: var(--magenta);
    background: linear-gradient(180deg, rgba(255, 46, 166, .1), var(--panel) 45%);
    box-shadow: 0 0 50px rgba(255, 46, 166, .18);
    transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.best-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display); font-size: .58rem; letter-spacing: .22em;
    background: linear-gradient(90deg, var(--magenta), var(--violet));
    padding: 7px 18px; border-radius: 100px; color: #fff; white-space: nowrap;
    box-shadow: var(--glow-magenta);
}
.price-tag {
    font-family: var(--font-display); font-size: .58rem; letter-spacing: .32em;
    color: var(--cyan); margin-bottom: 10px;
}
.price-card h3 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .05em; margin-bottom: 18px; }
.price {
    font-family: var(--font-display); font-weight: 900;
    font-size: 3rem; margin-bottom: 24px; line-height: 1;
}
.price sup { font-size: 1.2rem; color: var(--cyan); margin-right: 2px; }
.price span { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: .05em; }
.price.custom { font-size: 2.1rem; color: var(--cyan); }
.price-card .perk-list { text-align: left; flex-grow: 1; }
.price-toggle {
    display: inline-flex; gap: 4px; margin: 0 auto 20px;
    background: rgba(124, 92, 255, .12); padding: 4px; border-radius: 100px;
    border: 1px solid var(--panel-border);
}
.ptog {
    font-family: var(--font-display); font-size: .58rem; letter-spacing: .14em;
    padding: 7px 16px; border-radius: 100px; border: 0; cursor: pointer;
    background: transparent; color: var(--muted); transition: all .25s;
}
.ptog.active {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    color: #050310; font-weight: 700;
}
.pricing-note { text-align: center; color: var(--muted); margin-top: 34px; font-size: .95rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 12px; backdrop-filter: blur(8px);
    transition: border-color .3s;
}
.faq-item[open] { border-color: var(--cyan); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 22px 26px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: var(--font-display); font-size: .88rem; letter-spacing: .06em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
    color: var(--cyan); font-size: 1.4rem; line-height: 1;
    transition: transform .3s var(--ease); text-shadow: var(--glow-cyan);
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-body { padding: 0 26px 24px; color: var(--muted); }
.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { list-style: none; margin: 0 0 12px; padding: 0; }
.faq-body ul:last-child { margin-bottom: 0; }
.faq-body li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.faq-body li::before {
    content: '▸'; position: absolute; left: 0; color: var(--lime);
    text-shadow: 0 0 8px var(--lime);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { padding: 160px 0; }
.cta-portal {
    position: relative; padding: 90px 40px;
    border: 1px solid var(--panel-border); border-radius: 24px;
    background: radial-gradient(ellipse at center, rgba(124, 92, 255, .14), transparent 65%), var(--panel);
    overflow: hidden; backdrop-filter: blur(10px);
}
.portal-ring {
    position: absolute; left: 50%; top: 50%;
    width: 560px; height: 560px; border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, .3);
    transform: translate(-50%, -50%);
    animation: spin-slow 24s linear infinite;
    pointer-events: none;
}
.portal-ring.r2 {
    width: 760px; height: 760px;
    border-color: rgba(255, 46, 166, .22);
    animation-direction: reverse; animation-duration: 34s;
}
.cta-portal .section-title { margin-bottom: 16px; }
.cta-portal .section-sub { margin-bottom: 36px; }
.cta-portal .btn { position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--panel-border);
    background: rgba(5, 3, 15, .85); backdrop-filter: blur(12px);
    padding: 70px 0 30px; position: relative; z-index: 2;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px;
    padding-bottom: 44px; border-bottom: 1px solid rgba(124, 92, 255, .15);
}
.footer-brand p { color: var(--muted); margin: 16px 0; max-width: 340px; }
.footer-mail { color: var(--cyan); font-weight: 600; }
.footer-mail:hover { text-shadow: var(--glow-cyan); }
.footer-col h4 {
    font-family: var(--font-display); font-size: .68rem;
    letter-spacing: .3em; color: var(--cyan); margin-bottom: 18px;
}
.footer-col a {
    display: block; color: var(--muted); margin-bottom: 12px;
    transition: color .25s, transform .25s;
}
.footer-col a:hover { color: var(--text); transform: translateX(5px); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; padding-top: 26px;
    color: var(--muted); font-size: .92rem;
}
.footer-credit a { color: var(--magenta); font-weight: 600; }
.footer-credit a:hover { text-shadow: var(--glow-magenta); }

/* ============================================================
   PAYMENT BADGES (footer)
   ============================================================ */
.pay-badges { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.pay-badge {
    height: 34px; min-width: 52px; padding: 0 12px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
    font-family: var(--font-display); font-weight: 800; font-size: .82rem;
    letter-spacing: .02em; user-select: none;
}
.pay-badge.visa { color: #1a1f71; font-style: italic; }
.pay-badge.stripe {
    background: #635bff; color: #fff; font-family: var(--font-body);
    font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
}
.pay-badge.mc { gap: 0; position: relative; }
.pay-badge.mc i {
    width: 17px; height: 17px; border-radius: 50%; display: block;
}
.pay-badge.mc i:first-child { background: #eb001b; }
.pay-badge.mc i:last-child { background: #f79e1b; margin-left: -7px; mix-blend-mode: multiply; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { padding-top: 0; }
.legal-hero {
    padding: calc(var(--cb-h, 44px) + 130px) 0 40px;
    text-align: center; position: relative;
}
.legal-hero .section-tag { margin-bottom: 18px; }
.legal-hero .section-title { font-size: clamp(1.8rem, 5vw, 3rem); }
.legal-updated {
    margin-top: 16px; color: var(--muted);
    font-family: var(--font-display); font-size: .68rem; letter-spacing: .18em;
}
.legal-section { position: relative; z-index: 2; }
.legal-content {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 18px; padding: 48px 44px; backdrop-filter: blur(10px);
}
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.legal-content h2 {
    font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em;
    color: var(--text); margin: 2.4rem 0 1rem; padding-top: 1.2rem;
    border-top: 1px solid rgba(124, 92, 255, .15);
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-content h3 {
    font-family: var(--font-display); font-size: .95rem; letter-spacing: .03em;
    color: var(--cyan); margin: 1.6rem 0 .8rem;
}
.legal-content ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.legal-content ul li { position: relative; padding-left: 26px; }
.legal-content ul li::before {
    content: '▸'; position: absolute; left: 0; color: var(--lime); text-shadow: 0 0 8px var(--lime);
}
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--cyan); border-bottom: 1px solid rgba(0, 240, 255, .3); }
.legal-content a:hover { text-shadow: var(--glow-cyan); }
.legal-content .callout {
    background: rgba(0, 240, 255, .06); border: 1px solid rgba(0, 240, 255, .28);
    border-left: 3px solid var(--cyan); border-radius: 10px;
    padding: 20px 24px; margin: 1.6rem 0 2rem;
}
.legal-content .callout p { color: var(--text); margin: 0; }
.legal-content .callout p + p { margin-top: .8rem; }
.back-btn { margin-top: 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .science-grid { grid-template-columns: 1fr; gap: 44px; }
    .science-copy .section-title { text-align: center; }
    .science-copy { text-align: center; }
    .hud-dots { display: none; }
}

@media (max-width: 820px) {
    .section { padding: 90px 0; }
    .cards-3, .player-select, .pricing-grid, .games-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-8px); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    .main-nav {
        position: fixed; top: 0; right: -100%; bottom: 0;
        width: min(320px, 80vw); flex-direction: column; gap: 8px;
        background: rgba(5, 3, 15, .96); backdrop-filter: blur(16px);
        border-left: 1px solid var(--panel-border);
        padding: 100px 34px 34px; transition: right .4s var(--ease);
        z-index: 940;
    }
    .main-nav.open { right: 0; }
    .main-nav a { font-size: .85rem; padding: 14px 0; }
    .nav-toggle { display: flex; position: relative; z-index: 960; }

    .cb-inner { padding: 6px 0; }
    .cb-inner p { font-size: .56rem; text-align: justify; }
    .legal-content { padding: 32px 22px; }
}

@media (max-width: 520px) {
    .skills-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .games-grid { gap: 18px; }
    .quest-step { gap: 18px; }
    .quest-node { flex: 0 0 50px; height: 50px; }
    .quest-line { left: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .floater { display: none; }
    .portal-ring, .portal-ring.r2 { width: 120vw; height: 120vw; }
}
