/* ==========================================================================
   Hero — full-screen, canvas-backed, minimal chrome
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
  background: radial-gradient(120% 90% at 50% 20%, rgba(79,140,255,0.06), transparent 60%);
}

/* Holographic globe scene (js/hero-globe.js). Lives directly inside
   .hero, full-bleed behind the headline and the product-ecosystem
   layer (css/hero-ecosystem.css) — see index.php. */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s var(--ease-out);
}
#hero-canvas.ready { opacity: 1; }

/* Soft vertical scrim so the headline and buttons stay legible over a
   much busier background than a plain gradient. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(8,9,11,0.35), transparent 70%),
    linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.1) 30%, rgba(8,9,11,0.1) 68%, rgba(8,9,11,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(95,212,216,0.7);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; will-change: transform; }

.hero h1 .accent {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(95,212,216,0.28));
}

.hero-sub {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: #ffffff;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover { background: var(--cyan); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--paper-dim);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--silver); color: var(--paper); }

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
}

.hero-scroll-cue .track {
  width: 1px;
  height: 40px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}

.hero-scroll-cue .track::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  animation: scroll-cue 2.2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---- HUD stat chips floating around the hero, desktop only ---- */
.hero-hud {
  position: absolute;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-dim);
  display: none;
  align-items: center;
  gap: 8px;
  animation: hud-float 6s ease-in-out infinite;
}

.hero-hud .val { color: var(--paper); font-weight: 600; }
.hero-hud .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px 1px rgba(95,212,216,0.6); }

@media (min-width: 1100px) {
  .hero-hud { display: inline-flex; }
  .hero-hud.hud-1 { top: 22%; left: 4%; animation-delay: 0s; }
  .hero-hud.hud-2 { top: 30%; right: 5%; animation-delay: 1.4s; }
  .hero-hud.hud-3 { bottom: 26%; left: 8%; animation-delay: 2.6s; }
}

@keyframes hud-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- kinetic heading split: word rise-in on scroll ---- */
[data-kinetic] .k-word {
  display: inline-block;
  overflow: hidden;
}
[data-kinetic] .k-word span {
  display: inline-block;
  will-change: transform;
}
