/* =========================================================================
   css/hero.css  —  ПОЛНАЯ ЗАМЕНА (вариант A: чистый full-bleed hero)
   Что изменилось против старой версии:
     • убран встроенный видео-плеер (.hero-video-wrap и всё с ним) —
       видео теперь играет на весь фон (.hero-bg-video, чётко, без блюра);
     • убран ряд соц-иконок из hero (.hero-socials);
     • .hero-tagline больше не в тяжёлой стеклянной плашке — просто текст;
     • добавлен .hero-microcopy (мелкая строка под формой);
     • блок предрегистрации облегчён (тонкий бар, мелкие точки).
   Токены (--bg, --accent, --shadow-ink, --cta-bg …) берутся из base.css.
   ========================================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 132px;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
/* full-bleed ЧЁТКОЕ геймплейное видео (без блюра — теперь это главный акцент) */
.hero-bg-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  pointer-events: none;
}
.hero-bg-video.active { opacity: 1; }
#heroBgImg { transition: opacity 1.2s ease; }
.hero-bg.video-playing #heroBgImg { opacity: 0; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(12,4,32,0.55) 0%, rgba(12,4,32,0.25) 38%,
      rgba(12,4,32,0.55) 72%, rgba(12,4,32,0.96) 100%),
    radial-gradient(ellipse 55% 42% at 50% 42%, rgba(255,40,180,0.14) 0%, transparent 62%);
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 800px;
  min-height: clamp(300px, 40vh, 430px);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  justify-content: center;
}
/* HUD status chip — modeled on the in-game status readouts (mono + LED + dark
   glass + neon edge). Deliberately NOT a CTA button: no chunky 0 Npx 0 shadow,
   thin border, mono face instead of the buttons' italic Montserrat. */
.hero-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, rgba(40,15,90,0.62), rgba(12,4,32,0.66));
  border: 1.5px solid rgba(255,78,201,0.55);
  padding: 8px 16px 8px 13px; border-radius: var(--r-md);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(255,78,201,0.22), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
/* faint scanlines, like the archive/console panels */
.hero-badge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
/* live status LED */
.hero-badge::before {
  content: ""; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 10px var(--accent-hot), 0 0 18px var(--accent-hot);
  animation: badge-pulse 1.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.9; letter-spacing: 4px;
  text-transform: uppercase; color: #fff;
  text-shadow:
    -3px -3px 0 var(--shadow-ink), 3px -3px 0 var(--shadow-ink),
    -3px  3px 0 var(--shadow-ink), 3px  3px 0 var(--shadow-ink),
    var(--elev-5),
    -6px 0 30px rgba(255,40,180,0.5), 6px 0 30px rgba(0,255,200,0.4),
    0 0 60px rgba(255,80,200,0.3);
}
/* tagline — ЛЁГКИЙ, без стеклянной плашки */
.hero-tagline {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600; line-height: 1.5;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 14px rgba(12,4,32,0.9), 0 1px 2px rgba(0,0,0,0.6);
  max-width: 540px;
}
.hero-subscribe {
  display: flex;
  width: 100%; max-width: 440px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 3px solid var(--shadow-ink);
  box-shadow: var(--elev-3);
  margin-top: 2px;
}
/* input itself has outline:none + overflow:hidden wrapper, so show the focus
   ring on the wrapper instead (keeps it from being clipped) */
