:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(17, 25, 44, .72);
  --line: rgba(120, 150, 210, .16);
  --text: #eef3ff;
  --muted: #95a3c0;
  --accent: #3d8bff;
  --accent-2: #7cc4ff;
  --violet: #8a5cff;
  --pink: #ff5ca8;
  --radius: 16px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-2); }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.05; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 14px; }
.grad { background: linear-gradient(90deg, var(--accent-2), var(--violet) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px var(--display); letter-spacing: .02em; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-weight: 800; box-shadow: 0 0 24px rgba(61, 139, 255, .45); }
nav { display: flex; gap: 26px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }
nav .pill { color: #fff; padding: 8px 16px; border-radius: 999px; background: rgba(61, 139, 255, .18); border: 1px solid rgba(61, 139, 255, .45); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #5b6dff); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(61, 139, 255, .35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(61, 139, 255, .5); }
.btn.ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 3D stages */
.stage { position: relative; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: opacity 1s; }
.stage.is-3d .fallback { opacity: 0; }
.vignette::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 60% 45%, transparent 45%, rgba(5, 7, 13, .85) 100%); }

/* home hero */
.hero { height: 100vh; min-height: 640px; background: radial-gradient(900px 600px at 68% 55%, #10204a 0%, var(--bg) 70%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hero-copy .inner { max-width: 560px; pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); margin: 0; }
.hero .lead { color: #cbd5ea; font-size: clamp(17px, 1.6vw, 20px); max-width: 480px; margin: 22px 0 0; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--accent-2), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.tag3d { position: absolute; z-index: 2; right: 24px; bottom: 26px; color: var(--muted); font-size: 12px; max-width: 260px; text-align: right; }

/* sections */
section { position: relative; }
.sec { padding: 120px 0 40px; }
.sec h2 { font-size: clamp(34px, 4.6vw, 60px); margin: 0 0 18px; }
.sec .sub { color: var(--muted); max-width: 640px; font-size: 18px; margin: 0; }

/* feature game */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: 50px; }
.feature .media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(61, 139, 255, .08); transform: perspective(1200px) rotateY(6deg) rotateX(2deg); transition: transform .6s; }
.feature .media:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.feature .media img { width: 100%; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(61, 139, 255, .18); border: 1px solid rgba(61, 139, 255, .45); color: var(--accent-2); font-size: 13px; font-weight: 700; }
.feature h3 { font-size: clamp(30px, 3.4vw, 46px); margin: 14px 0 12px; }
.feature p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font: 700 30px var(--display); }
.stat span { color: var(--muted); font-size: 14px; }

.marquee { margin-top: 90px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .row { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee img { width: 420px; height: 236px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.card { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .35s, border-color .35s, box-shadow .35s; transform-style: preserve-3d; }
a.card:hover { border-color: rgba(61, 139, 255, .5); box-shadow: 0 24px 60px rgba(61, 139, 255, .18); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: #0b1222; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; top: 14px; left: 14px; }
.soon-img { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #0b1324 0 16px, #0e172b 16px 32px); }
.soon-img b { font: 800 72px var(--display); color: #22325a; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin: 0 0 8px; font-size: 24px; }
.card-body p { margin: 0 0 12px; color: var(--muted); }
.more { color: var(--accent-2); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.contact-box a.mail { font: 700 clamp(22px, 2.6vw, 32px) var(--display); text-decoration: none; }

.foot { margin-top: 120px; padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* game page */
.game-hero { height: 92vh; min-height: 600px; display: grid; align-items: end; }
.game-hero .bg { position: absolute; inset: -8% 0 0 0; background: url("/img/storefront.jpg") center 42% / cover no-repeat; will-change: transform; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 13, .25) 0%, rgba(5, 7, 13, .5) 45%, var(--bg) 100%); }
.game-hero .inner { position: relative; z-index: 1; padding-bottom: 70px; max-width: 720px; }
.game-hero h1 { font-size: clamp(46px, 7vw, 92px); margin: 0; }
.game-hero .lead { color: #d3dcef; font-size: clamp(17px, 1.8vw, 21px); }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.build { height: 640vh; }
.build .pin { position: sticky; top: 0; height: 100vh; }
.build .pin.stage { background: radial-gradient(900px 600px at 55% 60%, #0f1d42 0%, var(--bg) 72%); }
.build-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.build-copy .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.build-copy h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 0 0 10px; max-width: 440px; }
.build-copy .sub { color: var(--muted); max-width: 380px; margin: 0 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 280px; }
.steps li { display: flex; align-items: center; gap: 12px; color: #5d6b8a; font-weight: 600; transition: color .3s, transform .3s; }
.steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #33415f; transition: all .3s; }
.steps li.done { color: #aab7d3; }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
.steps li.now { color: #fff; transform: translateX(6px); }
.steps li.now::before { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
.build-meter { position: absolute; z-index: 2; right: 26px; top: 50%; transform: translateY(-50%); width: 3px; height: 180px; background: rgba(255, 255, 255, .08); border-radius: 3px; }
.build-meter i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(var(--accent-2), var(--violet)); border-radius: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 40px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .3s, border-color .3s; }
.grid article:hover { transform: translateY(-4px); border-color: rgba(61, 139, 255, .45); }
.grid h3 { margin: 0 0 8px; font-size: 20px; }
.grid p { margin: 0; color: var(--muted); font-size: 16px; }
.grid .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(61, 139, 255, .14); color: var(--accent-2); font-weight: 800; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 40px; }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: none; cursor: zoom-in; }
.shots img { width: 100%; height: auto; transition: transform .5s; }
.shots button:hover img { transform: scale(1.04); }
.clips { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.clips figure { margin: 0; width: min(300px, 100%); }
.clips video { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.clips figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.specs ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }
.buy-band { margin-top: 110px; border-radius: 24px; padding: 54px 40px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgba(61, 139, 255, .28), transparent), var(--panel); border: 1px solid var(--line); }
.buy-band h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 50px); }
.buy-band p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.buy-band .cta { justify-content: center; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(3, 5, 10, .92); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee .row { animation: none; } }

@media (max-width: 860px) {
  nav a:not(.pill) { display: none; }
  .feature, .split { grid-template-columns: 1fr; }
  .feature .media { transform: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-copy { top: auto; bottom: 90px; transform: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .tag3d { display: none; }
  .build-copy .wrap { justify-content: flex-end; padding-bottom: 40px; }
  .build-copy h2, .build-copy .sub { display: none; }
  .steps { grid-template-columns: 1fr 1fr; max-width: none; background: rgba(5, 7, 13, .7); padding: 14px; border-radius: 14px; backdrop-filter: blur(8px); }
  .build-meter { display: none; }
  .marquee img { width: 280px; height: 158px; }
  .sec { padding-top: 90px; }
}
