/* ============================================================
   NOVAGAMES - styles.all.css
   ============================================================ */

/* DESIGN TOKENS */
:root {
    --bg: #040e19;
    --bg2: #061426;
    --bg3: #08192e;
    --panel: #0a1c33;

    --blue: #0967C5;
    --blue2: #1A76D3;
    --blue3: #3d95e8;
    --accent: #2b86e0;
    --blueSoft: rgba(26, 118, 211, .16);

    --text: #ffffff;
    --muted: #9db2c9;
    --muted2: #6d8299;
    --line: rgba(255, 255, 255, .09);
    --line2: rgba(255, 255, 255, .16);

    --ink: #040e19;
    --inkMuted: #4e6274;

    --headerH: 80px;
    --heroH: 1000px;
    --radius: 22px;
    --radiusSm: 14px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --maxW: 1360px;
}

/* DEFAULTS */
* {
    text-decoration: none;
    box-sizing: border-box;
    padding: 0px;
    border: 0px;
    margin: 0px;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: calc(var(--headerH) + 20px);
}
body {
    color: var(--text);
    font-family: 'Geist', sans-serif;
    background-color: var(--bg);
    overflow-x: hidden;
}
body.noScroll {
    overflow: hidden;
}
a {
    color: #ffffff;
}
button, input, select {
    font: inherit;
    color: inherit;
    background: none;
}
button {
    cursor: pointer;
}
img {
    max-width: 100%;
}
#root {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow: clip;
}
::selection { color: #ffffff; background-color: #0967C5; }
::-moz-selection { color: #ffffff; background-color: #0967C5; }

.unselectable {
    -webkit-user-select: none;
    user-select: none;
}
.container {
    width: 100%;
    max-width: var(--maxW);
    margin: 0 auto;
    padding: 0 32px;
}
.iconSprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.iconSprite symbol {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ic {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity .55s var(--ease), visibility .55s;
    /* failsafe: reveal the page even if the script never runs */
    animation: preloaderFailsafe 0s linear 7s forwards;
}
.preloader.isDone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader.isDone .preloaderInner {
    transform: scale(1.06);
    transition: transform .55s var(--ease);
}
@keyframes preloaderFailsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* same grid + blue glow the dark sections use, so the curtain belongs to the site */
.preloaderGrid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 78%);
    mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 78%);
}
.preloaderGlow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 760px;
    height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(26, 118, 211, .28), transparent 70%);
    filter: blur(30px);
}
.preloaderInner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.preloaderPct {
    /* monospace so the digits do not jitter, and a system stack so nothing swaps */
    font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
    font-size: 54px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    text-shadow: 0 0 34px rgba(61, 149, 232, .55);
}
.preloaderTrack {
    position: relative;
    display: block;
    width: 280px;
    max-width: 62vw;
    height: 2px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}
.preloaderBar {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue3));
    box-shadow: 0 0 14px rgba(61, 149, 232, .9);
    transition: width .35s var(--ease);
}
.preloaderName {
    font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 6px;
    text-indent: 6px;
    color: var(--muted2);
}

/* hold the entrance animations until the curtain lifts, otherwise they play behind it */
body.isLoading .revealTop,
body.isLoading .revealBot,
body.isLoading .revealLeft,
body.isLoading .revealRight,
body.isLoading .character {
    animation-play-state: paused;
}

/* SCROLL PROGRESS */
.scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 300;
    pointer-events: none;
}
.scrollProgress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--blue3));
    box-shadow: 0 0 14px rgba(61, 149, 232, .8);
    transition: width .1s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--headerH);
    z-index: 200;
    transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.siteHeader.isScrolled {
    background-color: rgba(4, 14, 25, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
    height: 68px;
}
.headerInner {
    width: 100%;
    max-width: 1680px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}
.side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 200px;
}
.sideR {
    justify-content: end;
}
.logo {
    cursor: pointer;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-size: 32px;
    color: #fff;
    letter-spacing: .5px;
}
.logo span {
    color: #fff;
    transition: .17s ease-in-out;
}
.logo:hover span {
    color: #0a6ac9;
}
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 42px;
}
.navLink {
    position: relative;
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: .6px;
    color: var(--muted);
    padding: 8px 2px;
    transition: color .22s var(--ease);
}
/* accent underline grows from the centre - no boxes, matches the flat nav */
.navLink::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue3), var(--blue));
    transition: left .3s var(--ease), right .3s var(--ease);
}
.navLink:hover {
    color: #fff;
}
.navLink:hover::after,
.navLink.isCurrent::after {
    left: 0;
    right: 0;
}
.navLink.isCurrent {
    color: #fff;
}

