/* ============================================================
   XENTORY — landing styles
   ============================================================ */

:root {
  --bg: #05060b;
  --bg-2: #0a0c16;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f8;
  --muted: #9aa0b8;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --green: #4ade80;
  --orange: #fb923c;
  --grad: linear-gradient(90deg, #a855f7, #22d3ee);
  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet-deep), #0e7490);
  border-radius: 8px;
  border: 2px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ background layers ============ */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -12%; left: -6%; background: #7c3aed; animation: orbFloat 22s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; top: 28%; right: -10%; background: #0891b2; animation: orbFloat 26s ease-in-out -6s infinite alternate-reverse; }
.orb-3 { width: 420px; height: 420px; bottom: -18%; left: 32%; background: #c026d3; opacity: 0.2; animation: orbFloat 30s ease-in-out -12s infinite alternate; }

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, 50px) scale(1.15); }
}

.grid-floor {
  position: fixed;
  left: -25%;
  right: -25%;
  bottom: -12vh;
  height: 46vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: perspective(340px) rotateX(58deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 5%, transparent 80%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 5%, transparent 80%);
  opacity: 0.55;
}
/* transform-only animation = GPU compositing, no repaints */
.grid-floor::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -60px; bottom: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 3.4s linear infinite;
  will-change: transform;
}

@keyframes gridScroll {
  to { transform: translateY(60px); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 300;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ============ nav ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* free announcement bar */
.topbar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #7c3aed, #0ea5e9);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.topbar-text { position: relative; z-index: 1; }
.topbar strong {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 9px;
  border-radius: 6px;
  margin-right: 4px;
}
.topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: topbarShine 4.5s ease-in-out infinite;
}
@keyframes topbarShine {
  0%   { transform: translateX(-130%); }
  55%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 2.5px;
}
.brand-text em {
  font-style: normal;
  font-weight: 600;
  margin-left: 7px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex: none;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: dotRipple 1.8s ease-out infinite;
}
@keyframes dotRipple {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ buttons ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px -8px rgba(124, 58, 237, 0.85);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.08);
}

.btn-sm { padding: 9px 16px; font-size: 12px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 17px 32px; font-size: 15px; border-radius: 14px; }

.btn-pulse { animation: btnPulse 2.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.65), 0 0 0 0 rgba(168, 85, 247, 0.4); }
  50%      { box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.65), 0 0 0 12px rgba(168, 85, 247, 0); }
}

/* ============ hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-spotlight {
  position: absolute;
  left: 0; top: 0;
  width: 640px; height: 640px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 62%);
  transform: translate3d(var(--sx, -9999px), var(--sy, -9999px), 0);
  will-change: transform;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: 1.04;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

/* glitch */
.glitch { position: relative; z-index: 0; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.glitch::before { color: var(--cyan); z-index: -1; }
.glitch::after  { color: #f472b6; z-index: -2; }

.glitch.glitching { animation: glitchSkew 0.35s steps(2, end) both; }
.glitch.glitching::before { opacity: 0.85; animation: glitchClipA 0.35s steps(3, end) both; }
.glitch.glitching::after  { opacity: 0.85; animation: glitchClipB 0.35s steps(3, end) both; }

@keyframes glitchSkew {
  0%   { transform: skewX(0deg); }
  30%  { transform: skewX(-4deg); }
  60%  { transform: skewX(3deg); }
  100% { transform: skewX(0deg); }
}
@keyframes glitchClipA {
  0%   { clip-path: inset(12% 0 58% 0); transform: translate(-4px, -2px); }
  33%  { clip-path: inset(64% 0 8% 0);  transform: translate(4px, 1px); }
  66%  { clip-path: inset(30% 0 42% 0); transform: translate(-3px, 2px); }
  100% { clip-path: inset(0 0 100% 0);  transform: translate(0); }
}
@keyframes glitchClipB {
  0%   { clip-path: inset(70% 0 4% 0);  transform: translate(4px, 2px); }
  33%  { clip-path: inset(8% 0 72% 0);  transform: translate(-4px, -1px); }
  66%  { clip-path: inset(46% 0 26% 0); transform: translate(3px, -2px); }
  100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; opacity: 0.8; }
.hero-trust .sep { opacity: 0.35; }
.hero-trust .trust-free { color: var(--green); font-weight: 600; }
.hero-trust .trust-free svg { width: 14px; height: 14px; opacity: 1; }

/* loader mockup window */
.loader-window {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 24, 42, 0.92), rgba(10, 12, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(124, 58, 237, 0.35);
  overflow: hidden;
}
.loader-window.visible { animation: lwFloat 7s ease-in-out 0.8s infinite; }
@keyframes lwFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.lw-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0%, rgba(168, 85, 247, 0.25) 12%, transparent 25%, transparent 50%, rgba(34, 211, 238, 0.2) 62%, transparent 75%);
  animation: lwSpin 9s linear infinite;
  filter: blur(30px);
  will-change: transform;
}
@keyframes lwSpin { to { transform: rotate(360deg); } }

