/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Layered backgrounds */
.hero-bg-gif {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 60% 40%, rgba(0,229,255,.06) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(7,9,15,.3) 0%, rgba(7,9,15,.7) 60%, var(--bg) 100%);
  z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Scanline */
.hero-scanline {
  position: absolute; inset: 0; z-index: 3;
  overflow: hidden; pointer-events: none;
}
.hero-scanline::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(transparent, rgba(0,229,255,.08), transparent);
  animation: scanline 10s linear infinite;
}
@keyframes scanline {
  from { top: -3px; }
  to   { top: 100%; }
}

/* Corner brackets */
.hero-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: rgba(0,229,255,.4);
  border-style: solid;
  z-index: 4;
}
.hero-corner.tl { top: 80px; left: 20px; border-width: 1px 0 0 1px; }
.hero-corner.tr { top: 80px; right: 20px; border-width: 1px 1px 0 0; }
.hero-corner.bl { bottom: 20px; left: 20px; border-width: 0 0 1px 1px; }
.hero-corner.br { bottom: 20px; right: 20px; border-width: 0 1px 1px 0; }

/* Content */
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0 3rem;
  width: min(100vw, 860px);
  max-width: 860px;
  margin: 0 auto;
}

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(0,229,255,.06);
  border: 1px solid var(--cyan-border);
  border-radius: 100px;
  padding: .35rem 1rem .35rem .6rem;
  margin-bottom: 2rem;
  align-self: center;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50%      { opacity: .6; box-shadow: 0 0 2px #22c55e; }
}
.status-txt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--g300);
  text-transform: uppercase;
}
.status-ver {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  margin-left: .2rem;
}

/* Heading */
.hero-heading {
  width: 100%;
  text-align: center;
  margin-bottom: 1.8rem;
  min-height: 3.4em;
}
.hero-heading .line-1 {
  display: block;
  color: var(--white);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
}
.hero-heading .line-2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255,255,255,.35);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
}
.hero-heading .line-3 {
  display: inline-block;
  color: var(--cyan);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  white-space: nowrap;
  min-width: 14ch;
  filter: drop-shadow(0 0 20px rgba(0,229,255,.4));
}

.line-3-wrap {
  min-height: 1.4em;
  height: auto;
  overflow: visible;
  display: block;
}

/* Typewriter cursor */
.type-cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--g300);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: center;
  min-height: 90px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
  table-layout: fixed;
}
.hero-stat {
  width: 100%;
}
.hero-stat {
  padding: 1.1rem .75rem;
  border-right: 1px solid var(--cyan-border);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hs-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0,229,255,.5));
  display: block;
  width: 100%;
  text-align: center;
}
.hs-lbl {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--g500);
  text-transform: uppercase;
  margin-top: .3rem;
}

/* Right visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-gif-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cyan-border);
  box-shadow: 0 0 60px rgba(0,229,255,.1), inset 0 0 30px rgba(0,229,255,.04);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-gif-wrap img {
  width: 100%;
  filter: hue-rotate(150deg) saturate(1.3) brightness(.9);
}
.hero-gif-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.06), transparent 60%, rgba(0,229,255,.04));
  pointer-events: none;
}
/* Corner ticks on gif card */
.gif-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  z-index: 2;
}
.gif-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.gif-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Floating label badge on visual */
.hero-badge {
  position: absolute;
  bottom: -16px;
  right: -12px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  z-index: 3;
}
.hb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-green 2s ease infinite;
}
.hb-text {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--g300);
  letter-spacing: .08em;
  line-height: 1.4;
}
.hb-text strong { color: var(--white); display: block; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 4rem; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--cyan-border); }
}

/* ── Centered layout overrides ── */
.hero-heading {
  width: 100%;
  text-align: center;
  margin-bottom: 1.8rem;
}
.hero-stats {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  position: relative;
}
/* Prevent stats from resizing when counter numbers change */
.hero-stat {
  min-width: 0;
}
.hs-num {
  min-width: 3ch;        /* reserve space so layout never shifts */
  display: inline-block;
}


/* Prevent nowrap overflow on small screens */
@media (max-width: 600px) {
  .hero-heading .line-1,
  .hero-heading .line-2,
  .hero-heading .line-3 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    white-space: normal;
  }
}

/* ─── MOBILE HERO ─── */
@media (max-width: 768px) {
  #hero { padding-top: var(--nav-h); }

  .hero-inner {
  width: 100%;
  max-width: 860px;
}

  .hero-heading .line-1,
  .hero-heading .line-2,
  .hero-heading .line-3 {
    white-space: normal;
    min-width: 0;
  }
}

  .hero-desc {
    font-size: .93rem;
    padding: 0 .25rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  .hero-stats-outer { padding: 0 1.25rem 2.5rem; }

  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  /* make 4-cell grid into 2x2 */
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3) { border-top: 1px solid var(--cyan-border); }
  .hero-stat:nth-child(4) { border-top: 1px solid var(--cyan-border); border-right: none; }

  .hero-status { font-size: .6rem; }
  .status-txt  { display: none; }

  /* hide corner brackets on small screens */
  .hero-corner { display: none; }