.catalogBtn {
    position: relative;
    width: max-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    font-family: "Geist", sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    padding: 10px 10px 10px 20px;
    border-radius: 9999px;
    box-shadow: 0 10px 26px -10px rgba(26, 118, 211, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .2s var(--spring), box-shadow .25s var(--ease), filter .25s;
}
.catalogBtn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg);
    transition: left .6s var(--ease);
}
.catalogBtn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px -10px rgba(26, 118, 211, 1), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.catalogBtn:hover::after { left: 130%; }
.catalogBtn:active {
    transform: translateY(0) scale(0.97);
}
.catalogBtn img {
    position: relative;
    width: 22px;
    height: 22px;
    filter: brightness(1.25);
    transition: transform .25s var(--spring);
}
.catalogBtn:hover img { transform: rotate(45deg); }

/* BURGER + MOBILE MENU */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line2);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--ease), opacity .2s linear;
}
.burger.isOpen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.isOpen span:nth-child(2) { opacity: 0; }
.burger.isOpen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobileMenu {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(4, 14, 25, .96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.mobileMenu.isOpen {
    opacity: 1;
    visibility: visible;
}
.mobileLink {
    font-family: "Anton", sans-serif;
    font-size: 40px;
    letter-spacing: 1px;
    padding: 6px 18px;
    opacity: 0;
    transform: translateY(14px);
    transition: color .2s;
}
.mobileMenu.isOpen .mobileLink {
    animation: revealBot .5s var(--ease) forwards;
}
.mobileMenu.isOpen .mobileLink:nth-child(1) { animation-delay: .05s; }
.mobileMenu.isOpen .mobileLink:nth-child(2) { animation-delay: .1s; }
.mobileMenu.isOpen .mobileLink:nth-child(3) { animation-delay: .15s; }
.mobileMenu.isOpen .mobileLink:nth-child(4) { animation-delay: .2s; }
.mobileMenu.isOpen .mobileLink:nth-child(5) { animation-delay: .25s; }
.mobileLink:hover { color: var(--blue3); }
.mobileCta {
    margin-top: 24px;
    opacity: 0;
}
.mobileMenu.isOpen .mobileCta {
    animation: revealBot .5s var(--ease) .32s forwards;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    width: 100%;
    min-height: var(--heroH);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: var(--headerH);
}
.heroBg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40px;
    right: -40px;
    /* PNG first as the floor, then image-set() upgrades to WebP where it
       is understood - 3.4 MB down to 73 KB for the same picture. A browser
       that does not parse image-set() simply keeps the line above. */
    background: url("./assets/heroBg.png") center top / cover no-repeat;
    background-image: image-set(url("./assets/heroBg.webp") type("image/webp"),
                                url("./assets/heroBg.png") type("image/png"));
    z-index: 0;
    will-change: transform;
}
.heroBgText {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40px;
    right: -40px;
    background: url("./assets/bgText.png") center top / cover no-repeat;
    background-image: image-set(url("./assets/bgText.webp") type("image/webp"),
                                url("./assets/bgText.png") type("image/png"));
    z-index: 0;
    will-change: transform;
}
.heroVignette {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 20% 55%, rgba(4, 14, 25, .6) 0%, rgba(4, 14, 25, .2) 45%, transparent 72%),
        linear-gradient(180deg, rgba(4, 14, 25, .55) 0%, transparent 26%);
}

.heroMain {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1;
}
.heroSide {
    width: 100%;
    min-height: calc(var(--heroH) - var(--headerH));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
/* keeps the copy clear of the white separator wedge, which is tallest on wide screens */
.heroSide:not(.heroSideR) {
    padding-bottom: clamp(90px, 6vw, 140px);
}
/* readability scrim: sits above the character, below the copy */
.heroSide:not(.heroSideR)::before {
    content: "";
    position: absolute;
    top: -140px;
    bottom: -120px;
    left: -50vw;
    right: -60px;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(4, 14, 25, .94) 0%,
        rgba(4, 14, 25, .88) 46%,
        rgba(4, 14, 25, .5) 66%,
        rgba(4, 14, 25, 0) 84%);
}
.heroSideR {
    position: absolute;
    top: 0;
    bottom: 0;
    right: clamp(0px, 1.4vw, 40px);
    width: auto;
    min-height: 0;
    display: flex;
    /* .heroSide is a centred column - reset both axes so the character sits on the floor */
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    will-change: transform;
    pointer-events: none;
}
.heroCopy {
    position: relative;
    z-index: 1;
    padding-left: clamp(24px, 5.4vw, 108px);
    padding-right: 24px;
    max-width: 1050px;
}
.pulseDot {
    position: relative;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--blue3);
}
.pulseDot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--blue3);
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0%   { transform: scale(1); opacity: .7; }
    70%  { transform: scale(2.8); opacity: 0; }
    100% { transform: scale(2.8); opacity: 0; }
}

