:root {
  --bg: #0B0B0F;
  --surface: #14141A;
  --surface-2: #1B1B23;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --muted: #9A9AA8;
  --accent: #5B3DD9;
  --accent-soft: rgba(74, 47, 189, 0.18);
  --accent-deep: #4A2FBD;
  --max: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 11, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav.scrolled {
  background: rgba(11, 11, 15, 0.85);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text);
}
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--text); }
.lang-sep { color: var(--muted); opacity: 0.4; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(91, 61, 217, 0.55) 0%, rgba(31, 28, 77, 0.4) 40%, rgba(74, 47, 189, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); background: #6E50E5; }

/* GAMES */
.games {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.game-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(180deg, var(--surface) 0%, #11111A 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  position: relative;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(91, 61, 217, 0.18), transparent 55%);
  pointer-events: none;
}
.game-card > * { position: relative; z-index: 1; }

.game-card-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  padding: 12px 0;
}
.phone-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 380px;
}
.phone {
  position: absolute;
  height: 100%;
  width: auto;
  border-radius: 22px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease;
}
.phone-front {
  z-index: 3;
  transform: translateY(-6px);
}
.phone-back {
  z-index: 2;
  height: 86%;
  opacity: 0.85;
  transform: translateX(-44%) rotate(-9deg);
}
.phone-back.phone-right {
  transform: translateX(44%) rotate(9deg);
}
.game-card:hover .phone-front { transform: translateY(-10px); }
.game-card:hover .phone-back { transform: translateX(-50%) rotate(-11deg); }
.game-card:hover .phone-back.phone-right { transform: translateX(50%) rotate(11deg); }

.game-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(74, 47, 189, 0.4);
}
.game-card-body h3 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.01em;
}
.game-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 440px;
}
.game-card-stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.store-badge {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.store-badge img { height: 40px; width: auto; }

.game-card-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.game-card-link:hover { text-decoration: underline; }

.games-more {
  text-align: center;
  color: var(--muted);
  margin: 48px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ABOUT */
.about {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 720px;
}
.about h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  line-height: 1.1;
}
.about p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.about p:last-child { margin-bottom: 0; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-left a:hover { color: var(--text); }
.footer-right {
  display: flex;
  gap: 16px;
}
.social {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.social:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }
.social img { width: 16px; height: 16px; filter: invert(0.7); transition: filter 0.15s ease; }
.social:hover img { filter: invert(1); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 24px;
    gap: 32px;
    transform: translateY(-100vh);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 22px; color: var(--text); }

  .hero { padding: 64px 0 80px; }
  .hero-blob { width: 420px; height: 420px; right: -120px; top: -120px; }

  .game-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .game-card-body h3 { font-size: 26px; }
  .game-card-media { min-height: 280px; }
  .phone-stack { height: 280px; }
  .game-card-icon { width: 40px; height: 40px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
