/* ==========================================================================
   Hero：矩阵墙
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(40px, 6vh, 72px);
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  pointer-events: auto;
}

.hero__stage {
  pointer-events: none;
}

.hero__stage .hero__canvas {
  pointer-events: auto;
}

/* 无 WebGL2 时的静态兜底：一面用渐变拼出来的卡片墙 */
.hero__fallback {
  position: absolute;
  inset: -10% -10% 0;
  display: none;
  background:
    radial-gradient(60% 50% at 60% 55%, rgba(var(--brand-rgb), 0.18), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(12, 31, 21, 0.06) 14px 15px, transparent 15px 64px),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(12, 31, 21, 0.06) 20px 21px, transparent 21px 112px);
  transform: perspective(900px) rotateX(24deg);
  transform-origin: 50% 100%;
}

.hero.no-gl .hero__fallback {
  display: block;
}

.hero.no-gl .hero__canvas {
  display: none;
}

/* 让文字压得住：左下强、右上弱的白色柔光 */
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.7) 26%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(255, 255, 255, 0.95) 10%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
}

/* 左上角的品牌标：不吸顶，跟着首屏一起滚走 */
.hero__top {
  position: absolute;
  top: clamp(20px, 3.2vw, 36px);
  left: 0;
  right: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.hero__top .lang {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__content {
  position: relative;
  pointer-events: none;
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
}

.hero__content a,
.hero__content button {
  pointer-events: auto;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.2), 0 0 16px var(--brand);
}

.hero__title {
  max-width: 11em;
  text-shadow:
    0.045em -0.032em 0 rgba(var(--brand-rgb), 0.45),
    0 2px 30px rgba(255, 255, 255, 0.9);
}

html[lang="en"] .hero__title {
  max-width: 12.5em;
  font-size: clamp(44px, 7.4vw, 116px);
}

.hero__lead {
  max-width: 40em;
  color: var(--text-2);
}

.hero__lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.hero__ctas .btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: clamp(24px, 5vh, 64px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.hero__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero__platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__platforms li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.25);
}

.hero__platforms li.hero__platforms-label {
  padding: 0 6px 0 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 13px;
  color: var(--text-3);
}

.hero__platforms li.hero__platforms-label::before {
  display: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  opacity: 0.7;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--brand);
  animation: hero-scroll 2s var(--ease-in-out) infinite;
}

@keyframes hero-scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 96px;
  }
  .hero__top .logo-lockup {
    height: 30px;
  }
  .hero__scroll {
    display: none;
  }
  .hero__veil {
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 20%),
      linear-gradient(to top, #ffffff 5%, rgba(255, 255, 255, 0.82) 45%, rgba(255, 255, 255, 0.15) 80%);
  }
  .hero__ctas .btn {
    flex: 1 1 auto;
  }
}