.lw-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.lw-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.lw-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  transition: all 0.3s;
}
.lw-status.busy { border-color: rgba(251, 146, 60, 0.5); color: var(--orange); background: rgba(251, 146, 60, 0.1); animation: statusBlink 0.9s ease-in-out infinite; }
.lw-status.done { border-color: rgba(74, 222, 128, 0.5); color: var(--green); background: rgba(74, 222, 128, 0.1); }
@keyframes statusBlink { 50% { opacity: 0.55; } }

.lw-body { padding: 18px 18px 20px; }

.lw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lw-select {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.lw-select svg { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
.lw-game-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
}
.lw-ver { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.lw-progress {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}
.lw-bar {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c3aed, #22d3ee, #7c3aed);
  background-size: 200% 100%;
  animation: barFlow 1.6s linear infinite;
  transition: width 0.45s ease;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
@keyframes barFlow { to { background-position: -200% 0; } }

.lw-term {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  height: 148px;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}
.tl { display: block; white-space: pre-wrap; word-break: break-word; color: #b8bdd4; }
.tl .ok   { color: var(--green); }
.tl .warn { color: var(--orange); }
.tl .info { color: var(--cyan); }
.tl .fin  { color: #c4b5fd; font-weight: 600; }
.tl-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: cursorBlink 0.9s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.lw-inject {
  position: relative;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #0ea5e9);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.lw-inject::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: injectSweep 2.8s ease-in-out infinite;
}
.lw-inject-label { position: relative; z-index: 1; }
.lw-inject:hover { filter: brightness(1.15); transform: translateY(-1px); }
.lw-inject:active { transform: scale(0.98); }
.lw-inject.flash { animation: injectFlash 0.5s ease; }
@keyframes injectSweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes injectFlash {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  100% { box-shadow: 0 0 0 22px rgba(34, 211, 238, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.scroll-hint:hover { opacity: 1; }
.mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 13px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  animation: wheelDrop 1.8s ease-in-out infinite;
}
@keyframes wheelDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ marquee ============ */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ============ stats ============ */

.stats { padding: 64px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center;
  padding: 28px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.stat:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}

/* ============ sections ============ */

.section { padding: 96px 0; contain: layout style; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--cyan);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: 1px;
  margin: 12px 0 14px;
}
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ============ games ============ */

.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.game-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.7s ease var(--d, 0ms), transform 0.25s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-card.reveal { opacity: 0; transform: translateY(26px); }
.game-card.reveal.visible {
  opacity: 1;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition-delay: 0ms, 0ms, 0ms, 0ms;
}
.game-card:hover {
  --ty: -6px;
  border-color: rgba(168, 85, 247, 0.45);
  border-color: color-mix(in srgb, var(--g1) 55%, transparent);
  box-shadow: 0 22px 50px -20px rgba(124, 58, 237, 0.4);
  box-shadow: 0 22px 50px -20px color-mix(in srgb, var(--g1) 60%, transparent);
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}
.game-card:hover::after { transform: translateX(130%); }

.game-art {
  position: relative;
  height: 128px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: inset 0 -34px 44px -22px rgba(0, 0, 0, 0.55);
}
.game-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 14px);
}
.game-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.3), transparent 55%);
}
.game-art img {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  max-width: 76%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}
.game-card:hover .game-art img { transform: scale(1.08); }
.game-art.logo-ok .game-fallback { display: none; }
.game-art .game-fallback {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease;
}
.game-card:hover .game-art .game-fallback { transform: scale(1.12); }

.game-meta { padding: 14px 16px 16px; }
.game-meta h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.game-meta p { font-size: 12px; color: var(--muted); margin-top: 3px; }

.badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(5, 6, 11, 0.72);
  border: 1px solid;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-green { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }
.badge-orange { color: var(--orange); border-color: rgba(251, 146, 60, 0.4); }
.badge-blue { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }

.games-more { text-align: center; margin-top: 36px; color: var(--muted); font-size: 14px; }
.games-more a { color: var(--cyan); font-weight: 600; }
.games-more a:hover { text-decoration: underline; }

/* ============ features ============ */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.05);
  box-shadow: 0 24px 50px -24px rgba(124, 58, 237, 0.45);
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 20px;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 24px -6px rgba(168, 85, 247, 0.4);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============ steps ============ */

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps-track::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), rgba(34, 211, 238, 0.55), transparent);
}
.step { position: relative; text-align: center; }
.step-num {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #1c1f36, #0b0d18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 34px -6px rgba(168, 85, 247, 0.5), inset 0 0 20px rgba(168, 85, 247, 0.12);
  position: relative;
  z-index: 1;
}
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); max-width: 290px; margin: 0 auto; line-height: 1.7; }

