/* ========================================
   1. VARIABLES
   ======================================== */
:root {
  --midnight-black: #0a0a0d;
  --deep-charcoal: #141417;
  --glass-surface: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --royal-purple: #7c3aed;
  --neon-violet: #a855f7;
  --electric-pink: #ec4899;
  --soft-cyan: #22d3ee;
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --gradient-main: linear-gradient(135deg, #7c3aed, #ec4899, #22d3ee);
  --gradient-btn: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  --gradient-btn-hover: linear-gradient(135deg, #8b5cf6, #c084fc, #f472b6);
  --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.4), rgba(34, 211, 238, 0.4));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container-max: 1400px;
  --section-pad-desktop: 100px;
  --section-pad-tablet: 70px;
  --section-pad-mobile: 50px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--midnight-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

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

.section {
  padding: var(--section-pad-desktop) 0;
  position: relative;
}

.page-content {
  min-height: 60vh;
}

/* ========================================
   4. COMPONENTS — HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.3;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-btn);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: logoShine 3s infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width var(--transition-med);
}

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

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

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

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

.header-cta {
  z-index: 1001;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transition: transform 0.6s;
  transform: translateX(-100%) rotate(45deg);
}

.btn-primary:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.btn-secondary {
  background: var(--glass-surface);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

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

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  width: 28px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-med);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 13, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-med);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: var(--glass-surface);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero-glow-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 2px; height: 2px; background: rgba(124, 58, 237, 0.6); }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: -2s; width: 4px; height: 4px; background: rgba(236, 72, 153, 0.4); }
.particle:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: -4s; background: rgba(34, 211, 238, 0.5); }
.particle:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: -1s; width: 2px; height: 2px; background: rgba(168, 85, 247, 0.6); }
.particle:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: -3s; width: 3px; height: 3px; background: rgba(236, 72, 153, 0.5); }
.particle:nth-child(6) { left: 85%; animation-duration: 13s; animation-delay: -5s; background: rgba(34, 211, 238, 0.4); }
.particle:nth-child(7) { left: 15%; animation-duration: 16s; animation-delay: -7s; width: 2px; height: 2px; background: rgba(124, 58, 237, 0.4); }
.particle:nth-child(8) { left: 60%; animation-duration: 9s; animation-delay: -6s; width: 3px; height: 3px; background: rgba(168, 85, 247, 0.5); }
.particle:nth-child(9) { left: 35%; animation-duration: 18s; animation-delay: -8s; width: 2px; height: 2px; background: rgba(236, 72, 153, 0.3); }
.particle:nth-child(10) { left: 80%; animation-duration: 12s; animation-delay: -10s; background: rgba(34, 211, 238, 0.5); }
.particle:nth-child(11) { left: 48%; animation-duration: 14s; animation-delay: -3s; width: 2px; height: 2px; background: rgba(124, 58, 237, 0.5); }
.particle:nth-child(12) { left: 92%; animation-duration: 11s; animation-delay: -9s; width: 4px; height: 4px; background: rgba(168, 85, 247, 0.3); }

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* Light Streaks */
.light-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.3;
}

.streak {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.6), transparent);
  animation: streakFall linear infinite;
}

.streak:nth-child(1) { left: 20%; animation-duration: 3s; animation-delay: 0s; }
.streak:nth-child(2) { left: 50%; animation-duration: 4s; animation-delay: -1s; height: 60px; }
.streak:nth-child(3) { left: 75%; animation-duration: 3.5s; animation-delay: -2s; height: 100px; }
.streak:nth-child(4) { left: 35%; animation-duration: 5s; animation-delay: -0.5s; height: 50px; background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.4), transparent); }
.streak:nth-child(5) { left: 90%; animation-duration: 4.5s; animation-delay: -3s; height: 70px; background: linear-gradient(to bottom, transparent, rgba(236, 72, 153, 0.4), transparent); }

@keyframes streakFall {
  0% { transform: translateY(-100px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(calc(100vh + 100px)); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.45s both;
  flex-wrap: wrap;
}

.hero-disclaimer {
  animation: fadeInUp 0.8s ease 0.6s both;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto;
}

.hero-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0.7;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   GAME SECTION
   ======================================== */
.game-section {
  padding: 120px 0;
  position: relative;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-violet);
  margin-bottom: 16px;
}

.section-label-icon {
  font-size: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.game-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--deep-charcoal);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 60px rgba(124, 58, 237, 0.08),
    0 0 120px rgba(236, 72, 153, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-slow);
}

.game-container:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    0 0 80px rgba(124, 58, 237, 0.12),
    0 0 160px rgba(236, 72, 153, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(1.002);
}

.game-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-xl);
  background: var(--gradient-main);
  opacity: 0.15;
  z-index: -1;
  transition: opacity var(--transition-med);
}

.game-container:hover::before {
  opacity: 0.25;
}

.game-glow-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  z-index: 1;
}

.game-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  position: relative;
}

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

.feature-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon-purple {
  background: rgba(124, 58, 237, 0.12);
  color: var(--neon-violet);
}

.feature-icon-pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--electric-pink);
}

.feature-icon-cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--soft-cyan);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  position: relative;
}

.stats-wrapper {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.stats-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: var(--glass-border);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   LEGAL SECTION
   ======================================== */
.legal-section {
  position: relative;
}

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

.legal-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.legal-card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.legal-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-card-text ul {
  margin-top: 12px;
}

.legal-card-text li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.legal-card-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-violet);
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.2;
}

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

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--neon-violet);
}

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-badge {
  padding: 6px 14px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   PAGE HERO (for subpages)
   ======================================== */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ========================================
   TEXT CONTENT (for legal/about pages)
   ======================================== */
.text-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.text-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.text-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.text-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.text-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 4px 0;
  position: relative;
  list-style: none;
  padding-left: 20px;
}

.text-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--neon-violet);
}

.text-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.text-content a {
  color: var(--neon-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-content a:hover {
  color: var(--electric-pink);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 80px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

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

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========================================
   5. UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
  margin: 0;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 1200px) {
  .game-container {
    max-width: 95%;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: var(--section-pad-tablet) 0;
  }

  .game-section {
    padding: 80px 0;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: var(--section-pad-mobile) 0;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .header-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .game-section {
    padding: 60px 0;
  }

  .game-container {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .game-iframe-wrapper iframe {
    border-radius: var(--radius-md);
  }

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

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

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stats-wrapper {
    padding: 40px 24px;
  }

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

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

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .header .container {
    height: 64px;
  }

  .mobile-nav {
    top: 64px;
  }
}