/* css/hero.css — the hero band (index only). Scoped under body.index-hero.
   Named .hero-dark from when the band was near-black; it is off-white now. */

/* --- Hero band --- */
.hero-dark {
  position: relative;
  background: var(--color-band);
  color: var(--color-body);
  overflow: hidden;
  padding: 118px 0 0;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* slowly rotating conic aurora */
.hero-aurora {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 170%;
  background: conic-gradient(from 0deg,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.15),
    rgba(14, 165, 233, 0.09),
    rgba(56, 189, 248, 0));
  filter: blur(110px);
  animation: omSpin 34s linear infinite;
}

/* drifting hairline grid, masked to the upper centre */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 74, 110, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 74, 110, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: omDrift 14s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 72%);
}

/* orbital system painted by js/hero.js */
.hero-solar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

/* Wash keeping the copy readable over the artwork. It used to be a dark
   vignette under white text; inverted, it is an off-white scrim under dark.
   Much weaker than its predecessor on purpose: dark text on off-white is
   already legible, so the scrim only has to calm the artwork behind the
   headline, not erase it. At 0.9 it hid the orbit diagram completely. */
.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 52% 42% at 52% 42%,
    rgba(247, 249, 251, 0.78), rgba(247, 249, 251, 0.34) 58%, rgba(247, 249, 251, 0) 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  /* design: 1080px of content inside the band's 40px side padding */
  max-width: calc(1080px + 2 * var(--gutter));
}

/* --- Badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.14);
  color: var(--color-accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Title --- */
.hero-title {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-size: clamp(44px, 6.4vw, 94px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 26px 0 0;
  text-wrap: balance;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-line > span { display: inline-block; }
.hero-accent {
  background: linear-gradient(100deg, #0EA5E9, #38BDF8 45%, #0369A1);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--color-body);
  font-size: 18px;
  line-height: 1.62;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 38px 0 0;
  flex-wrap: wrap;
}
.btn-hero svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-smooth); }
.btn-hero:hover svg { transform: translateX(4px); }

/* --- Stat strip (currently toggled off on the homepage) --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 88px 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero-stat {
  padding: 34px 20px;
  border-right: 1px solid var(--color-border);
  transition: background 0.35s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--color-accent-soft); }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  line-height: 1.1;
}
.hero-stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--color-muted);
}

/* --- Capability strip (replaces the old vanity counters) --- */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 72px auto 0;
  max-width: 860px;
}
.hero-proof .chip { padding: 10px 18px; font-size: 14px; }
@media (max-width: 640px) {
  .hero-proof { margin-top: 48px; gap: 8px; }
  .hero-proof .chip { padding: 9px 15px; font-size: 13px; }
}

/* --- Scroll cue --- */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 56px 0 0;
  padding-bottom: 70px;
}
.hero-scroll-rail {
  position: relative;
  width: 1px;
  height: 52px;
  background: var(--line-band);
  overflow: hidden;
}
.hero-scroll-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
  animation: omScroll 2.4s ease-in-out infinite;
}
.hero-scroll span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-dim);
}

@media (max-width: 900px) {
  .hero-dark { padding-top: 78px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .hero-stat-num { font-size: 36px; }
}
@media (max-width: 640px) {
  .hero-dark { padding-top: 56px; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-stats { margin-top: 56px; }
  .hero-stat { padding: 26px 14px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* --- Cinematic entrance (staggered). Reduced-motion safe. --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-dark .hero-badge  { animation: omFade 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-dark .hero-line > span { animation: omRise 0.95s var(--ease-smooth) both; }
  .hero-dark .hero-line:nth-child(1) > span { animation-delay: 0.08s; }
  .hero-dark .hero-line:nth-child(2) > span { animation-delay: 0.22s; }
  .hero-dark .hero-sub    { animation: omFade 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }
  .hero-dark .hero-cta    { animation: omFade 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.66s both; }
  .hero-dark .hero-stats  { animation: omFade 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.82s both; }
  .hero-dark .hero-proof  { animation: omFade 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.82s both; }
  .hero-badge-dot,
  .eyebrow-dot { animation: omBlink 2.2s ease-in-out infinite; }
}
