/* =========================================================
   XINGHUO — Home hero: full-bleed product banner
   ========================================================= */

.page-home .site-header,
.page-home .site-header.is-scrolled {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero {
  --hero-height: max(640px, 82svh);
  min-height: var(--hero-height);
  background: #0b0b0c;
  color: #fff;
  touch-action: pan-y;
}

.hero-media,
.hero-media.stage-slides {
  z-index: 0;
  background: #0b0b0c;
}

.hero-media .stage-slide {
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.hero-media .stage-photo img {
  filter: saturate(0.86) contrast(1.02) brightness(0.74);
  transform: scale(1.015);
  transition: transform 7s var(--ease-soft), filter 0.8s ease;
}

.hero-media .stage-slide.is-active .stage-photo img {
  transform: scale(1.06);
}

.hero-media .stage-photo--aidrama img {
  object-position: 50% 45%;
}

.hero-media .stage-photo--team img {
  object-position: 64% 48%;
}

.hero-media .stage-photo--live img {
  object-position: 50% 4%;
}

.hero-media .stage-photo--video img {
  object-position: 55% 68%;
}

.hero-media .stage-photo--geo img {
  object-position: 50% 50%;
}

.hero-media .stage-photo--call img {
  object-position: 50% 10%;
}

.hero-media .stage-photo--phone img {
  object-position: 52% 46%;
}

.hero-media__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 6, 7, 0.9) 0%,
      rgba(6, 6, 7, 0.66) 38%,
      rgba(6, 6, 7, 0.24) 66%,
      rgba(6, 6, 7, 0.4) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 6, 7, 0.52) 0%,
      rgba(6, 6, 7, 0.04) 34%,
      rgba(6, 6, 7, 0.16) 64%,
      rgba(6, 6, 7, 0.74) 100%
    );
}

.hero-banner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--hero-height) - var(--header-h));
  padding-top: clamp(36px, 5vh, 60px);
  padding-bottom: 24px;
}

.hero-copy {
  max-width: 790px;
  margin: auto 0;
  padding-bottom: 0;
}

.hero .hero-title {
  font-size: clamp(52px, 5.8vw, 86px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) 0.12s, transform 1s var(--ease) 0.12s;
}

body.is-ready .hero .hero-title {
  opacity: 1;
  transform: none;
}

.hero-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: max(14px, 13px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 1s var(--ease) 0.5s;
}

body.is-ready .hero-metric {
  opacity: 1;
  transform: none;
}

.hero-metric::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: 0 0 auto;
  align-self: center;
  background: var(--orange);
}

