html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.logo-brand {
  width: 244px;
  height: 78px;
  flex: 0 0 auto;
  letter-spacing: 0;
}

.logo-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px #ff8a0050);
}

nav {
  margin-left: 34px;
}

main,
.hero,
.hero-visual {
  overflow-x: clip;
}

.glow {
  position: fixed;
}

.glow-a {
  right: 0;
  width: 360px;
  height: 360px;
  transform: none;
}

.glow-b {
  left: 0;
  width: 260px;
  height: 260px;
  transform: none;
}

.message-one {
  right: 8px;
}

.message-two {
  left: 8px;
}

footer {
  padding: 34px 45px 40px;
  justify-content: center;
  gap: clamp(36px, 12vw, 260px);
  color: #8e98bf;
  font: 14px "DM Mono";
}

footer span:last-child {
  color: #a3aad0;
  font: 500 14px "Noto Sans TC";
}

.motion-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(#ffffff12 1px, transparent 1px),
    linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
  animation: gridDrift 16s linear infinite;
}

.topbar {
  height: 104px;
}

.hero {
  min-height: 760px;
  padding-top: 120px;
}

.hero h1 {
  font-size: clamp(62px, 7.2vw, 106px);
}

.intro {
  max-width: 560px;
  font-size: 18px;
}

.cta,
.join {
  position: relative;
  overflow: hidden;
}

.cta:before,
.join:before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent, #ffffff75, transparent);
  animation: sheen 4.6s ease-in-out infinite;
}

.hero-visual {
  animation: sceneFloat 7s ease-in-out infinite;
}

.avatar-shell {
  display: none;
}

.partner-stage {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  height: 560px;
}

.partner-photo {
  position: absolute;
  overflow: hidden;
  border: 1px solid #ffffff30;
  background: #11162b;
  box-shadow: 0 28px 80px #0008, 0 0 60px #ff8a0020;
  animation: photoFloat 6.8s ease-in-out infinite;
}

.partner-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, #050714d9 100%);
  pointer-events: none;
}

.partner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.partner-photo span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff3e6;
  font: 11px "DM Mono";
  letter-spacing: .16em;
}

.partner-photo:hover img {
  transform: scale(1.06);
}

.partner-girl {
  left: 8px;
  top: 22px;
  width: 310px;
  height: 438px;
  border-radius: 28px;
}

.partner-boy {
  right: 0;
  bottom: 18px;
  width: 272px;
  height: 368px;
  border-radius: 24px;
  animation-delay: -2.4s;
}

.partner-stage .online {
  right: 244px;
  bottom: 80px;
}

.orbit-one {
  animation: orbitSpin 18s linear infinite;
}

.orbit-two {
  animation: orbitSpin 26s linear infinite reverse;
}

.aurora {
  animation: auraPulse 5s ease-in-out infinite;
}

.avatar-shell {
  animation: breathe 4.4s ease-in-out infinite;
}

.halo {
  animation: haloTurn 12s linear infinite;
}

.online {
  animation: onlinePulse 1.8s ease-in-out infinite;
}

.message-card {
  animation: cardFloat 5.4s ease-in-out infinite;
}

.message-two {
  animation-delay: -1.6s;
}

.message-three {
  right: 38px;
  bottom: 22px;
  border-radius: 14px 14px 4px;
  animation-delay: -3s;
}

.voice-panel {
  z-index: 4;
  position: absolute;
  left: 28px;
  top: 54px;
  display: grid;
  gap: 8px;
  min-width: 178px;
  padding: 14px 16px;
  color: #f8fbff;
  background: #151b35d9;
  border: 1px solid #ff9b2d45;
  border-radius: 14px;
  box-shadow: 0 16px 44px #0005, 0 0 30px #ff8a0025;
  backdrop-filter: blur(12px);
  animation: cardFloat 5.9s ease-in-out infinite;
}

.voice-panel small {
  font: 10px "DM Mono";
  color: #ffc172;
  letter-spacing: .13em;
}

.voice-panel span {
  color: #cdd5ef;
  font-size: 11px;
}

.voice-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
}

.voice-bars i {
  width: 7px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(#ff9b2d, #8ce7e0);
  animation: voiceWave .9s ease-in-out infinite;
}

.voice-bars i:nth-child(2) { animation-delay: .12s; }
.voice-bars i:nth-child(3) { animation-delay: .24s; }
.voice-bars i:nth-child(4) { animation-delay: .36s; }
.voice-bars i:nth-child(5) { animation-delay: .48s; }

.feature-grid article,
.companion-card,
.trust-list p {
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.feature-grid article:hover,
.companion-card:hover {
  transform: translateY(-8px);
  border-color: #ff9b2d66;
}

.companion-photo-card {
  min-height: 360px;
  padding: 0;
  justify-content: end;
  border-radius: 18px;
}

.companion-photo-card:before {
  z-index: 1;
  background: #ff9b2d24;
}

.companion-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease, filter .65s ease;
}

.companion-photo-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #070a1810 28%, #070a18e8 100%);
}

.companion-photo-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.companion-card-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.companion-card-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  color: #fff3e6;
  background: #00000038;
  font-size: 11px;
}

.companion-card .companion-card-copy h3 {
  color: #fff;
  text-shadow: 0 2px 24px #000;
}

.companion-card .companion-card-copy p {
  color: #d9def4;
  font-size: 12px;
  line-height: 1.75;
}

.companion-card .companion-card-copy p:last-child {
  display: block;
  margin-top: 8px;
}

@keyframes gridDrift {
  to { background-position: 52px 52px; }
}

@keyframes sheen {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes sceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes orbitSpin {
  to { transform: rotate(337deg); }
}

@keyframes auraPulse {
  0%, 100% { opacity: .82; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}

@keyframes haloTurn {
  to { transform: rotate(384deg); }
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 4px #121733, 0 0 0 0 #88f5c266; }
  50% { box-shadow: 0 0 0 4px #121733, 0 0 0 12px #88f5c200; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes photoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes voiceWave {
  0%, 100% { height: 10px; opacity: .65; }
  50% { height: 32px; opacity: 1; }
}

@media (max-width: 760px) {
  .logo-brand {
    width: 174px;
    height: 54px;
  }

  .topbar {
    height: 82px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .intro {
    font-size: 16px;
  }

  .voice-panel {
    left: 4px;
    top: 0;
    min-width: 152px;
  }

  .hero-visual {
    min-height: 520px;
    margin-top: -12px;
  }

  .partner-stage {
    height: 510px;
  }

  .partner-girl {
    left: 0;
    top: 42px;
    width: 230px;
    height: 326px;
  }

  .partner-boy {
    right: 0;
    bottom: 54px;
    width: 196px;
    height: 270px;
  }

  .partner-stage .online {
    right: 142px;
    bottom: 108px;
  }

  .message-one {
    right: 0;
    top: 54px;
  }

  .message-two {
    left: 0;
  }

  .message-three {
    right: 0;
    bottom: 12px;
  }

  .companion-grid {
    grid-template-columns: 1fr;
  }

  .companion-photo-card {
    min-height: 330px;
  }

  footer {
    padding: 26px 25px 30px;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
  }

  footer span:last-child {
    font-size: 13px;
  }
}