.title {
    display: flex;
    flex-direction: column;
}
.titleRow {
    font-family: "Anton", sans-serif;
    font-size: clamp(42px, 8.5vw, 134px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.5px;
    text-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.titleRow.shifted {
    padding-left: clamp(20px, 4.4vw, 74px);
}
/* flat accent - any gradient left the bottom of the glyphs looking dimmed */
.titleRow span,
.sectionTitle span,
.ctaTitle span {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}
/* deeper tone for the one accent word that sits on the white section */
.sectionTitleDark span {
    color: var(--blue);
    -webkit-text-fill-color: var(--blue);
}
.heroLead {
    margin-top: 28px;
    max-width: 560px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.62;
    color: var(--muted);
}
.heroActions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.btnPrimary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 13px 13px 26px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px -12px rgba(26, 118, 211, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .2s var(--spring), box-shadow .25s var(--ease), filter .25s;
}
.btnPrimary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-18deg);
    transition: left .6s var(--ease);
}
.btnPrimary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px -12px rgba(26, 118, 211, 1), inset 0 1px 0 rgba(255, 255, 255, .3);
    filter: brightness(1.06);
}
.btnPrimary:hover::after { left: 130%; }
.btnPrimary:active { transform: translateY(0) scale(.98); }
.btnPrimary img {
    width: 26px;
    height: 26px;
    filter: brightness(1.25);
    transition: transform .25s var(--spring);
}
.btnPrimary:hover img { transform: rotate(45deg); }

.btnGhost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 9999px;
    border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .2s var(--spring);
}
.btnGhost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .34);
    transform: translateY(-2px);
}
.btnGhost:active { transform: translateY(0) scale(.98); }

.heroStats {
    margin-top: 46px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.heroStat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.heroStat b {
    font-family: "Anton", sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .5px;
}
.heroStat span {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted2);
}
.heroStatDiv {
    width: 1px;
    height: 34px;
    background: var(--line2);
}

/* The two hero images are wrapped in <picture> so a WebP source can be
   offered. display:contents keeps the <img> itself as the flex item of
   .heroSideR, so the layout below is unchanged by the wrapper. */
.heroSideR picture { display: contents; }

.character {
    width: auto;
    height: 860px;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(12px);
    filter: blur(6px) drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
    /* reveal on load, then idle float - the float takes over once the reveal has settled */
    animation:
        charReveal .7s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        charFloat 7s ease-in-out .9s infinite;
}
@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0) drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
    }
}
@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.characterHighlight {
    position: absolute;
    z-index: 0;
    width: 1250px;
    max-width: none;
    height: auto;
    right: -190px;
    bottom: -40px;
    pointer-events: none;
    will-change: transform;
    opacity: .95;
}
.separator {
    position: absolute;
    width: 100%;
    bottom: -1px;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

/* ============================================================
   SHARED SECTION BITS
   ============================================================ */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 9999px;
    border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .04);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2.2px;
    color: var(--muted);
    text-transform: uppercase;
}
.kickerDark {
    border-color: rgba(4, 14, 25, .14);
    background: rgba(4, 14, 25, .04);
    color: var(--inkMuted);
}
.kickerCenter { margin: 0 auto; }

.sectionTitle {
    margin-top: 22px;
    font-family: "Anton", sans-serif;
    font-size: clamp(38px, 5.2vw, 76px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.5px;
}
.sectionTitleDark { color: var(--ink); }
.sectionLead {
    margin-top: 20px;
    max-width: 620px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--muted);
}
.sectionHead {
    margin-bottom: 62px;
}

/* ============================================================
   ABOUT (LIGHT)
   ============================================================ */
.about {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    color: var(--ink);
    /* bottom room clears the dark wedge, which grows taller on wide screens */
    padding: 130px 0 clamp(150px, 9vw, 210px);
    overflow: hidden;
}
.aboutGrid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: start;
}
.aboutText {
    font-size: 17px;
    line-height: 1.75;
    font-weight: 300;
    color: #40566b;
}
.aboutText + .aboutText { margin-top: 18px; }
.aboutText b {
    font-weight: 600;
    color: var(--ink);
}
.linkArrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--blue);
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid rgba(9, 103, 197, .3);
    padding-bottom: 4px;
    transition: gap .25s var(--ease), border-color .25s;
}
.linkArrow img {
    width: 22px;
    height: 22px;
}
.linkArrow:hover {
    gap: 16px;
    border-color: var(--blue);
}

.statsRow {
    margin-top: 96px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
/* split card: tinted header strip + white body, so the boundary is obvious at rest */
.statCard {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    box-shadow: 0 1px 2px rgba(4, 14, 25, .05), 0 16px 32px -26px rgba(4, 14, 25, .5);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.statCard:hover {
    transform: translateY(-6px);
    border-color: #a9caeb;
    box-shadow: 0 1px 2px rgba(4, 14, 25, .05), 0 28px 50px -28px rgba(9, 103, 197, .6);
}
.statHead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: #f1f6fc;
    border-bottom: 1px solid #e2ebf6;
}
.statIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--blue);
    color: #ffffff;
    flex: none;
}
.statIcon .ic { width: 16px; height: 16px; }
.statKey {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--inkMuted);
}
.statBody {
    padding: 26px 18px 26px;
}
.statCard b {
    display: block;
    font-family: "Anton", sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .5px;
    color: var(--ink);
}
.statLabel {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.45;
    color: var(--inkMuted);
}

