/* ─── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(245,197,24,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px; right: -100px;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-lightning-left,
.hero-lightning-right {
  position: absolute;
  font-size: 120px;
  opacity: 0.04;
  pointer-events: none;
  animation: floatBolt 6s ease-in-out infinite;
}
.hero-lightning-left { left: -20px; top: 40%; }
.hero-lightning-right { right: -20px; bottom: 20%; animation-delay: -3s; }
@keyframes floatBolt {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-20px) rotate(-10deg); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: blinkDot 1.8s ease-in-out infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-highlight {
  color: var(--accent-gold);
  text-shadow: 0 0 40px rgba(245,197,24,0.4);
}
.hero-highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 40px rgba(0,180,216,0.4);
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 17px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  animation: fadeInUp 2s ease 1s both;
}
.hero-scroll-hint span { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ─── GAMES SECTION ──────────────────────────────────────────────────── */
.games-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

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

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition-slow), box-shadow var(--transition-slow);
}
.game-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.game-card-featured {
  border-color: rgba(0,180,216,0.3);
}
.game-card-featured:hover { border-color: var(--accent-cyan); box-shadow: 0 8px 48px rgba(0,180,216,0.2); }

.game-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,197,24,0.1) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.game-card:hover .game-card-glow { opacity: 1.5; }
.game-card-glow-cyan {
  background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 8px rgba(245,197,24,0.5));
}
.game-badge {
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
}
.game-badge-cyan {
  background: rgba(0,180,216,0.12);
  border-color: rgba(0,180,216,0.25);
  color: var(--accent-cyan);
}
.game-badge-dark {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text-secondary);
}

.game-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.game-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.game-features span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.game-play-btn { width: 100%; margin-top: 4px; }

/* ─── HOW TEASER ─────────────────────────────────────────────────────── */
.how-teaser {
  padding: 100px 0;
}
.how-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: rgba(245,197,24,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  transition: color var(--transition);
}
.how-step:hover .step-num { color: var(--accent-gold); }
.step-body h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── FEATURES ──────────────────────────────────────────────────────── */
.features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition-slow);
}
.feature-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 6px rgba(245,197,24,0.5));
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── COMMUNITY BANNER ─────────────────────────────────────────────── */
.community-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.community-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,197,24,0.06) 0%, rgba(0,180,216,0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.community-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.community-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.community-banner-text p {
  font-size: 16px;
  color: var(--text-secondary);
}
.community-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
  .games-grid .game-card:last-child { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 0 100px; }
  .hero-stats { gap: 0; padding: 16px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 22px; }
  .how-teaser-inner { grid-template-columns: 1fr; gap: 40px; }
  .community-banner-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; }
  .games-grid .game-card:last-child { grid-column: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 60px; height: 1px; }
}