.hero-subscribe:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero-subscribe input {
  flex: 1; min-width: 0;
  padding: 15px 18px;
  background: rgba(8,3,22,0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: none; outline: none;
  color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
}
.hero-subscribe input::placeholder { color: rgba(255,255,255,0.4); }
.hero-subscribe button {
  padding: 15px 24px;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap; transition: filter var(--t-snappy);
}
.hero-subscribe button:hover { filter: brightness(1.1); }
.hero-subscribe-thanks {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 1px; color: var(--accent);
}
.hero-subscribe-thanks[hidden] { display: none; }
.hero-subscribe-status {
  min-height: 1.4em;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  color: #ff9abf;
}
.hero-subscribe-status:empty { display: none; }
.hero-microcopy {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.5);
}
.hero-microcopy a { color: rgba(255,255,255,0.82); text-decoration: underline; }
.hero-scroll-hint {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px; color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* =========================================================================
   PRE-REGISTRATION — ОБЛЕГЧЁННЫЙ (id/классы те же → JS не трогаем)
   ========================================================================= */
.full-width-banner {
  width: 100%;
  background: linear-gradient(180deg, rgba(12,4,32,0.92), rgba(18,7,46,0.96));
  border-top: 1px solid rgba(0,255,234,0.18);
  padding: 22px 24px 26px;
  position: relative; z-index: 10;
}
.pre-reg-banner-content {
  max-width: 920px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px;
}
.pre-reg-header { display: flex; justify-content: space-between; align-items: baseline; }
.pre-reg-title {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.pre-reg-count {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 10px var(--accent-soft);
}
.pre-reg-bar-container {
  position: relative; height: 7px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  margin: 14px 0 26px 0;
}
.pre-reg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--accent) 100%);
  border-radius: var(--r-pill); width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-soft);
}
.pre-reg-milestone {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; z-index: 2;
  color: inherit;
  width: 18px; height: 18px; justify-content: center;
}
.milestone-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px var(--bg);
  transition: all var(--t-smooth) ease; cursor: pointer;
}
.pre-reg-milestone.reached .milestone-dot {
  background: var(--accent); border-color: #fff;
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--accent);
}
.milestone-label {
  position: absolute; top: 15px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.5); white-space: nowrap; transition: color var(--t-smooth);
}
.pre-reg-milestone.reached .milestone-label {
  color: #fff; text-shadow: 0 0 8px var(--accent-soft);
}
.milestone-tooltip {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(12,4,32,0.96);
  border: 1px solid rgba(0,255,234,0.25);
  border-radius: var(--r-md); padding: 14px; width: 210px; text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: all var(--t-base) cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 20; pointer-events: none;
}
.pre-reg-milestone:hover .milestone-tooltip,
.pre-reg-milestone:focus-visible .milestone-tooltip,
.pre-reg-milestone.is-open .milestone-tooltip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.milestone-tooltip::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px; background: rgba(12,4,32,0.96);
  border-right: 1px solid rgba(0,255,234,0.25);
  border-bottom: 1px solid rgba(0,255,234,0.25);
}
.milestone-tooltip .reward-icon-text {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  color: rgba(255,255,255,0.6);
  display: inline-block; padding: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.05); margin-bottom: 8px;
}
.pre-reg-milestone.reached .milestone-tooltip .reward-icon-text {
  color: var(--accent); background: rgba(0,255,234,0.15);
}
.milestone-tooltip .reward-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.milestone-tooltip .reward-desc { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.4; }

@media (max-width: 600px) {
  .hero-scroll-hint { display: none; }
  .pre-reg-header { flex-direction: column; align-items: center; gap: 6px; }
  .milestone-tooltip { width: min(210px, calc(100vw - 32px)); }
  #milestone-100 .milestone-tooltip {
    transform: translateX(-10%) translateY(8px);
  }
  #milestone-100:hover .milestone-tooltip,
  #milestone-100:focus-visible .milestone-tooltip,
  #milestone-100.is-open .milestone-tooltip {
    transform: translateX(-10%) translateY(0);
  }
  #milestone-100 .milestone-tooltip::after { left: 10%; }
  #milestone-1000 .milestone-tooltip {
    transform: translateX(-90%) translateY(8px);
  }
  #milestone-1000:hover .milestone-tooltip,
  #milestone-1000:focus-visible .milestone-tooltip,
  #milestone-1000.is-open .milestone-tooltip {
    transform: translateX(-90%) translateY(0);
  }
  #milestone-1000 .milestone-tooltip::after { left: 90%; }
}
