/* ==========================================================================
   PixHaste home page
   The hero is a full bleed wall of cover art rather than a split layout. The
   only strong imagery this store owns is publisher key art, so the art itself
   becomes the banner: several columns of covers drifting at different speeds
   behind the headline. It reads as a game shop rather than a product page,
   and it refreshes on its own as the catalogue changes.
   ========================================================================== */

/* ============================================================== hero ==== */
.ph-hero {
  position: relative;
  min-height: min(640px, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ph-bg);
  isolation: isolate;
  text-align: center;
}

/* ---------------------------------------------------------- cover wall -- */
.ph-hero__wall {
  position: absolute;
  inset: -18% -6%;
  z-index: -3;
  display: flex;
  gap: 18px;
  justify-content: center;
  /* A slight tilt stops the columns reading as a plain grid. */
  transform: rotate(-8deg) scale(1.18);
  pointer-events: none;
}

.ph-hero__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 clamp(130px, 13vw, 190px);
  will-change: transform;
}

/* Each column runs at its own pace, and every other one runs upward, so the
   wall never resolves into a single sliding sheet. */
.ph-hero__col:nth-child(1) { animation: ph-drift-up 52s linear infinite; }
.ph-hero__col:nth-child(2) { animation: ph-drift-down 64s linear infinite; }
.ph-hero__col:nth-child(3) { animation: ph-drift-up 44s linear infinite; }
.ph-hero__col:nth-child(4) { animation: ph-drift-down 58s linear infinite; }
.ph-hero__col:nth-child(5) { animation: ph-drift-up 68s linear infinite; }
.ph-hero__col:nth-child(6) { animation: ph-drift-down 48s linear infinite; }
.ph-hero__col:nth-child(7) { animation: ph-drift-up 60s linear infinite; }

/* The track holds two copies of the same covers, so translating by exactly
   half its height loops without a visible seam. */
@keyframes ph-drift-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes ph-drift-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.ph-hero__col img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* Tint and vignette. The wall is decorative, so it is pushed well back to
   keep the headline comfortably above contrast. */
.ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% 45%, rgba(8, 11, 20, .42), rgba(8, 11, 20, .86) 64%),
    linear-gradient(180deg, rgba(8, 11, 20, .62) 0%, rgba(8, 11, 20, .58) 45%, var(--ph-bg) 100%);
}

/* Brand wash so the wall picks up the palette instead of reading as grey. */
.ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 22% 18%, rgba(124, 58, 237, .4), transparent 62%),
    radial-gradient(700px 400px at 80% 78%, rgba(244, 63, 158, .32), transparent 62%);
  mix-blend-mode: screen;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  .ph-hero__col { animation: none !important; }
}

/* ---------------------------------------------------------- hero copy --- */
.ph-hero__content {
  position: relative;
  padding-block: clamp(64px, 9vw, 116px);
  max-width: 900px;
}

.ph-hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  margin-bottom: 24px;
  border-radius: 99px;
  border: 1px solid var(--ph-line-2);
  background: rgba(8, 11, 20, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .8rem;
  color: var(--ph-text-2);
}
.ph-hero__flag b {
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--ph-grad);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ph-hero__flag span { padding-right: 10px; }

.ph-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 22px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.ph-hero h1 .line { display: block; }

.ph-hero__lede {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--ph-text-2);
  max-width: 52ch;
  margin: 0 auto 34px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}

.ph-hero__actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

/* A quiet count under the buttons, so the hero says how big the shop is
   without a row of invented statistics. */
.ph-hero__count {
  margin-top: 28px;
  font-size: .85rem;
  color: var(--ph-text-3);
}
.ph-hero__count b { color: var(--ph-text-2); font-weight: 650; }

@media (max-width: 640px) {
  .ph-hero { min-height: min(560px, 86vh); }
  .ph-hero__wall { gap: 12px; transform: rotate(-10deg) scale(1.35); }
  .ph-hero__col { gap: 12px; }
}

/* ======================================================= trust strip ==== */
.ph-trust-strip {
  border-block: 1px solid var(--ph-line);
  background: linear-gradient(180deg, rgba(17, 24, 39, .6), rgba(8, 11, 20, .6));
}
.ph-trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--ph-line);
}
.ph-trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px; background: var(--ph-bg);
  transition: background .3s ease;
}
.ph-trust-item:hover { background: var(--ph-bg-2); }
.ph-trust-item__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ph-grad-soft);
  border: 1px solid rgba(124, 58, 237, .28);
  color: var(--ph-violet-400);
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1), color .3s ease;
}
.ph-trust-item:hover .ph-trust-item__icon { transform: translateY(-3px) scale(1.06); color: var(--ph-pink-400); }
.ph-trust-item__icon svg { width: 21px; height: 21px; }
.ph-trust-item b { display: block; font-size: .93rem; color: var(--ph-text); line-height: 1.3; }
.ph-trust-item span { font-size: .79rem; color: var(--ph-text-3); }

@media (max-width: 900px) { .ph-trust-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ph-trust-strip__grid { grid-template-columns: 1fr; } }

/* ==================================================== platform tiles ==== */
/* auto-fit would stretch two tiles across the full width. A fixed track and
   centred row keeps them the same size no matter how many platforms exist. */
