:root {
  --bg: #0b0a16;
  --bg-2: #12101f;
  --card: #161427;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f0ff;
  --muted: #a19dbd;
  --purple: #b23cff;
  --violet: #6a3dff;
  --blue: #1fb8ff;
  --orange: #ff9b1a;
  --pink: #ff3d8b;
  --lime: #a6ff1a;
  --grad: linear-gradient(100deg, var(--purple), var(--blue) 45%, var(--orange) 75%, var(--pink));
  --radius: 22px;
  --max: 1160px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- background glow ---------- */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.glow span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.28;
  animation: drift 26s ease-in-out infinite alternate;
}
.glow span:nth-child(1) { background: var(--purple); top: -18vmax; left: -12vmax; }
.glow span:nth-child(2) { background: var(--blue); top: 30vh; right: -20vmax; animation-delay: -8s; opacity: 0.18; }
.glow span:nth-child(3) { background: var(--orange); bottom: -26vmax; left: 20vw; animation-delay: -16s; opacity: 0.14; }
@keyframes drift {
  to { transform: translate(6vmax, 4vmax) scale(1.12); }
}
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 10, 22, 0.66);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.brand b i { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav ul a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
@media (max-width: 720px) {
  .nav ul li:not(:last-child) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(178, 60, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 61, 139, 0.7); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,0.04); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-play {
  background: #fff; color: #0b0a16; padding: 12px 22px 12px 18px;
}
.btn-play svg { width: 24px; height: 24px; }
.btn-play small { display: block; font-size: 11px; font-weight: 500; line-height: 1; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.btn-play span { line-height: 1.15; text-align: left; }
.btn-soon { background: rgba(255,255,255,0.05); border-color: var(--line); color: var(--muted); cursor: default; }
.btn-soon:hover { transform: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(440px, 100%, 62vh); filter: drop-shadow(0 30px 60px rgba(106, 61, 255, 0.45)); animation: float 6s ease-in-out infinite; }
.hero-art::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--blue), var(--orange), var(--pink), var(--purple));
  filter: blur(70px); opacity: .35; animation: spin 18s linear infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22,20,39,.6);
  backdrop-filter: blur(8px);
}
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(210px, 60%); }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section { padding: 90px 0; scroll-margin-top: 40px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.01em; margin: 12px 0 14px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- featured game ---------- */
.game {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 32px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  margin-bottom: 32px;
}
.game::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); filter: blur(120px); opacity: .22; pointer-events: none;
}
.game.brik { --accent: #ff2e9a; }
.game.mole { --accent: #ff9b1a; }
.game-meta { position: relative; }
.game-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-title img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); }
.game-title h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 6px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge.live { color: var(--lime); background: rgba(166,255,26,.1); border: 1px solid rgba(166,255,26,.3); }
.badge.live .dot { animation: pulse 1.8s ease-in-out infinite; }
.badge.testing { color: var(--orange); background: rgba(255,155,26,.1); border: 1px solid rgba(255,155,26,.3); }
.badge.dev { color: var(--blue); background: rgba(31,184,255,.1); border: 1px solid rgba(31,184,255,.3); }
@keyframes pulse { 50% { opacity: .35; } }
.game-meta p { color: var(--muted); margin: 0 0 20px; }
.features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags span { font-size: 13px; color: var(--muted); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }

.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone {
  width: 31%; max-width: 210px; aspect-ratio: 9 / 16;
  border-radius: 26px; padding: 7px; background: #05040b;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .4s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.phone:nth-child(1) { transform: translateY(26px) rotate(-4deg); }
.phone:nth-child(3) { transform: translateY(26px) rotate(4deg); }
.phones:hover .phone:nth-child(1) { transform: translateY(14px) rotate(-6deg) translateX(-8px); }
.phones:hover .phone:nth-child(3) { transform: translateY(14px) rotate(6deg) translateX(8px); }
.phones:hover .phone:nth-child(2) { transform: translateY(-8px); }

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; padding: 28px 20px; gap: 36px; }
  .game .phones { order: 2; }
}

/* ---------- lab (in development) ---------- */
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lab-card {
  position: relative; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s ease, border-color .3s ease;
  overflow: hidden;
}
.lab-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); }
.lab-card img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.lab-card h3 { font-family: var(--display); font-size: 20px; margin: 12px 0 8px; line-height: 1.2; }
.lab-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.lab-card .mystery {
  width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px;
  display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 800;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.2); color: var(--muted);
}
.progress { margin-top: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); background: var(--grad); border-radius: inherit; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lab { grid-template-columns: 1fr; } }

/* ---------- about / values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.value .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,255,255,.05);
}
.value .icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 18px; margin: 0 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 28px; border-radius: 36px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(178,60,255,.35), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255,155,26,.25), transparent 50%),
    var(--bg-2);
}
.contact h2 { margin-top: 0; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 18px; }
.contact .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.legal .muted { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 22px; margin: 44px 0 10px; }
.legal p, .legal li { color: #d6d3ea; }
.legal a { color: var(--blue); }
.legal ul { padding-left: 1.3em; }
.legal .summary {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 8px 26px; margin-top: 32px;
}

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