/* ===================================================================
   WINDIJOYENGINE — GEM CORE ENGINE DESIGN SYSTEM
   Premium Social Gaming Platform Stylesheet
   =================================================================== */

/* ---- 1. VARIABLES ---- */
:root {
  /* Base Colors */
  --bg-primary: #05070d;
  --bg-secondary: #0b1220;
  --bg-tertiary: #0f1a2e;

  /* Gem Accents */
  --sapphire: #3b82f6;
  --sapphire-light: #60a5fa;
  --amethyst: #8b5cf6;
  --amethyst-light: #c084fc;
  --ruby: #ec4899;
  --ruby-light: #f472b6;
  --emerald: #10b981;
  --emerald-light: #34d399;

  /* Glows */
  --glow-blue: rgba(59, 130, 246, 0.45);
  --glow-purple: rgba(139, 92, 246, 0.35);
  --glow-pink: rgba(236, 72, 153, 0.35);
  --glow-emerald: rgba(16, 185, 129, 0.35);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-dim: #6b7280;

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: 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-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

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

iframe {
  border: none;
}

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

.container-narrow {
  max-width: 900px;
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* ---- PARTICLE CANVAS ---- */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- 4. HEADER — GEM CORE NAV ---- */
.gem-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 1000;
  transition: all 0.5s var(--ease-out);
}

.gem-header.scrolled {
  top: 8px;
  width: calc(100% - 32px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-out);
}

.gem-header.scrolled .header-inner {
  padding: 10px 24px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(11, 18, 32, 0.9);
}

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

.logo-icon {
  font-size: 28px;
  animation: gemPulse 3s ease-in-out infinite;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--sapphire), var(--amethyst));
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Crystal Orb */
.crystal-orb {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 16px;
  cursor: pointer;
}

.crystal-inner {
  position: absolute;
  inset: 6px;
  animation: crystalSpin 8s linear infinite;
}

.crystal-facet {
  position: absolute;
  border-radius: 4px;
}

.facet-1 {
  top: 0; left: 25%;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.4));
  transform: rotate(45deg);
}

.facet-2 {
  bottom: 0; left: 25%;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(139, 92, 246, 0.3));
  transform: rotate(45deg);
}

.facet-3 {
  top: 25%; left: 0;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(59, 130, 246, 0.3));
  transform: rotate(45deg);
}

.facet-4 {
  top: 25%; right: 0;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.3));
  transform: rotate(45deg);
}

.crystal-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  animation: crystalGlowPulse 3s ease-in-out infinite;
}

.crystal-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: crystalRingSpin 12s linear infinite reverse;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-crystal {
  font-size: 40px;
  margin-bottom: 16px;
  animation: gemPulse 3s ease-in-out infinite;
}

.mobile-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 24px;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

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

.mobile-cta {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.mobile-legal {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- 5. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst));
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-blue), 0 4px 16px var(--glow-purple);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-play {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-light));
  color: #fff;
  padding: 10px 20px;
  font-size: 13px;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-pink);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s var(--ease-out);
}

.btn:hover .btn-shine {
  left: 100%;
}

.btn-icon {
  font-size: 16px;
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- 6. HERO — GEM COSMOS WORLD ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 80px;
}

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

.hero-beam {
  position: absolute;
  width: 2px;
  opacity: 0.15;
}

.beam-1 {
  left: 20%;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--sapphire), transparent);
  animation: beamFloat 8s ease-in-out infinite;
}

.beam-2 {
  left: 55%;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--amethyst), transparent);
  animation: beamFloat 10s ease-in-out infinite 2s;
}

.beam-3 {
  left: 80%;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--ruby), transparent);
  animation: beamFloat 12s ease-in-out infinite 4s;
}

.hero-radial {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  border-radius: 50%;
}

/* Floating Gems */
.floating-gems {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-gem {
  position: absolute;
  font-size: 24px;
  opacity: 0.4;
  filter: blur(0.5px);
}

.gem-float-1 { top: 12%; left: 8%; animation: gemFloat1 12s ease-in-out infinite; font-size: 32px; opacity: 0.5; }
.gem-float-2 { top: 22%; right: 12%; animation: gemFloat2 14s ease-in-out infinite 1s; font-size: 28px; }
.gem-float-3 { top: 60%; left: 5%; animation: gemFloat3 11s ease-in-out infinite 2s; }
.gem-float-4 { top: 75%; right: 8%; animation: gemFloat1 13s ease-in-out infinite 3s; font-size: 20px; }
.gem-float-5 { top: 40%; left: 15%; animation: gemFloat2 15s ease-in-out infinite 4s; font-size: 18px; opacity: 0.3; }
.gem-float-6 { top: 15%; left: 45%; animation: gemFloat3 10s ease-in-out infinite 5s; font-size: 16px; opacity: 0.25; }
.gem-float-7 { top: 50%; right: 18%; animation: gemFloat1 16s ease-in-out infinite 6s; font-size: 14px; opacity: 0.35; }
.gem-float-8 { bottom: 15%; left: 30%; animation: gemFloat2 13s ease-in-out infinite 7s; font-size: 20px; opacity: 0.3; }

/* Sparkles */
.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleAnim 4s ease-in-out infinite;
}