.ph-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
  justify-content: center;
  gap: 16px;
}
.ph-platform-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 30px 18px; text-align: center;
  border-radius: var(--ph-r-lg); border: 1px solid var(--ph-line);
  background: linear-gradient(180deg, var(--ph-surface) 0%, var(--ph-bg-2) 100%);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ph-platform-tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: var(--ph-grad-soft); transition: opacity .35s ease;
}
.ph-platform-tile:hover { transform: translateY(-5px); border-color: rgba(124, 58, 237, .5); box-shadow: var(--ph-glow); }
.ph-platform-tile:hover::before { opacity: 1; }
.ph-platform-tile > * { position: relative; }
.ph-platform-tile__icon { width: 40px; height: 40px; color: var(--ph-text-2); transition: color .3s ease, transform .3s ease; }
.ph-platform-tile:hover .ph-platform-tile__icon { color: #fff; transform: scale(1.1); }
.ph-platform-tile b { font-size: .98rem; color: var(--ph-text); font-family: var(--ph-font-display); }
.ph-platform-tile span { font-size: .78rem; color: var(--ph-text-3); }

/* ====================================================== how it works ==== */
.ph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.ph-step { position: relative; padding: 26px 22px; border-radius: var(--ph-r-lg); background: var(--ph-surface); border: 1px solid var(--ph-line); }
.ph-step__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--ph-grad); color: #fff;
  font-family: var(--ph-font-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}
.ph-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ph-step p { color: var(--ph-text-2); font-size: .9rem; margin: 0; }

/* Connector line between steps on wide screens */
.ph-step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -22px; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--ph-violet), transparent);
}
@media (max-width: 1023px) {
  .ph-steps { grid-template-columns: repeat(2, 1fr); }
  .ph-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .ph-steps { grid-template-columns: 1fr; } }

/* ========================================================= genre rail === */
.ph-genre-rail { display: flex; gap: 11px; flex-wrap: wrap; }
.ph-genre-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--ph-line-2); background: rgba(255, 255, 255, .04);
  font-size: .88rem; font-weight: 600; color: var(--ph-text-2);
  transition: all .25s ease;
}
.ph-genre-pill:hover {
  color: #fff; border-color: transparent; background: var(--ph-grad);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124, 58, 237, .35);
}
.ph-genre-pill .count { font-size: .74rem; opacity: .65; }

/* ==================================================== featured banner === */
/* A wide editorial block that reuses one game screenshot as its backdrop. */
.ph-feature-band {
  position: relative; overflow: hidden;
  border-radius: var(--ph-r-xl);
  border: 1px solid var(--ph-line-2);
  min-height: 330px;
  display: flex; align-items: center;
}
.ph-feature-band__bg { position: absolute; inset: 0; z-index: 0; }
.ph-feature-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-feature-band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 20, .96) 0%, rgba(8, 11, 20, .82) 42%, rgba(124, 58, 237, .38) 100%);
}
.ph-feature-band__inner { position: relative; z-index: 1; padding: clamp(28px, 4vw, 48px); max-width: 640px; }
.ph-feature-band h2 { margin-bottom: 12px; }
.ph-feature-band p { color: var(--ph-text-2); margin-bottom: 22px; max-width: 52ch; }

/* ============================================================== faq ===== */
.ph-faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.ph-faq__item {
  border-radius: var(--ph-r); border: 1px solid var(--ph-line);
  background: var(--ph-surface); overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.ph-faq__item[open] { border-color: rgba(124, 58, 237, .45); background: var(--ph-surface-2); }
.ph-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem; color: var(--ph-text);
}
.ph-faq__q::-webkit-details-marker { display: none; }
.ph-faq__q::after {
  content: ""; flex: none;
  width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--ph-text-2); border-bottom: 2px solid var(--ph-text-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s ease, border-color .3s ease;
}
.ph-faq__item[open] .ph-faq__q::after {
  transform: rotate(-135deg) translateY(-2px); border-color: var(--ph-pink);
}
.ph-faq__a { padding: 0 22px 20px; color: var(--ph-text-2); font-size: .93rem; line-height: 1.75; }
.ph-faq__a p:last-child { margin-bottom: 0; }

/* ======================================================== closing cta === */
.ph-cta {
  position: relative; overflow: hidden;
  border-radius: var(--ph-r-xl);
  padding: clamp(36px, 5vw, 62px);
  text-align: center;
  background: var(--ph-grad);
}
.ph-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.ph-cta > * { position: relative; }
.ph-cta h2 { color: #fff; margin-bottom: 12px; }
.ph-cta p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin-inline: auto; margin-bottom: 26px; }
.ph-cta .ph-btn {
  background: #fff; color: var(--ph-violet-600); border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.ph-cta .ph-btn:hover { background: #fff; color: var(--ph-pink-600); }

/* ================================================== marquee of titles === */
/* Duplicated track scrolls left forever, and pauses on hover so a name can be read. */
.ph-marquee {
  position: relative; overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--ph-line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ph-marquee__track {
  display: flex; gap: 46px; width: max-content;
  animation: ph-marquee 46s linear infinite;
}
.ph-marquee:hover .ph-marquee__track { animation-play-state: paused; }
.ph-marquee__item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ph-font-display); font-size: .95rem; font-weight: 600;
  color: var(--ph-text-3); white-space: nowrap;
  transition: color .25s ease;
}
.ph-marquee__item:hover { color: var(--ph-text); }
.ph-marquee__item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ph-violet); flex: none;
}
@keyframes ph-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================== stat highlight === */
.ph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.ph-stat {
  padding: 24px 20px; text-align: center;
  border-radius: var(--ph-r-lg); border: 1px solid var(--ph-line);
  background: linear-gradient(180deg, var(--ph-surface), var(--ph-bg-2));
}
.ph-stat b {
  display: block; font-family: var(--ph-font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1;
  background: var(--ph-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 7px;
}
.ph-stat span { font-size: .82rem; color: var(--ph-text-3); }