/* LIGHT -> DARK WEDGE (mirrored reuse of separator.png) */
.sepDark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 120px;
    background: var(--bg);
    -webkit-mask: url("./assets/separator.png") center bottom / 100% 100% no-repeat;
    mask: url("./assets/separator.png") center bottom / 100% 100% no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    position: relative;
    padding: 140px 0 130px;
    overflow: hidden;
}
.gridPattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(90% 60% at 50% 40%, #000, transparent 75%);
    mask-image: radial-gradient(90% 60% at 50% 40%, #000, transparent 75%);
}
.features .container { position: relative; z-index: 1; }

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.bentoCard {
    position: relative;
    grid-column: span 1;
    padding: 32px 30px 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s var(--ease), background-color .4s;
}
.bentoWide { grid-column: span 2; }
.bentoCard:hover {
    transform: translateY(-5px);
    border-color: var(--line2);
}
.bentoIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blueSoft);
    border: 1px solid rgba(61, 149, 232, .25);
    color: var(--blue3);
    margin-bottom: 22px;
    transition: transform .35s var(--spring), background-color .3s;
}
.bentoCard:hover .bentoIcon {
    transform: translateY(-3px) rotate(-6deg);
    background: rgba(26, 118, 211, .28);
}
.bentoIcon .ic { width: 23px; height: 23px; }
.bentoCard h3 {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}
.bentoCard p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.62;
    color: var(--muted);
    max-width: 460px;
}

/* spotlight follow */
.spotlight::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 149, 232, .16), transparent 70%);
}
.spotlight:hover::before { opacity: 1; }

/* border beam */
.borderBeam {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: conic-gradient(from var(--beam, 0deg), transparent 0deg, transparent 300deg, var(--blue3) 340deg, #ffffff 352deg, var(--blue3) 356deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: beamSpin 4s linear infinite;
}
.bentoCard:hover .borderBeam,
.itemCard:hover .borderBeam { opacity: 1; }
.borderBeamSlow {
    opacity: 1;
    animation-duration: 9s;
}
@property --beam {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes beamSpin {
    to { --beam: 360deg; }
}

.speedBars {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 56px;
    margin-top: 26px;
}
.speedBars i {
    flex: 1;
    height: var(--v);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--blue3), rgba(9, 103, 197, .25));
    transform-origin: bottom;
    animation: speedPulse 2.4s ease-in-out infinite;
}
.speedBars i:nth-child(2) { animation-delay: .18s; }
.speedBars i:nth-child(3) { animation-delay: .36s; }
.speedBars i:nth-child(4) { animation-delay: .54s; }
.speedBars i:nth-child(5) { animation-delay: .72s; }
.speedBars i:nth-child(6) { animation-delay: .9s; }
.speedBars i:nth-child(7) { animation-delay: 1.08s; }
.speedBars i:nth-child(8) { animation-delay: 1.26s; }
@keyframes speedPulse {
    0%, 100% { transform: scaleY(1); opacity: .75; }
    50%      { transform: scaleY(.55); opacity: 1; }
}

/* ============================================================
   CATALOG
   ============================================================ */
.catalog {
    position: relative;
    padding: 20px 0 140px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 40%, var(--bg) 100%);
}
/* kept inside the section - overflowing the top edge left a hard cut-off line */
.catalogGlow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 720px;
    pointer-events: none;
    background: radial-gradient(50% 50% at 50% 45%, rgba(26, 118, 211, .18), transparent 72%);
    filter: blur(40px);
}
.catalog .container { position: relative; z-index: 1; }
.catalogHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.catalogLead { margin-top: 0; max-width: 460px; }

/* SECTION TABS + SEARCH */
.catalogTools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.catalogTools[hidden], .catalogTabs[hidden] { display: none; }
.catalogTabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.catalogTabs::-webkit-scrollbar { display: none; }
.catalogTab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 9999px;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    transition: background-color .25s, color .25s;
}
.catalogTab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.catalogTab.isActive {
    color: #fff;
    background: var(--blue2);
    box-shadow: 0 8px 22px -10px rgba(26, 118, 211, .9);
}
.catalogTab:focus-visible { outline: 2px solid var(--blue3); outline-offset: 2px; }
.catalogTabCount {
    padding: 1px 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .1);
    font-size: 11px;
    letter-spacing: .4px;
}
.catalogTab.isActive .catalogTabCount { background: rgba(255, 255, 255, .22); }
.catalogSearch {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 320px;
    margin-left: auto;
}
.catalogSearch .ic {
    position: absolute;
    left: 16px;
    width: 17px;
    height: 17px;
    color: var(--muted2);
    pointer-events: none;
}
.catalogSearch input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .25s, background-color .25s;
}
.catalogSearch input::placeholder { color: var(--muted2); }
.catalogSearch input:focus {
    border-color: rgba(61, 149, 232, .55);
    background: rgba(255, 255, 255, .07);
}

