/**
 * Landing hero — "modern technology operating an ancient pixel-magic system".
 *
 * The hero IS the thesis: a live summoning gate. The same Atmosphere and
 * SpellCircle engines that power the mint reveal run here at low intensity, so
 * the homepage and the reveal are visibly the same world.
 *
 * Palette is taken from the collection's own class triplets (docs/PALETTE.md):
 * arcane #8b2fe8 / #ff4dff, warlock-necro #28a838 / #c0ff30, legendary #ffd479.
 * Nothing here is invented colour.
 */

:root {
  --hz-void: #0a0612;
  --hz-arcane: #8b2fe8;
  --hz-magenta: #ff4dff;
  --hz-lime: #c0ff30;
  --hz-green: #28a838;
  --hz-gold: #ffd479;
  --hz-ink: #f2ecff;
  --hz-dim: #9a8fb5;
}

/* ------------------------------------------------------------------ hero */
.hz-hero {
  position: relative;
  /* FULL-BLEED, explicitly. The hero lives on the <header> element, and the
     page's generic header rule caps that at 1100px centered — while the
     atmosphere/spell canvases size themselves from the viewport. Result on
     every desktop wider than ~1140px: a 1100px hero box with viewport-wide
     canvases hanging out of it, spell circle visibly off-center. The inner
     content keeps its own 1080px cap via .hz-inner. */
  max-width: none;
  margin: 0;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--hz-void);
  isolation: isolate;
  padding: clamp(28px, 6vh, 72px) clamp(16px, 5vw, 48px);
}

.hz-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hz-hero .hz-atmos { z-index: 0; }
.hz-hero .hz-spell { z-index: 1; opacity: 0.55; }

/* scanline + vignette, same CRT language as the reveal */
.hz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.42) 1px, transparent 1px, transparent 3px);
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.hz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(4,2,10,.75) 100%);
}

.hz-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1080px;
  text-align: center;
}

/* eyebrow — terminal register, states what this literally is */
.hz-eyebrow {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.76rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--hz-lime);
  text-shadow: 0 0 14px rgba(192, 255, 48, 0.55);
}
.hz-eyebrow b { color: var(--hz-magenta); font-weight: 400; text-shadow: 0 0 14px rgba(255,77,255,.6); }

/* wordmark — heavy mono, wide tracking, layered arcane glow */
.hz-wordmark {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.1rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hz-ink);
  text-shadow:
    0 0 18px rgba(139, 47, 232, 0.85),
    0 0 46px rgba(139, 47, 232, 0.5),
    0 0 90px rgba(255, 77, 255, 0.3);
}
.hz-wordmark .hz-z {
  color: var(--hz-lime);
  text-shadow: 0 0 18px rgba(192,255,48,.9), 0 0 52px rgba(40,168,56,.5);
}
.hz-sub {
  margin: clamp(10px, 1.8vh, 18px) auto 0;
  max-width: 46ch;
  font-size: clamp(0.88rem, 2.2vw, 1.06rem);
  color: var(--hz-dim);
  line-height: 1.6;
}
.hz-sub strong { color: var(--hz-ink); font-weight: 600; }

/* ------------------------------------------------- real numbers, not fluff */
.hz-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 4vw, 44px);
  margin: clamp(20px, 3.4vh, 38px) 0 0;
  padding: 0;
  list-style: none;
}
.hz-stats li { text-align: center; }
.hz-stat-n {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--hz-ink);
  text-shadow: 0 0 16px rgba(139,47,232,.6);
}
.hz-stat-l {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.4vw, 0.74rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hz-dim);
}

/* ------------------------------------------------------------------- CTAs */
.hz-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.6vh, 40px);
}
.hz-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.hz-btn--primary {
  color: #12061f;
  background: linear-gradient(135deg, var(--hz-magenta), var(--hz-arcane));
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  box-shadow: 0 0 28px rgba(139, 47, 232, 0.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.hz-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(255, 77, 255, 0.8); }
.hz-btn--ghost {
  color: var(--hz-ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 255, 48, 0.4);
}
.hz-btn--ghost:hover { border-color: var(--hz-lime); box-shadow: 0 0 26px rgba(192,255,48,.35); transform: translateY(-2px); }
.hz-btn:focus-visible { outline: 2px solid var(--hz-lime); outline-offset: 3px; }

/* --------------------------------------------- class spectrum (real data) */
/* 23 classes, each shown in its own triplet accent from PALETTE.md. This is
   information, not ornament: it is literally the collection's class system. */
.hz-spectrum {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: clamp(22px, 3.4vh, 40px);
  flex-wrap: wrap;
}
.hz-spectrum span {
  width: clamp(10px, 2.4vw, 22px);
  height: 5px;
  border-radius: 2px;
  box-shadow: 0 0 10px currentColor;
  background: currentColor;
  opacity: 0.85;
}
.hz-spectrum-label {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hz-dim);
}

/* --------------------------------------------------- summoning band (art) */
.hz-band {
  position: relative;
  z-index: 3;
  margin-top: clamp(26px, 4vh, 46px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hz-band-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hz-scroll 46s linear infinite;
}
.hz-band img {
  width: clamp(74px, 12vw, 116px);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid rgba(139, 47, 232, 0.5);
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 0 22px rgba(139, 47, 232, 0.28);
  background: #05060a;
}
@keyframes hz-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hz-band:hover .hz-band-track { animation-play-state: paused; }

/* scroll cue */
.hz-scroll-cue {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hz-dim);
  animation: hz-bob 2.4s ease-in-out infinite;
}
@keyframes hz-bob { 0%,100% { transform: translate(-50%, 0); opacity:.55 } 50% { transform: translate(-50%, 6px); opacity:1 } }

@media (max-width: 767px) {
  .hz-hero { min-height: auto; padding-bottom: 40px; }
  .hz-hero .hz-spell { opacity: 0.38; }
  .hz-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hz-band-track { animation: none; }
  .hz-scroll-cue { animation: none; }
  .hz-hero .hz-spell { display: none; }
}
