:root {
  --bg: #05060f;
  --bg-2: #0a0c1b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eceefb;
  --muted: #8f94b2;
  --dim: #5b6080;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --moon: #f6ecc9;
  --grad: linear-gradient(100deg, #c4b5fd 0%, #818cf8 35%, #22d3ee 70%, #a5f3fc 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite; }
@keyframes gradShift { 50% { background-position: 100% 0; } }

/* ---------- Global FX ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.noise { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .13), transparent 60%); pointer-events: none; z-index: 1;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0); transition: opacity .4s; }
@media (hover: none) { .cursor-glow { display: none; } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
main, footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, width .5s var(--ease), top .4s; }
.nav.scrolled { background: rgba(10, 12, 27, .62); border-color: var(--border); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); width: min(920px, calc(100% - 24px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-moon { width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 35% 35%, #fffbe8, var(--moon) 45%, #c9b98a 100%); box-shadow: 0 0 18px rgba(246, 236, 201, .5); }
.brand-moon::after { content: ""; position: absolute; inset: -2px -2px -2px 6px; border-radius: 50%; background: var(--bg); transform: translateX(6px); opacity: .9; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface-2); border: 1px solid var(--border); z-index: -1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
.nav.open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s, background .3s; will-change: transform; }
.btn-primary { color: #0b0c18; background: linear-gradient(180deg, #fff, #dcdcf5); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 40px -10px rgba(129, 140, 248, .8); overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.8) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 16px 50px -10px rgba(129, 140, 248, 1); }
.btn-ghost { border: 1px solid var(--border-2); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; isolation: isolate; }
.grid-bg { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float 18s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 45vw; height: 45vw; left: 10%; top: 10%; background: #4c1d95; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 8%; top: 25%; background: #0e7490; animation-delay: -6s; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 40%; bottom: 5%; background: #312e81; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6%, -8%) scale(1.1); } 66% { transform: translate(-5%, 6%) scale(.92); } }
.spotlight { position: absolute; z-index: -1; top: -30%; left: -10%; width: 70%; height: 140%; pointer-events: none;
  background: conic-gradient(from 200deg at 0% 0%, transparent 0deg, rgba(196, 181, 253, .16) 18deg, transparent 40deg);
  filter: blur(18px); opacity: 0; animation: spot 2.4s .4s var(--ease) forwards; }
@keyframes spot { from { opacity: 0; transform: translate(-10%, -10%); } to { opacity: 1; transform: none; } }

.moon-wrap { position: absolute; right: -6vw; top: 10%; width: min(600px, 48vw); aspect-ratio: 1; z-index: -1; will-change: transform; }
.moon { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 30%, #fffdf2 0%, #f3e8c4 30%, #c8b789 65%, #6c6146 100%);
  box-shadow: 0 0 80px 10px rgba(246, 236, 201, .25), 0 0 220px 40px rgba(129, 140, 248, .18), inset -40px -30px 80px rgba(20, 16, 40, .65);
  animation: moonIn 2s var(--ease) both; }
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 75% 70%, rgba(5, 6, 15, .65), transparent 55%); }
.crater { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(90, 80, 55, .35), rgba(120, 108, 75, .15) 60%, transparent 70%); box-shadow: inset 2px 3px 6px rgba(60, 50, 30, .35); }
.c1 { width: 22%; height: 22%; left: 22%; top: 40%; } .c2 { width: 12%; height: 12%; left: 55%; top: 22%; }
.c3 { width: 16%; height: 16%; left: 50%; top: 58%; } .c4 { width: 8%; height: 8%; left: 30%; top: 20%; }
@keyframes moonIn { from { opacity: 0; transform: scale(.85) translateY(30px); filter: blur(10px); } }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .08); animation: spin 40s linear infinite; }
.orbit.o2 { inset: -12%; animation-duration: 70s; animation-direction: reverse; border-style: solid; border-color: rgba(129, 140, 248, .08); }
.orbit span { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px 4px rgba(34, 211, 238, .6); }
.orbit.o2 span { background: #c4b5fd; box-shadow: 0 0 16px 4px rgba(196, 181, 253, .6); left: auto; right: 12%; top: 12%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; color: #cfd2ec;
  background: rgba(255,255,255,.04); border: 1px solid transparent; position: relative; backdrop-filter: blur(8px);
  background-clip: padding-box; opacity: 0; animation: up .9s .1s var(--ease) forwards; }
.badge::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), rgba(255,255,255,.08), #818cf8, #22d3ee, rgba(255,255,255,.08) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 4s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rot { to { --a: 360deg; } }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.badge-arrow { transition: transform .3s; } .badge:hover .badge-arrow { transform: translateX(3px); }

.hero-title { margin: 28px 0 22px; font-size: clamp(44px, 8.2vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .w { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(8px); animation: wordIn 1s var(--ease) forwards; }
@keyframes wordIn { to { transform: none; opacity: 1; filter: none; } }
/* background-clip:text breaks on transformed children, so clip each word instead */
.hero-title .grad { background: none; color: inherit; animation: none; }
.hero-title .grad .w { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hero-sub { max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 36px; opacity: 0; animation: up 1s .9s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: up 1s 1.05s var(--ease) forwards; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: rgba(10, 12, 27, .45); backdrop-filter: blur(12px); overflow: hidden; opacity: 0; animation: up 1s 1.25s var(--ease) forwards; max-width: 900px; }
.stat { padding: 22px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 1.5px solid var(--border-2); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee-sec { padding: 40px 0; display: grid; gap: 18px; border-block: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .04), transparent); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scrollX 40s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; font-weight: 600; transition: border-color .3s, background .3s; }
.mq-item:hover { border-color: var(--border-2); background: var(--surface-2); }
.mq-item img { width: 44px; height: 44px; border-radius: 12px; }
.mq-item small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc; }
.sec-title { margin: 14px 0 16px; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.sec-sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); max-width: 640px; }