.hero-metric strong {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: max(14px, 20px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-copy.is-switching .hero-kicker,
.hero-copy.is-switching .hero-title,
.hero-copy.is-switching .hero-lead,
.hero-copy.is-switching .hero-actions,
.hero-copy.is-switching .hero-metric {
  animation: heroCopyIn 0.55s var(--ease) both;
}

.hero-copy.is-switching .hero-title {
  animation-delay: 0.04s;
}

.hero-copy.is-switching .hero-lead {
  animation-delay: 0.1s;
}

.hero-copy.is-switching .hero-actions {
  animation-delay: 0.15s;
}

.hero-copy.is-switching .hero-metric {
  animation-delay: 0.2s;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero .hero-kicker {
  margin-bottom: clamp(20px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.6);
}

.hero .hero-kicker .cn {
  color: #fff;
}

.hero .hero-title {
  color: #fff;
}

.hero .hero-title .period {
  color: #fff;
}

.hero .hero-lead {
  max-width: 600px;
  margin-top: clamp(22px, 2.6vw, 32px);
  color: rgba(255, 255, 255, 0.7);
}

.hero .hero-lead strong {
  color: #fff;
}

.hero .hero-actions {
  margin-top: clamp(26px, 3vw, 38px);
}

.hero .hero-note {
  color: rgba(255, 255, 255, 0.52);
}

.hero .hero-proof {
  margin-top: clamp(30px, 3.6vw, 44px);
  padding-top: 0;
  border-top: 0;
}

.hero .hero-proof__item strong {
  color: #fff;
}

.hero .hero-proof__item span {
  color: rgba(255, 255, 255, 0.58);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hero .btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-product__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.hero-product__index {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-family: "Manrope", sans-serif;
  font-size: max(14px, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-product__index strong {
  color: #fff;
  font-size: max(14px, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-product__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-product__copy strong {
  color: #fff;
  font-size: max(14px, clamp(16px, 1.4vw, 19px));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-product__copy small {
  color: rgba(255, 255, 255, 0.55);
  font-size: max(14px, 12px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-product__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 26px;
}

.hero-product__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: max(14px, 12px);
  white-space: nowrap;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.hero-product__link span {
  transition: transform 0.35s var(--ease);
}

.hero-product__link:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-product__link:hover span {
  transform: translate(2px, -2px);
}

.hero-product__dots {
  gap: 6px;
}

.hero-product__dots .hero-slide-dot {
  width: 30px;
  height: 24px;
}

.hero-product__dots .hero-slide-dot.is-active {
  width: 48px;
}

.hero-product__dots .hero-slide-dot::before {
  background: rgba(255, 255, 255, 0.34);
}

.hero-product__dots .hero-slide-dot.is-active::before {
  background: var(--orange);
}

@media (max-width: 1020px) {
  .hero {
    --hero-height: max(620px, 80svh);
  }

  .hero-banner {
    min-height: calc(var(--hero-height) - var(--header-h));
    padding-top: 34px;
    padding-bottom: 20px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-product {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
  }

  .hero-product__controls {
    justify-content: space-between;
    width: 100%;
  }

  .hero-product__meta {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .hero-media .stage-photo img {
    filter: saturate(0.88) contrast(1.03) brightness(0.64);
  }

  .hero-media .stage-photo--aidrama img {
    object-position: 50% 20%;
  }

  .hero-media .stage-photo--call img {
    object-position: 55% 12%;
  }

  .hero-media .stage-photo--phone img {
    object-position: 84% 46%;
  }

  .hero-media__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(6, 6, 7, 0.68) 0%,
        rgba(6, 6, 7, 0.34) 38%,
        rgba(6, 6, 7, 0.12) 58%,
        rgba(6, 6, 7, 0.82) 100%
      ),
      linear-gradient(90deg, rgba(6, 6, 7, 0.7), rgba(6, 6, 7, 0.18));
  }

  .hero-banner {
    min-height: calc(var(--hero-height) - var(--header-h));
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .hero .hero-proof {
    gap: 18px 24px;
  }

  .hero-product__index strong {
    font-size: max(14px, 20px);
  }

  .hero-product__copy strong {
    font-size: max(14px, 16px);
  }

  .hero-product__copy small {
    font-size: max(14px, 12.5px);
  }

  .hero-product__dots {
    gap: 4px;
  }

  .hero-product__dots .hero-slide-dot {
    width: 22px;
    height: 28px;
  }

  .hero-product__dots .hero-slide-dot.is-active {
    width: 34px;
  }

  .hero-product__link {
    padding: 7px 12px;
  }
}

@media (max-width: 420px) {
  .hero .hero-lead {
    font-size: 14px;
    line-height: 1.78;
  }
}

@media (max-width: 560px) {
  .hero-product {
    gap: 13px;
    margin-top: 20px;
  }

  .hero-product__dots {
    gap: 2px;
  }

  .hero-product__dots .hero-slide-dot {
    width: 20px;
  }

  .hero-product__dots .hero-slide-dot.is-active {
    width: 30px;
  }

  .hero-product__controls {
    gap: 12px;
  }

  .hero-product__meta {
    gap: 12px;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .hero-banner {
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .hero .hero-kicker {
    margin-bottom: 18px;
  }

  .hero .hero-lead {
    margin-top: 22px;
  }

  .hero .hero-actions {
    margin-top: 26px;
  }

  .hero-metric {
    margin-top: 16px;
  }

  .hero-product {
    margin-top: 14px;
    padding-top: 12px;
  }
}

@media (max-height: 920px) {
  .hero .hero-note {
    display: none;
  }
}