.s1 { top: 10%; left: 20%; animation-delay: 0s; }
.s2 { top: 25%; left: 70%; animation-delay: 0.5s; }
.s3 { top: 40%; left: 10%; animation-delay: 1s; }
.s4 { top: 55%; left: 85%; animation-delay: 1.5s; }
.s5 { top: 70%; left: 40%; animation-delay: 2s; }
.s6 { top: 85%; left: 60%; animation-delay: 2.5s; }
.s7 { top: 15%; left: 50%; animation-delay: 3s; }
.s8 { top: 35%; left: 30%; animation-delay: 3.5s; }
.s9 { top: 65%; left: 75%; animation-delay: 0.8s; }
.s10 { top: 80%; left: 15%; animation-delay: 1.8s; }
.s11 { top: 45%; left: 55%; animation-delay: 2.8s; }
.s12 { top: 20%; left: 90%; animation-delay: 0.3s; }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text-sapphire {
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ruby {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amethyst {
  background: linear-gradient(135deg, var(--amethyst), var(--amethyst-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-legal {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--sapphire), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- 7. SECTIONS SHARED ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.game-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.game-border-glow {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst), var(--ruby), var(--emerald), var(--sapphire));
  background-size: 400% 400%;
  animation: borderGlow 6s linear infinite;
  z-index: 0;
  opacity: 0.7;
}

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

.game-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-secondary);
  z-index: 5;
  transition: opacity 0.6s var(--ease-out);
  font-size: 14px;
  color: var(--text-secondary);
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-crystal {
  font-size: 48px;
  animation: gemPulse 1.5s ease-in-out infinite;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--sapphire), var(--amethyst));
  border-radius: 4px;
  animation: loadingFill 2s var(--ease-out) forwards;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.game-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FEATURES SECTION ---- */
.features-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-wide {
  grid-column: span 2;
}

.feature-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-glow {
  opacity: 0.5;
}

.feature-glow-sapphire { background: var(--sapphire); }
.feature-glow-purple { background: var(--amethyst); }
.feature-glow-pink { background: var(--ruby); }
.feature-glow-emerald { background: var(--emerald); }

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.8s var(--ease-out);
}

.feature-card:hover .feature-shine {
  left: 100%;
}

/* ---- STATS SECTION ---- */
.stats-section {
  position: relative;
  padding: 80px 0;
  z-index: 1;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 48px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-star {
  -webkit-text-fill-color: initial;
  font-size: 0.6em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--glass-border);
}

/* ---- CTA SECTION ---- */
.cta-section {
  position: relative;
  padding: 80px 0 120px;
  z-index: 1;
}

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

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

/* ---- PAGE HERO (Inner Pages) ---- */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  text-align: center;
  z-index: 1;
}

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

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CONTENT SECTION ---- */
.content-section {
  position: relative;
  padding: 40px 0 120px;
  z-index: 1;
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card a {
  color: var(--sapphire-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card a:hover {
  color: var(--sapphire);
}

/* Legal Content */
.legal-content h2 {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

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

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
}

.legal-notice p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Styled List */
.styled-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.styled-list li {
  padding: 8px 0;
  font-size: 15px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.value-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.value-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.value-item h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.value-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form-success {
  display: none;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: var(--emerald-light);
  font-size: 14px;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ---- 8. FOOTER ---- */
.gem-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 80px 0 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-info {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ruby);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: var(--ruby);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 12px !important;
  color: var(--text-dim) !important;
}

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

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--ease-spring);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

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

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-icon {
  font-size: 32px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.modal-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst));
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.modal-step h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

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

.modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.modal-footer p {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ---- 9. ANIMATIONS ---- */
@keyframes gemPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes crystalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes crystalRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.2); }
  50% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.4); }
}

@keyframes beamFloat {
  0%, 100% { opacity: 0.05; transform: translateX(0); }
  50% { opacity: 0.2; transform: translateX(20px); }
}

@keyframes gemFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes gemFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(-8deg); }
}

@keyframes gemFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -15px); }
  50% { transform: translate(-10px, -25px); }
  75% { transform: translate(10px, -10px); }
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

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

@keyframes loadingFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animate-on-scroll classes */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 10. UTILITIES ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .feature-wide {
    grid-column: span 2;
  }

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

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

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

@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

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

  .hero-title {
    font-size: clamp(32px, 8vw, 52px);
  }

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

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

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

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

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

  .stats-grid {
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
  }

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

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

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

  .content-card {
    padding: 32px 24px;
  }

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

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

  .section-title {
    font-size: clamp(28px, 6vw, 42px);
  }

  .page-hero {
    padding: 140px 0 48px;
  }
}

@media (max-width: 480px) {
  .gem-header {
    width: calc(100% - 24px);
  }

  .header-inner {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 16px;
  }

  .game-controls {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .game-controls .btn {
    width: 100%;
  }
}

/* Reduce motion */
@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;
  }
}