.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Cards / bento ---------- */
.card { position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); padding: 28px; overflow: hidden; isolation: isolate; }
.glow-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, .16), transparent 45%); }
.glow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(165, 180, 252, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }
.card h3 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(129,140,248,.25), rgba(129,140,248,.05)); border: 1px solid rgba(129,140,248,.3); }
.card-ico svg { width: 22px; height: 22px; fill: none; stroke: #c7d2fe; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b-wide { grid-column: span 2; }
.bento .card { min-height: 260px; }
.orbit-visual { position: absolute; right: -60px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); }
.ov-core { position: absolute; inset: 42%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--moon) 50%, #b7a678); box-shadow: 0 0 40px rgba(246,236,201,.5); }
.ov-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(165,180,252,.18); animation: spin 14s linear infinite; }
.ov-ring.r1 { inset: 28%; } .ov-ring.r2 { inset: 14%; animation-duration: 22s; animation-direction: reverse; } .ov-ring.r3 { inset: 0; animation-duration: 34s; }
.ov-ring i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.ov-ring.r2 i { background: #c4b5fd; box-shadow: 0 0 12px #c4b5fd; }
.b-wide > p, .b-wide > h3 { max-width: 52%; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 24px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #818cf8, rgba(129,140,248,.15)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.reveal.in .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .08s; } .bars i:nth-child(3) { transition-delay: .16s; } .bars i:nth-child(4) { transition-delay: .24s; } .bars i:nth-child(5) { transition-delay: .32s; } .bars i:nth-child(6) { transition-delay: .4s; background: linear-gradient(180deg, #22d3ee, rgba(34,211,238,.15)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: #c7cae6; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
.steps div { position: relative; display: grid; gap: 10px; justify-items: start; }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border-2); color: #a5b4fc; }
.steps span { font-size: 14px; color: var(--muted); }
.steps div:hover b { border-color: #818cf8; box-shadow: 0 0 18px rgba(129,140,248,.5); color: #fff; }

/* ---------- Games ---------- */
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 32px; flex-wrap: wrap; }
.filters button { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .3s, color .3s; }
.filters button.active { background: var(--text); color: #0b0c18; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.game { position: relative; border-radius: 26px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); overflow: hidden; cursor: pointer; isolation: isolate;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease), border-color .3s, opacity .5s, scale .5s; }
.game:hover { border-color: var(--border-2); }
.game.hide { display: none; }
.game-visual { position: relative; height: 300px; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.game-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 20, .95)); }
.phones { position: absolute; inset: 24px 0 0; display: flex; justify-content: center; gap: 12px; transform: translateZ(40px); }
.phones img { width: 128px; height: auto; border-radius: 16px; border: 3px solid #14162a; box-shadow: 0 20px 40px rgba(0,0,0,.5); transition: transform .7s var(--ease); }
.phones img:nth-child(1) { transform: translateY(28px) rotate(-8deg); }
.phones img:nth-child(2) { z-index: 1; transform: translateY(0); }
.phones img:nth-child(3) { transform: translateY(28px) rotate(8deg); }
.game:hover .phones img:nth-child(1) { transform: translate(-14px, 16px) rotate(-12deg); }
.game:hover .phones img:nth-child(2) { transform: translateY(-12px) scale(1.04); }
.game:hover .phones img:nth-child(3) { transform: translate(14px, 16px) rotate(12deg); }
.game-body { position: relative; padding: 0 22px 22px; margin-top: -34px; z-index: 2; transform: translateZ(30px); }
.game-top { display: flex; gap: 14px; align-items: center; }
.game-top img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.game-top h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.game-top .tag { font-size: 12px; color: var(--muted); }
.game p { margin: 14px 0 16px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; }
.meta span { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.meta .star { color: #fcd34d; }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.game-more { font-size: 13px; color: #c7d2fe; display: inline-flex; align-items: center; gap: 6px; }
.game-more::after { content: "→"; transition: transform .3s; } .game:hover .game-more::after { transform: translateX(4px); }
.game .shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 40%); }
.game:hover .shine { opacity: 1; }
.game.featured { grid-column: span 2; }
.game.featured .game-visual { height: 340px; }
.game.featured .phones img { width: 150px; }

/* ---------- Showcase ---------- */
.showcase { position: relative; padding: 60px 0 0; overflow: hidden; }
.showcase-head { margin-bottom: 40px; }
.showcase-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; height: 110vh; padding: 0 16px; max-width: 1280px; margin: 0 auto; transform: perspective(1400px) rotateX(18deg) rotateZ(-7deg) scale(1.04); transform-origin: 50% 30%;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent); }
.scol { display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.scol img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.scol:nth-child(even) { margin-top: -160px; }

/* ---------- Company doc ---------- */
.doc { border-radius: 26px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(15, 17, 36, .85), rgba(10, 12, 27, .85)); backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(99, 102, 241, .35); }
.doc-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.doc-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-status { display: inline-flex; align-items: center; gap: 8px; color: #6ee7b7; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.doc-body { padding: clamp(22px, 4vw, 44px); }
.doc-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-2); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mst { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-family: var(--mono); font-size: clamp(30px, 5vw, 54px); font-weight: 500; letter-spacing: .04em; }
.mst span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; color: var(--muted); transition: all .25s; display: grid; place-items: center; }
.copy:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.seal { position: relative; width: 120px; height: 120px; flex: none; color: #a5b4fc; }
.seal svg { width: 100%; height: 100%; animation: spin 20s linear infinite; }
.seal text { font-family: var(--mono); font-size: 8.4px; letter-spacing: 2.4px; fill: currentColor; }
.seal > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; color: var(--moon); text-shadow: 0 0 20px rgba(246, 236, 201, .6); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.kv div { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; padding-right: 20px; }
.kv div.full { grid-column: 1 / -1; }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-size: 13px; color: var(--dim); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: clamp(24px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, .18), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, .12), transparent 50%), rgba(10, 12, 27, .7); }
.beam { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #818cf8, #22d3ee, transparent); animation: beam 5s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: translateX(-60%); opacity: .2; } 50% { transform: translateX(60%); opacity: 1; } }
.contact-list { display: grid; gap: 10px; margin-top: 32px; }
.ct-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), border-color .3s, background .3s; min-width: 0; }
.ct-item:hover { transform: translateX(6px); border-color: var(--border-2); background: var(--surface-2); }
.ct-item > span:nth-child(2) { flex: 1; min-width: 0; }
.ct-item small { display: block; font-size: 12px; color: var(--dim); }
.ct-item b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.ct-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(34,211,238,.2), rgba(34,211,238,.04)); border: 1px solid rgba(34,211,238,.25); }
.ct-ico svg { width: 20px; height: 20px; fill: none; stroke: #a5f3fc; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map { position: relative; height: 100%; min-height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(195deg) saturate(.7) brightness(.9) contrast(.95); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; pointer-events: none; }
.map-pin span, .map-pin::before { position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.map-pin::before { content: ""; animation: ping 2s infinite; }
@keyframes ping { to { transform: scale(4); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 30px; border-top: 1px solid var(--border); overflow: hidden; }
.foot-big { font-size: clamp(48px, 14vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: .9; text-align: center; margin-bottom: 40px;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot-legal { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: var(--dim); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; pointer-events: none; visibility: hidden; }
.modal.open { pointer-events: auto; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, .7); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; width: min(900px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(20px, 4vw, 36px); border-radius: 28px; border: 1px solid var(--border-2);
  background: linear-gradient(180deg, #11132a, #0a0c1b); box-shadow: 0 40px 120px rgba(0,0,0,.6); opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); overscroll-behavior: contain; }
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); transition: transform .3s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-head { display: flex; gap: 18px; align-items: center; padding-right: 40px; }
.modal-head img { width: 84px; height: 84px; border-radius: 22px; }
.modal-head h3 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
#mDesc { color: var(--muted); margin: 20px 0; }
.m-shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 22px; scroll-snap-type: x mandatory; }
.m-shots img { height: 380px; width: auto; border-radius: 16px; border: 1px solid var(--border); scroll-snap-align: start; flex: none; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; padding: 10px 18px; border-radius: 999px; background: var(--text); color: #0b0c18; font-weight: 600; font-size: 14px; transform: translate(-50%, 80px); transition: transform .45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game.featured.last { grid-column: auto; }
  .game.featured.last .game-visual { height: 300px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .showcase-cols { grid-template-columns: repeat(4, 1fr); }
  .scol:nth-child(5) { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; top: 72px; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(10, 12, 27, .96); border: 1px solid var(--border); backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .burger { display: block; }
  .nav.scrolled { width: calc(100% - 24px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .contact-wrap { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .moon-wrap { width: 90vw; right: -35vw; top: 6%; opacity: .55; }
}
@media (max-width: 640px) {
  .games-grid, .bento { grid-template-columns: 1fr; }
  .b-wide, .game.featured { grid-column: auto; }
  .b-wide > p, .b-wide > h3 { max-width: none; }
  .orbit-visual { display: none; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .steps span { font-size: 12px; }
  .kv { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters button { flex: none; padding: 8px 13px; }
  .seal { width: 84px; height: 84px; }
  .doc-hero { align-items: flex-start; }
  .showcase-cols { grid-template-columns: repeat(3, 1fr); height: 90vh; gap: 10px; }
  .scol { gap: 10px; }
  .scol img { border-radius: 12px; }
  .scol:nth-child(4) { display: none; }
  .phones img, .game.featured .phones img { width: 112px; }
  .game-visual, .game.featured .game-visual { height: 260px; }
  .m-shots img { height: 300px; }
  .hero { padding-top: 120px; }
  .stats { margin-top: 48px; }
  .stat { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 480px) {
  .nav { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-moon { width: 22px; height: 22px; }
  .nav-actions { gap: 6px; }
  .burger { width: 36px; height: 36px; }
  .burger span { left: 10px; right: 10px; }
  .burger span:first-child { top: 14px; } .burger span:last-child { top: 20px; }
}
@media (max-width: 360px) {
  .nav .brand-moon { display: none; }
  .brand { font-size: 13px; }
}

/* ---------- Contact form ---------- */
.cform { display: grid; gap: 14px; margin-top: 32px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.035); outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f94b2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: #11132a; color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #818cf8; background: rgba(129,140,248,.06); box-shadow: 0 0 0 4px rgba(129,140,248,.15); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fbottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cform .btn[disabled] { opacity: .7; cursor: progress; }
.fstatus { margin: 0; font-size: 14px; flex: 1; min-width: 200px; }
.fstatus.success { color: #6ee7b7; }
.fstatus.error { color: #fca5a5; }
.falt { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.falt a { color: var(--muted); border-bottom: 1px dashed var(--border-2); }
.falt a:hover { color: var(--text); }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; } }

/* ---------- Store buttons ---------- */
.badge-apple { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #0b0c18; }
.badge-apple svg { width: 13px; height: 13px; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.store-btn { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 12px; line-height: 1.1; white-space: nowrap; transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.store-btn svg { width: 20px; height: 20px; flex: none; }
.store-btn small { display: block; font-size: 10px; letter-spacing: .02em; opacity: .75; }
.store-btn b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.store-btn.ios { background: #fff; color: #000; box-shadow: 0 8px 28px -10px rgba(255,255,255,.55); }
a.store-btn.ios:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(255,255,255,.75); }
.store-btn.ios.soon { background: linear-gradient(180deg, #fff, #e4e4f2); cursor: default; }
.store-btn.ios.soon b { font-size: 14px; }
.store-btn.gp { border: 1px solid var(--border-2); background: rgba(255,255,255,.03); color: var(--muted); padding-block: 6px; }
.store-btn.gp svg { width: 16px; height: 16px; }
.store-btn.gp b { font-size: 13px; font-weight: 500; }
.store-btn.gp:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.store-btn.big { padding: 12px 22px 12px 16px; border-radius: 16px; }
.store-btn.big svg { width: 28px; height: 28px; }
.store-btn.big small { font-size: 12px; }
.store-btn.big b { font-size: 19px; }
.m-stores { margin: 0; }
.game .stores { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- iOS section ---------- */
.ios { overflow: hidden; }
.ios-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.ios .sec-head { margin-bottom: 36px; }
.ios-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ios-feat { display: flex; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.ios-feat h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.ios-feat p { margin: 0; font-size: 14px; color: var(--muted); }
.if-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--border-2); }
.if-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ios-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.ios-visual { position: relative; height: 640px; display: grid; place-items: center; }
.ios-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(129,140,248,.35), rgba(34,211,238,.12) 45%, transparent 70%); filter: blur(30px); }
.iphone { position: relative; width: 290px; aspect-ratio: 9 / 19.3; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #3a3d52, #15172a 40%, #2a2d42); box-shadow: 0 0 0 2px #4b4e66, 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 6px rgba(255,255,255,.15); animation: phoneFloat 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.iphone-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #000; }
.iphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 2.6s ease-out; }
.iphone-screen img.on { opacity: 1; transform: scale(1); }
.island { position: absolute; top: 22px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.float-icons img { position: absolute; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); animation: iconFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); transition: box-shadow .5s, scale .5s; }
.float-icons img.on { box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 2px #fff, 0 0 30px rgba(165,180,252,.7); scale: 1.12; }
.float-icons img:nth-child(1) { left: 4%; top: 12%; }
.float-icons img:nth-child(2) { right: 4%; top: 8%; width: 56px; height: 56px; }
.float-icons img:nth-child(3) { left: 0; top: 46%; width: 52px; height: 52px; }
.float-icons img:nth-child(4) { right: 0; top: 40%; }
.float-icons img:nth-child(5) { left: 8%; bottom: 10%; width: 58px; height: 58px; }
.float-icons img:nth-child(6) { right: 8%; bottom: 14%; width: 52px; height: 52px; }
.float-icons img:nth-child(7) { left: 50%; bottom: 0; margin-left: -26px; width: 52px; height: 52px; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 1024px) {
  .ios-grid { grid-template-columns: 1fr; gap: 20px; }
  .ios-visual { height: 560px; order: -1; }
}
@media (max-width: 640px) {
  .ios-feats { grid-template-columns: 1fr; }
  .ios-visual { height: 470px; }
  .iphone { width: 220px; border-radius: 40px; padding: 9px; }
  .iphone-screen { border-radius: 32px; }
  .island { top: 17px; width: 70px; height: 21px; margin-left: -35px; }
  .float-icons img { width: 48px !important; height: 48px !important; border-radius: 12px; }
}
.meta .new { color: #6ee7b7; }
