/* ============================================
   1. VARIABLES
   ============================================ */
:root {
  /* Base Colors */
  --bg-primary: #03040a;
  --bg-secondary: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --surface-border: rgba(255, 255, 255, 0.08);

  /* Accent Colors */
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #0ea5e9;
  --blue-light: #38bdf8;
  --pink: #ec4899;
  --pink-light: #f43f5e;

  /* Gradients */
  --grad-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --grad-blue: linear-gradient(135deg, #0ea5e9, #38bdf8);
  --grad-pink: linear-gradient(135deg, #ec4899, #f43f5e);
  --grad-city: linear-gradient(135deg, #7c3aed, #0ea5e9, #ec4899);

  /* Glow */
  --glow-purple: rgba(124, 58, 237, 0.45);
  --glow-blue: rgba(14, 165, 233, 0.45);
  --glow-pink: rgba(236, 72, 153, 0.45);

  /* Typography */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Font */
  --font: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1280px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   2. RESET
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul { list-style: none; }

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

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ============================================
   CITY BACKGROUND
   ============================================ */
.city-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars-layer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.skyline-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  opacity: 0.3;
}

.skyline-svg {
  width: 100%;
  height: 100%;
}

.window-flicker {
  animation: windowFlicker 4s infinite;
}

.window-flicker-delay {
  animation: windowFlicker 5s infinite 1.5s;
}

@keyframes windowFlicker {
  0%, 90%, 100% { opacity: var(--o, 0.5); }
  92% { opacity: 0.1; }
  94% { opacity: 0.6; }
  96% { opacity: 0.1; }
}

.fog-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(to top, rgba(3, 4, 10, 0.9), transparent);
}

.light-trails {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
}

.light-trail {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  animation: lightTrail var(--speed, 6s) linear infinite var(--delay, 0s);
}

@keyframes lightTrail {
  0% { transform: translateX(-100px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

.particles-layer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: floatParticle var(--duration, 8s) infinite var(--delay, 0s);
  opacity: 0;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ============================================
   4. HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.header.scrolled,
.header-solid {
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo-icon {
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--grad-city);
  border-radius: 8px;
  opacity: 0.2;
  filter: blur(8px);
  z-index: -1;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-city);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-city);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  perspective: 600px;
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  transform: rotateY(5deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.4);
}

.side-nav-inner:hover {
  transform: rotateY(0deg);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15);
}

.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  position: relative;
}

.side-nav-item::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: var(--bg-secondary);
  border: 1px solid var(--surface-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.side-nav-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.side-nav-item:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  transform: scale(1.1) rotateY(-5deg);
  box-shadow: 0 0 20px var(--glow-purple);
}

.side-nav-item.active {
  color: #fff;
  background: var(--grad-purple);
  box-shadow: 0 0 20px var(--glow-purple);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: rgba(3, 4, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.active .mobile-menu-inner {
  transform: translateY(0);
}

.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
  padding: 8px 0;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--text-primary);
  background: var(--grad-city);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad-purple);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-purple);
}

.btn-glow {
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.2); }
  50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.4); }
}

.btn-glass {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 20px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   5. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 var(--section-pad);
  z-index: 1;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  transition: transform 0.1s linear;
}

.hero-glow-purple {
  background: var(--purple);
  top: 10%;
  left: 10%;
}

.hero-glow-blue {
  background: var(--blue);
  top: 40%;
  right: 10%;
}

.hero-glow-pink {
  background: var(--pink);
  bottom: 10%;
  left: 30%;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin-bottom: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--grad-city);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--surface-border);
}

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 420px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fadeInUp 1s 1.5s both;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================
   6. GAME SECTION
   ============================================ */
.game-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad-city);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.game-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.game-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-container:hover {
  transform: rotateX(1deg) rotateY(-1deg) translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--glow-purple);
}

.game-neon-border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--grad-city);
  z-index: 0;
  animation: neonBorderFlow 4s linear infinite;
  background-size: 300% 300%;
}

@keyframes neonBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.game-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--surface-border);
}

.game-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.game-dot-red { background: #ef4444; }
.game-dot-yellow { background: #eab308; }
.game-dot-green { background: #22c55e; }

.game-title-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-controls {
  display: flex;
  gap: 8px;
}

.game-control-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.game-control-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.game-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.game-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   7. FEATURES / CARDS
   ============================================ */
.features-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

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

.feature-card {
  grid-column: span 4;
  perspective: 800px;
}

.feature-card-large {
  grid-column: span 5;
  grid-row: span 2;
}

.feature-card-wide {
  grid-column: span 8;
}

.feature-card-inner {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: 100%;
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.feature-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-city);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.feature-card-inner:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-purple);
  transform: translateY(-4px);
}

.feature-card-inner:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-purple {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.feature-icon-blue {
  background: rgba(14, 165, 233, 0.15);
  color: var(--blue-light);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.feature-icon-pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink-light);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

.feature-icon-city {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(14, 165, 233, 0.15));
  color: var(--blue-light);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

.cta-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: var(--grad-city);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   8. FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  border-top: 1px solid var(--surface-border);
  background: rgba(3, 4, 10, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: var(--text-muted);
}

/* ============================================
   PAGE HERO (Sub-pages)
   ============================================ */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
}

.page-hero-content {
  max-width: 600px;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONTENT SECTIONS (Sub-pages)
   ============================================ */
.content-section {
  position: relative;
  z-index: 1;
  padding: 0 0 var(--section-pad);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s var(--ease);
}

.content-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.content-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.content-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Legal Content */
.legal-content {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--text-primary);
}

.responsible-banner {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.responsible-banner h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.responsible-banner p {
  margin: 0;
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.contact-form-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s var(--ease);
}

.contact-info-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 6px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 4, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--surface-border);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-purple);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.modal-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   BOTTOM NAV (MOBILE)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: rgba(3, 4, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--surface-border);
  display: none;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}

.bottom-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.bottom-nav-item.active {
  color: var(--purple-light);
}

.bottom-nav-item:hover {
  color: var(--text-primary);
}

/* ============================================
   9. ANIMATIONS
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.3; }
  97% { opacity: 1; }
}

/* Light streak animation */
.light-streak {
  position: absolute;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  animation: lightStreak 8s linear infinite;
  opacity: 0.3;
}

@keyframes lightStreak {
  0% { transform: translateX(-200px) rotate(-5deg); }
  100% { transform: translateX(calc(100vw + 200px)) rotate(-5deg); }
}

/* ============================================
   10. UTILITIES & RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .side-nav {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .feature-card {
    grid-column: span 3;
  }

  .feature-card-large {
    grid-column: span 3;
    grid-row: span 1;
  }

  .feature-card-wide {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .bottom-nav {
    display: grid;
  }

  body {
    padding-bottom: 70px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-large,
  .feature-card-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-card {
    padding: 48px 28px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .legal-content {
    padding: 28px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .game-control-btn span {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-in {
    opacity: 1;
    transform: none;
  }
}

/* Fullscreen game */
.game-container.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  border-radius: 0;
  max-width: none;
}

.game-container.fullscreen .game-inner {
  border-radius: 0;
  height: 100vh;
}

.game-container.fullscreen .game-neon-border {
  border-radius: 0;
}

.game-container.fullscreen .game-iframe-wrap {
  padding-top: 0;
  height: calc(100vh - 49px);
}

.game-container.fullscreen .game-iframe-wrap iframe {
  position: relative;
  height: 100%;
}