/* Glass entrances share the page's existing 3.5-second light clock. */
@property --huanwuai-button-engaged {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.huanwuai-home .huanwuai-nav-link {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.huanwuai-home .huanwuai-nav-text {
  display: inline-block;
}

.huanwuai-home .huanwuai-nav-text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 250ms ease-out;
  /* Keep the explicitly requested interaction visible on this Windows setup. */
  transition-duration: 250ms !important;
}

.huanwuai-home .huanwuai-nav-link:is(:hover, :focus-visible) .huanwuai-nav-text::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.huanwuai-magnetic-zone {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 12.1cqw;
  margin-top: auto;
}

.huanwuai-home .huanwuai-product-button {
  --huanwuai-button-neon: 183 124 238;
  --huanwuai-button-engaged: 0;
  --huanwuai-magnet-x: 0px;
  --huanwuai-magnet-y: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.1cqw;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 1px solid rgb(var(--huanwuai-button-neon) / calc(0.58 + 0.36 * var(--huanwuai-button-engaged) * var(--huanwuai-light-pulse)));
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(var(--huanwuai-button-neon) / 14%), rgb(16 12 28 / 38%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 4px 12px rgb(0 0 0 / 12%);
  color: #f6f0ff;
  font: inherit;
  font-size: 3.9cqw;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  overflow: visible;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transform: translate(var(--huanwuai-magnet-x), var(--huanwuai-magnet-y));
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1), --huanwuai-button-engaged 180ms ease-out;
  transition-duration: 360ms, 180ms !important;
}

.huanwuai-home .huanwuai-card-cyan .huanwuai-product-button {
  --huanwuai-button-neon: 114 204 225;
  color: #e9fcff;
}

.huanwuai-home .huanwuai-product-button:is(:hover, :focus-visible, [data-magnetic-active="true"]) {
  --huanwuai-button-engaged: 1;
}

.huanwuai-home .huanwuai-product-button[data-magnetic-active="true"] {
  transition-duration: 120ms, 180ms !important;
}

.huanwuai-home .huanwuai-product-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgb(var(--huanwuai-button-neon) / 22%), transparent 78%);
  box-shadow:
    0 0 calc(7px + 12px * var(--huanwuai-light-pulse)) rgb(var(--huanwuai-button-neon) / 32%),
    inset 0 0 calc(8px + 12px * var(--huanwuai-light-pulse)) rgb(var(--huanwuai-button-neon) / 16%);
  opacity: calc(var(--huanwuai-button-engaged) * (0.25 + 0.65 * var(--huanwuai-light-pulse)));
  pointer-events: none;
  /* Pulse updates use the shared clock directly, without a lagging transition. */
  transition: none !important;
}

.huanwuai-home .huanwuai-button-text,
.huanwuai-home .huanwuai-button-arrow {
  position: relative;
  z-index: 1;
  transform: none;
  transition: none !important;
}

.huanwuai-home .huanwuai-button-arrow {
  flex-shrink: 0;
  width: 3.4cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .huanwuai-home .huanwuai-product-button {
    transition-duration: 180ms, 120ms !important;
  }

  .huanwuai-home .huanwuai-product-button[data-magnetic-active="true"] {
    transition-duration: 80ms, 120ms !important;
  }
}
