/* Hero met 3D code-J */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: linear-gradient(to top, transparent, var(--bg) 92%),
    repeating-linear-gradient(
      90deg,
      rgba(47, 191, 138, 0.16) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(47, 191, 138, 0.16) 0 1px,
      transparent 1px 64px
    );
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 85%);
  pointer-events: none;
  animation: floor 6s linear infinite;
}
@keyframes floor {
  to {
    background-position:
      0 0,
      0 0,
      0 64px;
  }
}
.hero::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -260px;
  background: radial-gradient(
    closest-side,
    rgba(47, 191, 138, 0.2),
    transparent
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: min(744px, calc(100svh - var(--header-h)));
  padding-block: 40px 80px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(3.1rem, 7.6vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.hero h1 .line {
  display: block;
}
.hero h1 .glow {
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero h1 .glow {
  background: linear-gradient(
    100deg,
    var(--fg) 0%,
    var(--green) 45%,
    #9df0cf 60%,
    var(--fg) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30em;
}
.hero .lead b {
  color: var(--fg);
  font-weight: 500;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--edge);
}
.proof svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.stage {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 640px;
  justify-self: end;
  min-width: 0;
}
#gl {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
#gl:active {
  cursor: grabbing;
}
.fallback {
  position: absolute;
  inset: 18%;
  display: none;
  color: var(--chrome);
}
.no-webgl .fallback {
  display: block;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--edge-2);
  z-index: 2;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--green);
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  60% {
    transform: translateY(10px);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 10px;
    gap: 0;
    padding-bottom: 56px;
  }
  .stage {
    order: -1;
    max-width: 440px;
    justify-self: center;
    margin-bottom: -30px;
  }
  .scroll-hint {
    display: none;
  }
}
