/* Home-only adaptation of the supplied FloatingIconsHero. */
.floating-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 700px;
  height: 100svh;
  padding: 110px 24px 60px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: #242424;
  touch-action: pan-y;
}

.floating-hero-tools {
  position: absolute;
  inset: 100px max(0px, calc((100% - 1440px) / 2)) 32px;
}

.floating-tool {
  position: absolute;
  width: 80px;
  height: 80px;
}

a.floating-tool {
  color: inherit;
  cursor: pointer;
}

a.floating-tool:focus-visible {
  outline: 3px solid #2876ff;
  outline-offset: 7px;
  border-radius: 24px;
}

.floating-tool-photoshop { top: 12%; left: 12%; }
.floating-tool-codex { top: 2%; left: 31%; }
.floating-tool-illustrator { top: 20%; right: 8%; }
.floating-tool-jimeng { top: 0%; left: 55%; }
.floating-tool-indesign { top: 54%; left: 12%; }
.floating-tool-premiere { bottom: 7%; left: 6%; }
.floating-tool-xiaohongshu { bottom: 24%; right: 6%; }
.floating-tool-jianying { bottom: 12%; right: 24%; }
.floating-tool-wechat { top: 36%; left: 3%; }
.floating-tool-amazon { bottom: 16%; left: 29%; }
.floating-tool-douyin { bottom: 3%; left: 50%; }
.floating-tool-blender { top: 5%; right: 20%; }
.floating-tool-obsidian { top: 32%; right: 17%; }

.floating-tool-card {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgb(30 30 30 / 3%);
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
  animation: tool-float var(--float-duration) ease-in-out infinite alternate;
  animation-delay: var(--float-delay);
}

.floating-tool-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  user-select: none;
}

.floating-tool-enter {
  animation: tool-enter 600ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(700ms + var(--tool-index) * 80ms);
}

.floating-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  text-align: center;
  pointer-events: none;
}

.floating-hero-kicker {
  margin: 0 0 25px;
  color: #797979;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
}

.floating-hero h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .23em;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 68px);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.25;
  color: #2b2b2b;
}

.floating-hero-divider { color: #9a9a9a; font-weight: 400; }

.floating-hero-intro {
  margin: 26px auto 0;
  color: #767676;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
}

.floating-hero-cta {
  margin-top: 34px;
  pointer-events: auto;
}

.floating-hero-footnote {
  position: absolute;
  bottom: 22px;
  margin: 0;
  color: #909090;
  font-size: 9px;
  letter-spacing: .16em;
}

.floating-hero-footnote span { padding: 0 12px; }

@keyframes tool-enter {
  from { opacity: 0; transform: scale(.5) rotate(var(--tool-tilt)); }
  to { opacity: 1; transform: scale(1) rotate(var(--tool-tilt)); }
}

@keyframes tool-float {
  0%, 50%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(6px, -8px) rotate(5deg); }
  75% { transform: translate(-6px, 8px) rotate(-5deg); }
}

.floating-hero.is-paused .floating-tool-card,
.floating-hero.is-touching .floating-tool-card { animation-play-state: paused; }

@media (max-width: 1000px) {
  .floating-tool, .floating-tool-card { width: 64px; height: 64px; }
  .floating-tool-card { padding: 12px; border-radius: 20px; }
  .floating-tool-card img { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
  .floating-hero { min-height: 700px; padding: 100px 20px 65px; }
  .floating-hero-tools { inset: 95px 0 40px; }
  .floating-tool, .floating-tool-card { width: 52px; height: 52px; }
  .floating-tool-card { padding: 10px; border-radius: 17px; }
  .floating-tool-card img { width: 30px; height: 30px; }
  .floating-tool-photoshop { top: 10%; left: 25%; }
  .floating-tool-codex { top: 0%; left: 42%; }
  .floating-tool-illustrator { top: 10%; right: 15%; }
  .floating-tool-jimeng { top: 27%; right: 3%; left: auto; }
  .floating-tool-indesign { top: 29%; left: 3%; }
  .floating-tool-premiere { bottom: 7%; left: 9%; }
  .floating-tool-xiaohongshu { bottom: 23%; right: 2%; }
  .floating-tool-jianying { bottom: 5%; right: 8%; }
  .floating-tool-wechat { top: 4%; left: 7%; }
  .floating-tool-amazon { bottom: 24%; left: 2%; }
  .floating-tool-douyin { bottom: 0%; left: 43%; }
  .floating-tool-blender { top: 3%; right: 4%; }
  .floating-tool-obsidian { top: 38%; right: 2%; }
  .floating-hero-kicker { margin-bottom: 18px; font-size: 9px; letter-spacing: .15em; }
  .floating-hero h1 { display: block; font-size: clamp(29px, 8vw, 42px); line-height: 1.4; letter-spacing: -.045em; }
  .floating-hero h1 > span { display: block; }
  .floating-hero h1 > span:first-child { margin-bottom: 2px; font-size: 46px; }
  .floating-hero h1 > .floating-hero-divider { display: none; }
  .floating-hero-intro { margin-top: 17px; font-size: 13px; line-height: 1.9; letter-spacing: 0; }
  .floating-hero-cta { margin-top: 26px; }
  .floating-hero-footnote { font-size: 8px; letter-spacing: .1em; }
}

@media (hover: none), (pointer: coarse) {
  .floating-hero-cta:active {
    transform: scale(.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-tool-enter, .floating-tool-card { animation: none; }
}
