/* Sky → Constellation → Blueprint → System — homepage hero only (#hero) */

#hero {
  --bg: #070b1d;
  --bg2: #0b1226;
  --card: #0e1428;
  --ln: rgba(148, 163, 184, 0.14);
  --ln2: rgba(148, 163, 184, 0.26);
  --b1: #2563eb;
  --b2: #3b82f6;
  --cy: #38bdf8;
  --tx: #f1f5f9;
  --mu: #94a3b8;
  --mu2: #64748b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-mono-hero: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

#hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--ln2);
  border-radius: 99px;
  font-size: 13px;
  color: var(--mu);
}

#hero .badge b {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cy);
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
}

#hero h1 {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 26px 0 22px;
  color: var(--tx);
}

#hero h1 .acc {
  color: var(--cy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

#hero .hsub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: #cbd5e1;
  max-width: 40ch;
  margin: 0;
}

#hero .hnote {
  font-size: 14px;
  color: var(--mu);
  max-width: 48ch;
  margin-top: 10px;
}

#hero .hcta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

#hero .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

#hero .btn.p {
  background: var(--tx);
  color: var(--bg);
}

#hero .btn.p:hover {
  background: var(--cy);
}

#hero .btn.p .ar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--tx);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.4s var(--ease);
}

#hero .btn.p:hover .ar {
  transform: translateX(-4px);
}

#hero .btn.g {
  border: 1px solid var(--ln2);
  color: var(--tx);
}

#hero .btn.g:hover {
  border-color: var(--cy);
  color: var(--cy);
}

#hero .ln {
  display: block;
  overflow: hidden;
}

/* Glyphs stay on screen from the first frame so the title can paint immediately. */
#hero .ln > span {
  display: inline-block;
  animation: sky-hero-line 0.85s var(--ease) both;
}

#hero .ln:nth-child(2) > span {
  animation-delay: 0.08s;
}

#hero .rv {
  animation: sky-hero-rise 0.7s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes sky-hero-line {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

@keyframes sky-hero-rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

#hero .w {
  width: min(1240px, 90vw);
  margin-inline: auto;
}

#hero .mag {
  will-change: transform;
  transition: transform 0.5s var(--ease), background 0.3s;
}

#hero .hstats {
  display: none;
}

@media (max-width: 600px) {
  #hero .hcta .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero *,
  #hero *:before,
  #hero *:after {
    animation: none !important;
    transition: none !important;
  }

  #hero .rv {
    transform: none;
  }

  #hero .ln > span {
    transform: none;
  }
}

/* sky hero layout */
#hero.sky {
  position: relative;
  height: 250vh;
  background: var(--bg);
  color: var(--tx);
}

#hero.sky .stick {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

#hero.sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hero.sky .hw {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

#hero.sky .copy {
  max-width: 560px;
}

#hero.sky:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30vh;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

#hero .hint {
  position: absolute;
  bottom: 34px;
  right: 50%;
  transform: translateX(50%);
  z-index: 3;
  font: 11px var(--font-mono-hero);
  letter-spacing: 0.2em;
  color: var(--mu);
  direction: ltr;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s;
  pointer-events: none;
}

#hero .hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--cy), transparent);
  animation: sky-hero-hn 2s var(--ease) infinite;
}

@keyframes sky-hero-hn {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

#hero .prog {
  position: absolute;
  left: 5vw;
  bottom: 34px;
  z-index: 3;
  font: 11px var(--font-mono-hero);
  color: var(--mu);
  direction: ltr;
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: none;
}

#hero .prog b {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--ln2);
  position: relative;
  overflow: hidden;
}

#hero .prog b i {
  position: absolute;
  inset: 0;
  background: var(--cy);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

#hero .stage {
  font: 11px var(--font-mono-hero);
  color: var(--cy);
  letter-spacing: 0.14em;
  margin-top: 26px;
  direction: ltr;
  text-align: right;
  height: 16px;
}

@media (max-width: 1000px) {
  #hero.sky {
    height: 210vh;
  }

  #hero.sky .hw {
    align-items: flex-end;
    padding-bottom: 110px;
  }

  #hero .prog {
    display: none;
  }
}