/* ============ faq ============ */

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item.open { border-color: rgba(168, 85, 247, 0.45); background: rgba(168, 85, 247, 0.04); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.3s ease, color 0.3s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--violet); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ============ final cta ============ */

.cta-section { padding-bottom: 110px; }
.cta-panel {
  position: relative;
  text-align: center;
  padding: 76px 32px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(124, 58, 237, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
/* pre-blurred glow layer, animated via transform/opacity only */
.cta-panel::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.25), transparent 55%);
  filter: blur(40px);
  animation: ctaBreath 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.cta-panel > * { position: relative; z-index: 1; }
@keyframes ctaBreath {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 0.95; transform: scale(1.08); }
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 1px;
}
.cta-panel > p { color: var(--muted); max-width: 460px; margin: 16px auto 32px; font-size: 15.5px; }
.cta-note {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
}

/* ============ footer ============ */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 11, 0.65);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 6px; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { max-width: 340px; text-align: right; }
.footer-legal p { font-size: 12px; color: var(--muted); opacity: 0.75; line-height: 1.65; }
.footer-legal p + p { margin-top: 8px; }

/* ============ toast ============ */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 13px;
  background: rgba(12, 14, 26, 0.96);
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(74, 222, 128, 0.3);
  font-size: 14px;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.35s ease;
}
.toast svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 130px; }
  .hero-sub { max-width: 600px; }
  .loader-window { max-width: 560px; margin: 0 auto; width: 100%; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: 1fr; gap: 44px; }
  .steps-track::before { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal { text-align: center; }
  .scroll-hint { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 92px;
    left: 12px; right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(8, 10, 18, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 11px 12px; border-radius: 9px; font-size: 15px; }
  .nav-links a:hover { background: rgba(168, 85, 247, 0.1); }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .status-pill { display: none; }
  .topbar { font-size: 10.5px; padding: 6px 10px; letter-spacing: 1.1px; }
  /* mobile: drop expensive blur/pulse effects, keep the look */
  .nav.scrolled {
    background: rgba(5, 6, 11, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .loader-window {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(21, 24, 42, 0.98), rgba(10, 12, 22, 0.99));
  }
  .btn-pulse { animation: none; }
  .lw-glow { animation: none; opacity: 0.6; }
  .hero-spotlight { display: none; }
  .section { padding: 72px 0; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .game-art { height: 108px; }
  .game-art .game-fallback { font-size: 32px; }
  .game-art img { max-height: 50px; }
  .hero-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-art { height: 130px; }
  .hero-actions { flex-direction: column; }
  .stats-grid { gap: 12px; }
  .stat { padding: 20px 8px; }
  .cta-panel { padding: 56px 20px; }
  .topbar-long { display: none; }
  .brand-text { font-size: 15px; letter-spacing: 1.5px; }
  .lw-ver { display: none; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .game-card.reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