/* GRID + CARDS */
.catalogGrid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.itemCard {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    animation: cardIn .5s var(--ease) forwards;
    transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
    will-change: transform;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
.itemCard:hover {
    border-color: rgba(61, 149, 232, .38);
    box-shadow: 0 30px 60px -30px rgba(9, 103, 197, .9);
}
.itemCard:focus-visible {
    outline: 2px solid var(--blue3);
    outline-offset: 3px;
}

.cardArt {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #071528;
}
.cardBanner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.01);
    transition: transform .6s var(--ease);
}
.itemCard:hover .cardBanner { transform: scale(1.06); }
.cardArtOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 25, .8));
}
.cardTags {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tagGame {
    background: rgba(26, 118, 211, .85);
    color: #fff;
}
.tagCheat {
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
}
.tagTrainer {
    background: rgba(240, 180, 60, .9);
    color: var(--ink);
}
.tagRepack {
    background: rgba(46, 186, 128, .88);
    color: #fff;
}
.cardBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 22px;
}
.cardGenre {
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--blue3);
    margin-bottom: 8px;
}
.cardTitle {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}
.cardDesc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.58;
    color: var(--muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cardMeta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted2);
}
.cardMeta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cardMeta .ic { width: 15px; height: 15px; }
.cardOpen {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .75;
    transition: opacity .3s, transform .35s var(--spring);
}
.itemCard:hover .cardOpen {
    opacity: 1;
    transform: rotate(45deg) scale(1.12);
}
.cardOpen img { width: 26px; height: 26px; }

.catalogFooter {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}
.loadMore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 9999px;
    border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .04);
    font-size: 15px;
    letter-spacing: 1.4px;
    transition: background-color .25s, border-color .25s, transform .2s var(--spring);
}
.loadMore:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .34);
    transform: translateY(-2px);
}
.loadMoreCount {
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(26, 118, 211, .3);
    font-size: 12px;
    letter-spacing: .4px;
    color: #cfe4fb;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
    padding: 130px 0;
    position: relative;
}
.stepsGrid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.stepsLine {
    position: absolute;
    top: 52px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line2) 12%, var(--line2) 88%, transparent);
}
.stepCard {
    position: relative;
    padding: 34px 30px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .4s var(--ease), border-color .3s;
}
.stepCard:hover {
    transform: translateY(-6px);
    border-color: var(--line2);
}
.stepNum {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: "Anton", sans-serif;
    font-size: 58px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12);
    transition: -webkit-text-stroke-color .35s;
}
.stepCard:hover .stepNum { -webkit-text-stroke-color: rgba(61, 149, 232, .5); }
.stepIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--blue2), var(--blue));
    color: #fff;
    box-shadow: 0 16px 34px -16px rgba(26, 118, 211, .95);
    margin-bottom: 24px;
}
.stepIcon .ic { width: 24px; height: 24px; }
.stepCard h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}
.stepCard p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 20px 0 140px;
}
.faqGrid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: start;
}
.faqAside .btnGhost { margin-top: 30px; }
.faqAside .sectionLead { margin-top: 22px; }

