/* ============================================================
   HERO — Three.js Scene + Conteúdo Principal
   ============================================================ */

/* ── Hero Container ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Canvas Three.js ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}

/* ── Overlay gradiente ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 112, 255, 0.15) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--bg-void) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.03) 2px, rgba(0,212,255,0.03) 4px);
  z-index: 1;
  pointer-events: none;
}

/* ── Conteúdo Hero ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: 900px;
  width: 100%;
  padding-top: 100px;
}

/* ── Badge "Treinamento Cognitivo" ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--blue-electric);
  box-shadow: inset 0 0 10px rgba(0,212,255,0.1), 0 0 15px rgba(0,212,255,0.2);
  border-radius: 4px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: var(--space-xl);
  opacity: 0;
}

.hero-badge [data-lucide] {
  font-size: 0.75rem;
  animation: zapPulse 2s ease-in-out infinite;
}

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

/* ── Título Hero ── */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.title-line {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(60px);
}

.title-accent {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  background: linear-gradient(135deg, var(--blue-electric) 0%, var(--blue-primary) 50%, #a78bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.4));
}

/* ── Subtítulo ── */
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}

/* ── CTA ── */
.hero-cta {
  margin-bottom: var(--space-2xl);
  opacity: 0;
}

/* ── Stats ── */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow: inset 0 0 20px rgba(0,212,255,0.1);
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-electric);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Games Section ── */
.games-section {
  position: relative;
  z-index: 5;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(79, 143, 255, 0.1);
  border: 1px solid rgba(79, 143, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Responsividade Hero ── */
@media (max-width: 768px) {
  .hero-stats {
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .hero-content {
    padding-top: 80px;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  /* Botão CTA maior no mobile */
  .hero-cta .btn-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  /* Seção de jogos com padding bottom para footer */
  .games-section {
    padding-bottom: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: 8px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  }
  .stat-divider {
    width: 1px;
    height: 30px;
  }
}
