:root {
  --max-w: 430px;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #050505;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.viewport {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background: #050505;
}

.page {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 36px 22px 28px;
  background-image: url("../assets/background.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.22) 72%,
    rgba(0, 0, 0, 0.38) 100%
  );
  pointer-events: none;
}

.hero,
.features,
.cta {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.logo-wrap {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(80, 170, 255, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(40, 140, 255, 0.22);
  transform: translateY(12px);
  opacity: 0;
  animation: rise 0.7s ease-out 0.05s forwards;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headline {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease-out 0.18s forwards;
}

.subhead {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease-out 0.28s forwards;
}

.features {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 36px 2px 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
}

.feature.is-in {
  animation: rise 0.65s ease-out forwards;
}

.feature:nth-child(2).is-in {
  animation-delay: 0.12s;
}

.feature-icon {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 80, 200, 0.28));
}

.feature-body {
  padding-top: 0;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-soft);
  text-align: justify;
  text-justify: inter-ideograph;
}

.cta {
  display: flex;
  justify-content: center;
  padding: 8px 4px 10px;
}

.download-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: min(100%, 340px);
  cursor: pointer;
  line-height: 0;
  opacity: 1;
  transform: none;
  animation: rise 0.7s ease-out 0.45s backwards;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.download-btn img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.download-btn:hover {
  transform: translateY(-1px) scale(1.015);
  filter: brightness(1.08);
}

.download-btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.95);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%) translateY(12px);
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .page {
    padding: 28px 16px 20px;
  }

  .logo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .headline,
  .subhead {
    font-size: 17px;
  }

  .feature-icon {
    width: 68px;
    height: 68px;
  }

  .feature-text {
    font-size: 12.5px;
  }
}

@media (min-height: 780px) {
  .hero {
    padding-top: 28px;
  }

  .features {
    gap: 36px;
    padding-top: 56px;
  }
}