.faqList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faqItem {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .028);
    overflow: hidden;
    transition: border-color .3s, background-color .3s;
}
.faqItem:hover { border-color: var(--line2); }
.faqItem.isOpen {
    border-color: rgba(61, 149, 232, .38);
    background: rgba(26, 118, 211, .07);
}
.faqQ {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    text-align: left;
    font-size: 17px;
    font-weight: 400;
}
.faqPlus {
    position: relative;
    width: 18px;
    height: 18px;
    flex: none;
}
.faqPlus::before,
.faqPlus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--blue3);
    transform: translateY(-50%);
    transition: transform .35s var(--ease), opacity .25s;
}
.faqPlus::after { transform: translateY(-50%) rotate(90deg); }
.faqItem.isOpen .faqPlus::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faqA {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .42s var(--ease);
}
.faqItem.isOpen .faqA { grid-template-rows: 1fr; }
.faqA p {
    overflow: hidden;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    transition: padding .42s var(--ease);
}
.faqItem.isOpen .faqA p { padding: 0 24px 24px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 0 0 130px;
}
.ctaCard {
    position: relative;
    padding: 84px 40px 76px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0a1d35, #061426);
    text-align: center;
    overflow: hidden;
}
.ctaGlow {
    position: absolute;
    left: 50%;
    bottom: -260px;
    transform: translateX(-50%);
    width: 900px;
    height: 520px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(26, 118, 211, .55), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.ctaMeteors {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
/* Travel vector is (-380, 560) => 124deg on screen. The tail has to point the
   opposite way (-56deg) and fade away from the head, so it is rotated on its own
   element - rotating the whole meteor also rotated the translation axis. */
.meteor {
    position: absolute;
    top: -60px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(160, 205, 255, .75);
    opacity: 0;
    animation: meteorFall linear infinite;
}
.meteor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1px;
    width: 96px;
    height: 1px;
    transform-origin: 0 50%;
    transform: rotate(-56deg);
    background: linear-gradient(90deg, rgba(199, 224, 255, .75), rgba(199, 224, 255, 0));
}
@keyframes meteorFall {
    0%   { transform: translate(0, 0); opacity: 0; }
    12%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { transform: translate(-380px, 560px); opacity: 0; }
}
.ctaCard > *:not(.ctaGlow):not(.ctaMeteors):not(.borderBeam) { position: relative; z-index: 1; }
.ctaTitle {
    margin-top: 24px;
    font-family: "Anton", sans-serif;
    font-size: clamp(38px, 5.6vw, 82px);
    font-weight: 400;
    line-height: 1.02;
}
.ctaLead {
    margin: 22px auto 0;
    max-width: 520px;
    font-size: 17px;
    font-weight: 300;
    color: var(--muted);
}
.ctaActions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.ctaTrust {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted2);
}
.ctaTrust span { display: inline-flex; align-items: center; gap: 8px; }
.ctaTrust .ic { width: 16px; height: 16px; color: var(--blue3); }

/* ============================================================
   FOOTER
   ============================================================ */
.siteFooter {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(6, 20, 38, .8));
    /* extra bottom room so the fixed back-to-top button never covers the legal links */
    padding: 80px 0 96px;
}
.footerTop {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr;
    gap: 60px;
    padding-bottom: 60px;
}
.footerBrand p {
    margin-top: 18px;
    max-width: 340px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
}
.footerCols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footerCol {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footerCol h4 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 6px;
}
.footerCol a {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    width: max-content;
    transition: color .2s, transform .25s var(--ease);
}
.footerCol a:hover {
    color: #fff;
    transform: translateX(4px);
}
.footerBottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 300;
    color: var(--muted2);
}
.footerLegal {
    display: flex;
    gap: 22px;
}
.footerLegal a {
    color: var(--muted2);
    transition: color .2s;
}
.footerLegal a:hover { color: #fff; }

/* ============================================================
   MODAL
   ============================================================ */
.modalRoot {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
}
.modalRoot.isOpen {
    visibility: visible;
    pointer-events: auto;
}
.modalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 15, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.modalRoot.isOpen .modalBackdrop { opacity: 1; }

.modalDialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    border-radius: 26px;
    border: 1px solid var(--line2);
    background: #071528;
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px) scale(.96);
    transition: opacity .4s var(--ease), transform .45s var(--spring);
}
.modalRoot.isOpen .modalDialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.modalClose {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line2);
    background: rgba(4, 14, 25, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transition: background-color .25s, transform .25s var(--spring);
}
.modalClose:hover {
    background: rgba(255, 255, 255, .16);
    transform: rotate(90deg);
}
.modalBody {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.modalBody::-webkit-scrollbar { width: 8px; }
.modalBody::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.modalLayout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.modalBanner {
    position: relative;
    aspect-ratio: 16 / 6.4;
    flex: none;
    overflow: hidden;
    background: #071528;
}
.modalBanner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
/* fades the banner into the panel below so there is no hard seam */
.modalBannerScrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 14, 25, .35) 0%, transparent 30%, rgba(7, 21, 40, .55) 78%, #071528 100%);
}
.modalBannerTags {
    position: absolute;
    top: 18px;
    left: 22px;
    display: flex;
    gap: 8px;
}

.modalInfo {
    position: relative;
    flex: 1;
    padding: 26px 34px 34px;
    display: flex;
    flex-direction: column;
    background: #071528;
}
.modalGenre {
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue3);
}
.modalTitle {
    margin-top: 10px;
    font-family: "Anton", sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
}
.modalRating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
}
.modalDesc {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.72;
    color: var(--muted);
}
/* ============================================================
   ARCHIVE PASSWORD
   Only rendered when one is set in the admin panel.
   ============================================================ */
.archiveBox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(61, 149, 232, .34);
    background: linear-gradient(135deg, rgba(26, 118, 211, .16), rgba(26, 118, 211, .05));
    overflow: hidden;
}
.archiveGlow {
    position: absolute;
    left: -40px;
    top: 50%;
    width: 220px;
    height: 220px;
    transform: translateY(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(61, 149, 232, .35), transparent 70%);
    filter: blur(26px);
    pointer-events: none;
}
.archiveBox > *:not(.archiveGlow) { position: relative; z-index: 1; }

