/* === HOME.CSS === */

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

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

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224,16,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,16,32,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(224,16,32,0.12) 0%, transparent 70%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  padding-top: var(--nav-height);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--red-border);
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: var(--red-dim);
  animation: fade-in-up 600ms ease both;
}

.hero__tag::before {
  content: '//';
  opacity: 0.6;
}

.hero__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero__title .accent { color: var(--red); }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white-dim);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dimmer);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
  padding: 2.5rem 0;
}

.stats-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

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

.stat-item__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1;
}

.stat-item__number span {
  color: var(--red);
}

.stat-item__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-dimmer);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: var(--red-border);
  align-self: stretch;
  margin: 0 1rem;
}

/* ── Featured games ── */
.featured-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ── Genre strip ── */
.genre-strip {
  padding: 3rem 0;
  overflow: hidden;
}

.genre-strip__scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.genre-strip__scroll::-webkit-scrollbar { display: none; }

.genre-strip__chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 1px solid var(--red-border);
  color: var(--white-dim);
  cursor: pointer;
  transition: var(--transition-fast);
}
.genre-strip__chip:hover,
.genre-strip__chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--glow-red-sm);
}

/* ── Why PG Games ── */
.why-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid rgba(240,240,240,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-mid);
}

.why-card:hover {
  border-color: var(--red-border);
  box-shadow: var(--glow-red);
  transform: translateY(-4px);
}

.why-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.why-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.why-card__text {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .games-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: -1px; }
  .featured-header { flex-direction: column; align-items: flex-start; }
}
