/* ── Particles canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

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

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 45, 149, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
    var(--bg-deep);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero__title .highlight {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
}

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

/* ── Sections common ── */
.section {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.section--dark {
  background: var(--bg-base);
}

.section--gradient {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__header .section-subtitle {
  margin-inline: auto;
}

/* ── Games grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── Featured (Ninjabible) ── */
.featured {
  position: relative;
  overflow: hidden;
}

.featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.08) 0%, rgba(0, 240, 255, 0.06) 100%);
  border: 1px solid rgba(255, 45, 85, 0.25);
  position: relative;
  overflow: hidden;
}

.featured__inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 45, 85, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.featured__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured__icon {
  width: min(280px, 80%);
  filter: drop-shadow(0 0 40px rgba(255, 45, 85, 0.5));
  animation: float-icon 4s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.featured__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.3), transparent 70%);
  filter: blur(40px);
}

.featured__content {
  position: relative;
  z-index: 1;
}

.featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--neon-red);
  text-shadow: 0 0 30px rgba(255, 45, 85, 0.4);
}

.featured__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.featured__tag {
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  border: 1px solid rgba(255, 45, 85, 0.3);
  color: var(--text-secondary);
}

/* ── Audience ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── About ── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.stat__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about__visual img {
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-card);
}

/* ── Parallax updates ── */
.parallax-section {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.parallax-section__bg {
  position: absolute;
  inset: -20% 0;
  background: url("../images/dunas-bg.jpg") center / cover no-repeat;
  opacity: 0.25;
  will-change: transform;
}

.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 30%, transparent 70%, var(--bg-deep) 100%);
}

.parallax-section__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── Content slider ── */
.content-slider {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.content-slider__track {
  display: flex;
  gap: 1.25rem;
  animation: slide-track 35s linear infinite;
  width: max-content;
}

.content-slider__track:hover {
  animation-play-state: paused;
}

@keyframes slide-track {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.content-slider__item {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: var(--transition);
}

.content-slider__item:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: scale(1.08);
}

.content-slider__item img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.cta__inner {
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 45, 149, 0.08));
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-inline: auto;
}

/* ── Reveal animations (initial state) ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .featured__inner,
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured__tags {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

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

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

  .featured__inner {
    padding: 2rem 1.25rem;
  }
}