.archiveIcon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 13px;
    border: 1px solid rgba(61, 149, 232, .3);
    background: rgba(26, 118, 211, .2);
    color: var(--blue3);
}
.archiveMain {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.archiveLabel {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted2);
}
.archiveValue {
    font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .6px;
    line-height: 1.25;
    color: #fff;
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;
}

.archiveCopy {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 26px -12px rgba(26, 118, 211, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .2s var(--spring), filter .22s, box-shadow .22s var(--ease);
}
.archiveCopy:hover { transform: translateY(-2px); filter: brightness(1.08); }
.archiveCopy:active { transform: translateY(0) scale(.97); }
.archiveCopy .ic { width: 16px; height: 16px; }
.archiveDoneIc { display: none; }

.archiveCopy.isCopied {
    background: linear-gradient(180deg, #4bd89b, #2fae76);
    box-shadow: 0 10px 26px -12px rgba(62, 207, 142, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.archiveCopy.isCopied .archiveCopyIc { display: none; }
.archiveCopy.isCopied .archiveDoneIc { display: block; }
.archiveCopy.isCopied .archiveCopyLabel::after { content: "IED"; }

.modalSpecs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
}
/* shown when the catalog has no published entries */
.catalogEmpty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    color: var(--muted2);
    border: 1px dashed var(--line2);
    border-radius: var(--radius);
}
.specItem {
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}
.specItem b {
    display: block;
    font-size: 15px;
    font-weight: 500;
}
.specItem span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted2);
}
.modalActions {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 18px 0 22px;
    background: linear-gradient(180deg, rgba(7, 21, 40, 0) 0%, rgba(7, 21, 40, .97) 24%, #071528 100%);
}
.downloadBtn {
    position: relative;
    white-space: nowrap;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .8px;
    overflow: hidden;
    box-shadow: 0 18px 44px -16px rgba(26, 118, 211, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .2s var(--spring), filter .25s;
}
.downloadBtn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.downloadBtn:active { transform: translateY(0) scale(.99); }
.downloadBtn.isBusy { pointer-events: none; }
.downloadBtn.isDone {
    background: linear-gradient(180deg, #1f9d5c, #158049);
    box-shadow: 0 18px 44px -16px rgba(31, 157, 92, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.dlProgress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255, 255, 255, .22);
    transition: width .12s linear;
}
.downloadBtn > span,
.downloadBtn > .ic { position: relative; z-index: 1; }
.dlNote {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
    color: var(--muted2);
}
.dlNote .ic { width: 15px; height: 15px; }

/* TOASTS */
.toastWrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--line2);
    background: rgba(10, 28, 51, .95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
    font-size: 14.5px;
    font-weight: 300;
    animation: toastIn .45s var(--spring) forwards;
}
.toast .ic { width: 18px; height: 18px; color: #3fd08a; }
.toast.isOut { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px) scale(.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(30px) scale(.95); }
}

/* BACK TO TOP */
.toTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line2);
    background: rgba(10, 28, 51, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s;
}
.toTop.isVisible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.toTop:hover { background: var(--blue); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.revealTop {
  opacity: 0;
  transform: translateY(-12px);
  filter: blur(6px);
  animation: revealTop 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.revealBot {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  animation: revealBot 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.revealLeft {
  opacity: 0;
  transform: translateX(-12px);
  filter: blur(6px);
  animation: revealLeft 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.revealRight {
  opacity: 0;
  transform: translateX(12px);
  filter: blur(6px);
  animation: revealRight 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes revealTop   { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes revealBot   { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes revealLeft  { to { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes revealRight { to { opacity: 1; transform: translateX(0); filter: blur(0); } }

/* scroll-triggered reveals */
[data-reveal] {
    opacity: 0;
    filter: blur(7px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
    transition-delay: var(--rd, 0ms);
}
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].isIn {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1600px) {
    .heroSideR { right: clamp(0px, 2.5vw, 50px); }
    .character { height: 760px; }
}

/* 1080p and other short desktop screens: the fixed 1000px hero overflowed the
   viewport, so drive it from screen height and step the type down with it. */
@media (min-width: 1001px) and (max-height: 1020px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }
    .heroSide:not(.heroSideR) {
        min-height: calc(100vh - var(--headerH));
        min-height: calc(100svh - var(--headerH));
        padding-bottom: clamp(60px, 4.6vw, 92px);
    }
    .heroCopy { padding-left: clamp(24px, 8.2vw, 164px); }
    .heroSideR { right: clamp(10px, 6vw, 140px); }
    .titleRow { font-size: clamp(42px, 6.9vw, 108px); }
    .heroLead { margin-top: 22px; font-size: 16px; max-width: 500px; }
    .heroActions { margin-top: 26px; }
    .heroActions .btnPrimary,
    .heroActions .btnGhost { padding-top: 11px; padding-bottom: 11px; font-size: 15px; }
    .heroStats { margin-top: 30px; gap: 22px; }
    .heroStat b { font-size: 28px; }
    .heroStatDiv { height: 28px; }
    .character { height: min(790px, calc(100svh - 120px)); }

    /* at 720px wide the dialog filled ~88% of a 1080p screen - pull it in */
    .modalRoot { padding: 40px 24px; }
    .modalDialog,
    .modalBody { max-height: calc(100vh - 80px); }
    .modalDialog { max-width: 600px; }
    .modalBanner { aspect-ratio: 16 / 5.6; }
    .modalInfo { padding: 20px 28px 28px; }
    .modalTitle { font-size: 34px; }
    .modalDesc { margin-top: 16px; font-size: 14.5px; }
    .modalSpecs { margin-top: 18px; }
    .archiveBox { margin-top: 18px; padding: 14px; flex-wrap: wrap; gap: 12px; }
    .archiveMain { flex-basis: calc(100% - 56px); }
    .archiveValue { font-size: 17px; }
    .archiveCopy { width: 100%; justify-content: center; }
    .specItem { padding: 11px 14px; }
    .modalActions { padding: 14px 0 18px; }
}

@media (max-width: 1200px) {
    :root { --heroH: 840px; }
    nav { gap: 26px; }
    .navLink { font-size: 16px; }
    .side { width: auto; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bentoWide { grid-column: span 2; }
    .catalogGrid { grid-template-columns: repeat(3, 1fr); }
    .statsRow { grid-template-columns: repeat(2, 1fr); }
    .faqGrid { grid-template-columns: 1fr; gap: 44px; }
    .aboutGrid { grid-template-columns: 1fr; gap: 34px; }
    .footerTop { grid-template-columns: 1fr; gap: 46px; }
    .heroSideR { right: 0; }
    .character { height: 660px; }
    .heroLead { max-width: 460px; }
}

@media (max-width: 1000px) {
    nav { display: none; }
    .sideR .catalogBtn { display: none; }
    .burger { display: flex; }
    .stepsGrid { grid-template-columns: 1fr; }
    .stepsLine { display: none; }
    .catalogGrid { grid-template-columns: repeat(2, 1fr); }
    .heroSideR {
        right: -60px;
        opacity: .38;
    }
    /* copy spans the full width here, so the scrim has to cover it all */
    .heroSide:not(.heroSideR)::before {
        right: -50vw;
        background: linear-gradient(90deg,
            rgba(4, 14, 25, .92) 0%,
            rgba(4, 14, 25, .86) 55%,
            rgba(4, 14, 25, .74) 100%);
    }
    .heroVignette {
        background:
            radial-gradient(130% 100% at 30% 55%, rgba(4, 14, 25, .9) 0%, rgba(4, 14, 25, .4) 50%, transparent 78%),
            linear-gradient(180deg, rgba(4, 14, 25, .6) 0%, transparent 30%);
    }
}

@media (max-width: 760px) {
    :root { --heroH: 760px; --headerH: 72px; }
    .container { padding: 0 20px; }
    .headerInner { padding: 0 20px; }
    .logo { font-size: 26px; }
    .heroCopy { padding-left: 20px; padding-right: 20px; }
    .heroLead { font-size: 16px; margin-top: 22px; }
    .heroStats { margin-top: 32px; gap: 18px; flex-wrap: wrap; }
    .heroStat b { font-size: 26px; }
    .heroStatDiv { display: none; }
    .about { padding-top: 90px; }
    .statsRow { margin-top: 60px; }
    .features { padding: 90px 0 80px; }
    .steps { padding: 90px 0; }
    .faq { padding-bottom: 90px; }
    .cta { padding-bottom: 90px; }
    .sectionHead { margin-bottom: 44px; }
    .bento { grid-template-columns: 1fr; }
    .bentoWide { grid-column: span 1; }
    .catalogGrid { grid-template-columns: 1fr; gap: 18px; }
    .catalogSearch { flex-basis: 100%; }
    .catalogTab { padding: 8px 14px; }
    .ctaCard { padding: 56px 22px 52px; border-radius: 24px; }
    .modalRoot { padding: 12px; }
    .modalDialog { max-height: calc(100vh - 24px); border-radius: 20px; }
    .modalBody { max-height: calc(100vh - 24px); }
    .modalInfo { padding: 22px 20px 28px; }
    .modalBanner { aspect-ratio: 16 / 8; }
    .modalTitle { font-size: 32px; }
    .footerCols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
    .toTop { right: 16px; bottom: 16px; }
    .toastWrap { right: 12px; left: 12px; bottom: 12px; }
}

@media (max-width: 460px) {
    .titleRow.shifted { padding-left: 14px; }
    .heroActions .btnPrimary,
    .heroActions .btnGhost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; filter: none; transform: none; }
}
