/* ────────────────────────────────────────────────────
   Hero section — index.html
   Full-viewport, video background, always-visible content
   ──────────────────────────────────────────────────── */

#hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: none;
  padding-top: 80px; /* clear fixed nav */
  padding-bottom: 96px; /* clear stats strip */
}

/* ── Video background ── */
#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Overlays ── */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 85% 85% at 50% 50%, rgba(5,6,10,0.28) 0%, rgba(5,6,10,0.75) 60%, #05060a 100%);
}

.hero-glow-r {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 55% 60% at 10% 60%, rgba(255,45,74,0.28) 0%, transparent 65%);
  animation: glowpulse-r 5s ease-in-out infinite alternate;
}
.hero-glow-b {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 55% 60% at 90% 60%, rgba(45,127,255,0.24) 0%, transparent 65%);
  animation: glowpulse-b 7s ease-in-out infinite alternate;
}
@keyframes glowpulse-r { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes glowpulse-b { from { opacity: 0.7; } to { opacity: 1; } }

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.055) 0px,
    rgba(0,0,0,0.055) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Animated cyber grid overlay */
.hero-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,45,74,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,127,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridshift 20s linear infinite;
}
@keyframes gridshift {
  from { background-position: 0 0; }
  to   { background-position: 80px 80px; }
}

/* ── HUD corners ── */
#hero .hud {
  z-index: 4;
  transition: opacity 0.3s;
}
#hero .hud.tl { top: 88px; left: 48px; }
#hero .hud.tr { top: 88px; right: 48px; text-align: right; }
#hero .hud.bl { bottom: 96px; left: 48px; }
#hero .hud.br { bottom: 96px; right: 48px; text-align: right; }

/* ── Mobile HUD strip (replaces corners) ── */
.hero-hud-strip {
  display: none;
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  z-index: 4;
  padding: 10px 20px;
  background: rgba(5,6,10,0.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a7180;
  gap: 12px;
}
.hero-hud-strip-item { display: flex; align-items: center; gap: 6px; }
.hero-hud-strip-item .val { color: #f4f5f8; font-size: 10px; font-weight: 600; }
.hero-hud-strip-item .dot-live {
  width: 5px; height: 5px;
  border-radius: 50%; background: #ff2d4a;
  box-shadow: 0 0 6px #ff2d4a;
  animation: pulse 1.5s infinite;
}

/* ── Main content ── */
.hero-body {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  padding: 0 48px;
  animation: fadeslide 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeslide {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.hero-logo {
  width: clamp(160px, 20vw, 260px);
  height: auto;
  margin-bottom: 36px;
  filter:
    drop-shadow(0 0 20px rgba(255,45,74,0.25))
    drop-shadow(0 0 48px rgba(45,127,255,0.18));
  animation: logofade 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes logofade {
  from { opacity: 0; filter: drop-shadow(0 0 0px transparent); }
  to   { opacity: 1; }
}

/* Eyebrow */
.hero-body .hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6a7180;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeslide 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-body .hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, #ff2d4a);
}
.hero-body .hero-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(90deg, #2d7fff, transparent);
}

/* Title */
.hero-body .hero-title {
  font-size: clamp(58px, 10vw, 156px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 28px;
  animation: fadeslide 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-body .hero-title .red {
  color: #ff2d4a;
  text-shadow: 0 0 60px rgba(255,45,74,0.5), 0 0 120px rgba(255,45,74,0.22);
  display: inline-block;
}
.hero-body .hero-title .blue {
  color: #2d7fff;
  text-shadow: 0 0 60px rgba(45,127,255,0.5), 0 0 120px rgba(45,127,255,0.22);
  display: inline-block;
}

/* Sub-headline */
.hero-sub {
  font-size: clamp(16px, 1.6vw, 21px);
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 44px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  animation: fadeslide 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* CTAs */
.hero-body .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeslide 0.9s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Override btn sizes for hero */
#hero .btn {
  font-size: 11px;
  padding: 16px 28px;
  letter-spacing: 0.22em;
}
#hero .btn.primary {
  background: linear-gradient(110deg, #ff2d4a 0%, #b85cff 50%, #2d7fff 100%);
  border: none;
  position: relative;
  overflow: hidden;
  transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 32px rgba(255,45,74,0.18), 0 0 64px rgba(45,127,255,0.1);
}
#hero .btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
#hero .btn.primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255,45,74,0.28), 0 0 80px rgba(45,127,255,0.14);
}
#hero .btn.primary:hover::after { transform: translateX(120%); }

#hero .btn.ghost {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  transition: all 0.22s;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
}
#hero .btn.ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #f4f5f8;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* ── Stats strip ── */
.hero-stats {
  position: absolute;
  bottom: 32px; /* clear the fixed status bar */
  left: 0; right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.09);
  background: rgba(5,6,10,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hstat {
  padding: 22px 32px;
  border-left: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.hstat:first-child { border-left: none; }
.hstat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}
.hstat:hover { background: rgba(255,255,255,0.02); }
.hstat:hover::before { opacity: 1; }

.hstat-num {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f4f5f8;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.hstat-num span {
  font-size: 0.48em;
  color: #6a7180;
  font-weight: 400;
  margin-left: 3px;
}
.hstat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a7180;
  margin-top: 7px;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 140px; /* above stats strip */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  animation: fadein 2.5s 1.5s both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.scroll-chevron {
  width: 12px; height: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transform: rotate(45deg);
  animation: chevron 1.8s ease-in-out infinite;
}
@keyframes chevron {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.9; }
}

/* ── Mobile (≤820px) ── */
@media (max-width: 820px) {
  #hero {
    min-height: 100svh;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Stats strip hidden on mobile via inline style — no bottom padding needed */
  .hero-stats { display: none !important; }

  .hero-body {
    padding: 0 20px;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-logo {
    width: clamp(120px, 40vw, 180px);
    margin-bottom: 24px;
  }

  .hero-body .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.22em;
    gap: 10px;
  }
  .hero-body .hero-eyebrow::before,
  .hero-body .hero-eyebrow::after { width: 20px; }

  .hero-body .hero-title {
    font-size: clamp(48px, 15vw, 80px);
    letter-spacing: -0.04em;
    line-height: 0.93;
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.55;
  }

  .hero-body .hero-actions {
    gap: 10px;
  }
  #hero .btn {
    font-size: 10px;
    padding: 14px 22px;
    letter-spacing: 0.18em;
  }

  /* Stats: 2×2 grid */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    bottom: 32px; /* keep above status bar on mobile too */
  }
  .hstat {
    padding: 14px 18px;
  }
  .hstat:nth-child(3) { border-left: none; }
  .hstat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.07); }

  /* Mobile HUD strip */
  .hero-hud-strip { display: flex; }

  /* Hide corner HUD on mobile */
  #hero .hud { display: none; }

  /* Scroll hint smaller on mobile */
  .hero-scroll-hint { display: none; }

  #hero-bg { object-position: 60% center; }
}

/* ── Small phones (≤420px) ── */
@media (max-width: 420px) {
  .hero-body .hero-title {
    font-size: clamp(42px, 18vw, 62px);
  }
  .hero-hud-strip { font-size: 8px; }
  .hero-hud-strip-item:nth-child(3) { display: none; }
}
