/* Original section sizes, palette, backgrounds and image geometry are retained. */
.hero, .feature, .conversation, .desktop-footer {
  width: 100%;
  min-width: 1045px;
  margin-inline: auto;
}

.hero { background: #010204; }
.hero-map {
  background: url("/public/index/images/world-map-background.png") center no-repeat;
  background-size: 1920px 580px;
}
.hero-content {
  width: 1024px;
  height: 580px;
  margin-inline: auto;
  overflow: hidden;
}
.brand {
  display: block;
  width: 120px;
  margin: 90px auto 70px;
}
.brand img { display: block; width: 120px; height: auto; }
.hero-title {
  width: 615px;
  height: 78px;
  margin-inline: auto;
  color: #fff;
  font-size: 55px;
  font-weight: 800;
  line-height: 78px;
  text-align: center;
}
.hero-description {
  width: 468px;
  height: 50px;
  margin: 23px auto 0;
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
}
.hero-scroll, .mobile-footer, .mobile-download-bar, .section-edge { display: none; }

.feature-private {
  height: 1204px;
  overflow: hidden;
  background: #010204 url("/public/index/images/private-chat-background.png") no-repeat;
  background-size: 1920px 956px;
}
.private-content { width: 100%; height: 1164px; margin-top: 40px; }
.download-options {
  display: flex;
  justify-content: space-around;
  width: 982px;
  margin-inline: auto;
}
.download-card, .download-card:hover { text-decoration: none; }
.download-art {
  position: relative;
  display: block;
  width: 138px;
  height: 138px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.download-art > img, .qr-code {
  display: block;
  width: 120px;
  height: 120px;
  margin: 9px auto;
}
.download-art > img { transition: transform 0.3s; }
.download-art-windows:hover img { transform: scale(1.3); }
.qr-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #272828;
  font-size: 14px;
}
.download-caption { margin-top: 16px; color: #999; text-align: center; }
.download-caption p { font-size: 12px; }
.download-caption p:first-child { margin-bottom: 8px; color: #fff; font-size: 14px; }

.feature-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 982px;
  margin-inline: auto;
}
.private-stage { height: 716px; }
.feature-visual img { display: block; }
.private-visual img { width: 363px; height: 535px; margin-top: 80px; }

/* Live text replaces text-only bitmaps, using their original bounding boxes. */
.feature-copy { position: relative; flex: none; text-align: center; }
.private-copy { width: 366px; height: 131px; }
.feature-english {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  color: #252938;
  font: 700 36px/44px Arial, sans-serif;
  white-space: nowrap;
}
.feature-copy h2 {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  color: #fff;
  font: 700 46px/64px "Microsoft YaHei", "PingFang SC", sans-serif;
}
.feature-copy > p {
  position: absolute;
  right: 2px;
  bottom: 0;
  left: 2px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(100deg, #fa4863, #fc7c60);
  color: #fff;
  font: 400 20px/40px "Microsoft YaHei", "PingFang SC", sans-serif;
  white-space: nowrap;
}

.feature-sharing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 690px;
  background: #fff url("/public/index/images/image-sharing-background.png") no-repeat;
  background-size: 1920px 690px;
}
.sharing-copy { width: 400px; height: 127px; }
.sharing-copy .feature-english { color: #f2f2f2; }
.sharing-copy h2 { top: 12px; color: #252938; }
.sharing-copy > p { inset-inline: 0; }
.sharing-visual img { width: 482.6px; height: 661.6px; }

.feature-messaging {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 668px;
  background: #010204 url("/public/index/images/message-delivery-background.png") no-repeat;
  background-size: 1920px 670px;
}
.messaging-stage { justify-content: space-around; }
.messaging-copy { width: 380px; height: 130px; }
.messaging-visual img { width: 403.46px; height: 595.2px; }

.conversation {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 461px;
  background: #fff url("/public/index/images/conversation-background.png") no-repeat;
  background-size: 1920px 461px;
}
.conversation-art {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 982px;
  margin-inline: auto;
}
.conversation-art img { width: 530px; height: 324px; }
.desktop-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #010204;
}
.desktop-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 982px;
  height: 50px;
}
.desktop-footer-content img { width: 46px; height: 50px; }
.desktop-footer-content span { margin-left: 20px; color: #999; font-size: 14px; }

.floating-tools {
  position: fixed;
  right: 100px;
  bottom: 85px;
  opacity: 0;
  pointer-events: none;
}
.floating-tools.is-visible, .floating-tools:focus-within { pointer-events: auto; }
.floating-tools:focus-within { opacity: 1 !important; }
.floating-tools a, .floating-tools img { display: block; width: 82px; height: 82px; }
.floating-tools a + a { margin-top: 14px; }

/* Keep the composition without horizontal overflow on smaller tablets. */
@media (min-width: 769px) and (max-width: 1044px) {
  .hero, .feature, .conversation, .desktop-footer { min-width: 0; }
  .hero-content, .download-options, .feature-stage,
  .conversation-art, .desktop-footer-content { width: calc(100% - 48px); }
  .sharing-content { width: 100%; }
  .feature-visual { max-width: 44%; }
  .feature-visual img { max-width: 100%; height: auto; }
  .floating-tools { right: 20px; }
}

@media (max-width: 768px) {
  .hero, .feature, .conversation, .desktop-footer { min-width: 0; }
  .hero-map { height: 406px; background-size: 1172px 365px; }
  .hero-content { width: 100%; height: 406px; }
  .brand { width: 57px; margin: 90px auto 26px; }
  .brand img { width: 57px; height: 62px; }
  .hero-title { width: 100%; height: 28px; font-size: 28px; line-height: 28px; }
  .hero-description {
    width: 312px;
    max-width: calc(100% - 24px);
    height: auto;
    margin-top: 14px;
    font-size: 12px;
    line-height: 20px;
  }
  .hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
    color: #999;
  }
  .hero-scroll img { width: 40px; height: 40px; }
  .hero-scroll p { margin-top: 40px; }
  .download-options, .desktop-footer, .floating-tools { display: none; }

  .feature-private {
    height: 624px;
    background: #010204 url("/public/index/images/private-chat-mobile-background.png") center bottom no-repeat;
    background-size: 500px 500px;
  }
  .private-content { height: 624px; margin-top: 0; }
  .feature-stage { width: 100%; flex-direction: column; }
  .private-stage { height: 571px; }
  .private-copy { width: 248px; height: 74px; }
  .feature-english { top: 1px; font-size: 21px; line-height: 26px; }
  .feature-copy h2 { top: 6px; font-size: 28px; line-height: 40px; }
  .feature-copy[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .feature-copy > p {
    inset-inline: 0;
    height: 25px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 25px;
  }
  .private-visual img { width: 254px; height: 405px; margin-top: 15px; }
  .section-edge { display: block; height: 53px; }
  .edge-to-light {
    background: linear-gradient(-8deg, #fff 0%, #fff 50%, #010204 50%, #010204 100%);
  }

  .feature-sharing {
    height: 546px;
    background: #fff url("/public/index/images/image-sharing-mobile-background.png") center no-repeat;
    background-size: 580px;
  }
  .sharing-content { width: 100%; }
  .sharing-copy { width: 278px; height: 88px; }
  .sharing-copy .feature-english { font-size: 25px; line-height: 31px; }
  .sharing-copy h2 { top: 8px; font-size: 32px; line-height: 45px; }
  .sharing-copy > p { height: 28px; font-size: 14px; line-height: 28px; }
  .sharing-visual img { width: 299px; height: 420px; }
  .edge-to-dark {
    background: linear-gradient(-352deg, #010204 0%, #010204 50%, #fff 50%, #fff 100%);
  }

  .feature-messaging {
    height: 540px;
    background: #010204 url("/public/index/images/message-delivery-mobile-background.png") center no-repeat;
    background-size: 500px;
  }
  .messaging-copy { width: 255px; height: 74px; margin-top: 15px; }
  .messaging-visual img { width: 280px; height: 412px; margin-top: 15px; }
  .conversation { height: 218px; background-image: none; }
  .conversation-art { width: 100%; }
  .conversation-art img { width: 100%; height: 196px; }

  .mobile-footer { display: block; padding-bottom: 59px; background: #010204; }
  .mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .mobile-brand img { width: 70px; height: 70px; margin-top: 69px; }
  .mobile-brand-name { margin-top: 10px; color: #fff; font-size: 22px; font-weight: 700; }
  .mobile-brand-description { margin: 30px 0 38px; color: #999; font-size: 12px; }
  .copyright {
    width: 100%;
    height: 60px;
    color: #999;
    font-size: 12px;
    line-height: 60px;
    text-align: center;
  }

  .mobile-download-bar {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: 59px;
    padding: 0 8px;
    background: #fff;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
  }
  .android-downloads { display: flex; }
  html[data-device="ios"] .android-downloads { display: none; }
  html[data-device="ios"] .ios-downloads { display: flex; }
  .mobile-download-bar > div { flex: 1; max-width: calc(33.33% - 6px); padding: 0 3px; }
  .download-button, .download-button:hover {
    display: block;
    width: 100%;
    height: 38px;
    overflow: hidden;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgb(102 126 234 / 30%);
    color: #fff;
    font: 700 12px/38px Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .download-button:active { transform: scale(0.95); box-shadow: 0 1px 4px rgb(102 126 234 / 30%); }
}

html.motion-ready [data-aos="fade-rotate-left"] {
  opacity: 0;
  transform: rotate(-20deg);
  transform-origin: 0 100%;
}
html.motion-ready [data-aos="fade-rotate-left"].aos-animate {
  opacity: 1;
  transform: rotate(0);
  transform-origin: 100% 100%;
}
html:not(.motion-ready) [data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-aos], .download-button, .download-art > img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
