:root {
  --teal: #1c8ea3;
  --teal-deep: #0a677b;
  --teal-ink: #0a4e5c;
  --gold: #f4e08a;
  --gold-deep: #e2c45a;
  --ice-top: #f7fdfe;
  --ice: #d8eef3;
  --ice-mid: #eaf6f9;
  --ink: #0a5c6c;
  --muted: #3d8a98;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(10, 78, 92, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--ice-top);
  line-height: 1.55;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.nav {
  background: var(--teal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-sub {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  font-size: 16px;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid #fff4b0;
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--teal-ink);
}

.btn-gold:hover {
  background: #f8e9a8;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: #187f93;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 18px;
  border-radius: 16px;
}

.ice {
  background:
    radial-gradient(900px 320px at 80% 10%, rgba(255, 226, 120, 0.28), transparent 55%),
    linear-gradient(180deg, var(--ice-top) 0%, var(--ice-mid) 42%, var(--ice) 100%);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title phones"
    "cta phones"
    "proof phones";
  column-gap: 24px;
  row-gap: 18px;
  align-items: center;
  padding: 72px 0 36px;
}

.hero-title {
  grid-area: title;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--teal-ink);
  text-wrap: balance;
}

.hero-cta {
  grid-area: cta;
  justify-self: start;
}

.hero-proof {
  grid-area: proof;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 18px;
}

.phones {
  grid-area: phones;
  position: relative;
  height: 460px;
  min-height: 380px;
}

.phones::before {
  content: "";
  position: absolute;
  inset: 8% 8%;
  background: radial-gradient(circle, rgba(255, 226, 130, 0.7), transparent 62%);
  filter: blur(8px);
}

.phone {
  position: absolute;
  width: 210px;
  height: 420px;
  border: 10px solid #1a1a1a;
  border-radius: 34px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  z-index: 1;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-a {
  left: 18px;
  top: 8px;
  transform: rotate(-11deg);
  z-index: 2;
}

.phone-b {
  right: 28px;
  top: 48px;
  transform: rotate(13deg);
}

.star {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #f3d56a;
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
  z-index: 3;
  animation: twinkle 2.6s ease-in-out infinite;
}

.s1 { top: 24px; left: 8px; }
.s2 { top: 80px; right: 16px; animation-delay: 0.4s; }
.s3 { bottom: 70px; left: 40px; width: 10px; height: 10px; animation-delay: 1s; }
.s4 { top: 10px; right: 90px; width: 8px; height: 8px; animation-delay: 1.6s; }
.s5 { bottom: 20px; right: 8px; animation-delay: 0.8s; }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 8px 0 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  min-height: 48px;
  min-width: 168px;
  font-size: 12px;
  line-height: 1.15;
  cursor: pointer;
}

.store-btn strong {
  display: block;
  font-size: 16px;
}

.store-hint {
  color: var(--muted);
  font-weight: 600;
}

.marquee {
  overflow: hidden;
  padding: 18px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 28s linear infinite;
  color: var(--teal-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.quote {
  padding: 28px 0 8px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-card p {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--teal-ink);
}

.quote-card cite {
  font-style: normal;
  color: var(--teal);
  font-weight: 700;
}

.quote-card small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.band {
  margin: 48px auto;
  background: var(--teal);
  color: var(--white);
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
}

.band img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
}

.band h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0 8px;
  text-align: center;
}

.stats h3 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: var(--teal-ink);
}

.stats p {
  color: var(--teal);
  font-size: 18px;
  margin: 0 0 18px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 36px 0;
}

.bubble {
  background: var(--teal);
  color: var(--white);
  border-radius: 24px;
  padding: 28px 22px 36px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top-color: var(--teal);
}

.who {
  text-align: center;
  margin-top: 22px;
}

.who strong {
  display: block;
  color: var(--teal-ink);
}

.who span {
  color: var(--muted);
  font-size: 14px;
}

.mid {
  padding: 48px 0 16px;
  text-align: center;
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
}

.mid h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 8px 0 16px;
  letter-spacing: -0.03em;
}

.mid > .wrap > p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--teal);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0 8px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--teal-ink);
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--gold-deep);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
  flex: 0 0 auto;
}

.art {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 24px;
}

.art-round {
  border-radius: 50%;
}

.center-copy {
  text-align: center;
  padding: 12px 0 8px;
}

.center-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.center-copy p {
  color: var(--teal);
  font-size: 18px;
  margin: 0 0 18px;
}

.covers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 12px 0 36px;
}

.covers img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(10, 78, 92, 0.12);
}

.expert {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 48px;
}

.expert h2 {
  font-size: 40px;
  margin: 8px 0 0;
  letter-spacing: -0.03em;
}

.expert-card {
  background: var(--teal);
  color: var(--white);
  border-radius: 28px;
  padding: 36px 28px;
  font-size: 20px;
  font-weight: 700;
}

.learn h2 {
  text-align: center;
  font-size: 36px;
  margin: 0 0 24px;
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 48px;
}

.learn-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: left center;
  border-radius: 20px;
}

.gift {
  text-align: center;
  padding: 24px 0 72px;
}

.gift h2 {
  font-size: 40px;
  margin: 0 0 10px;
}

.gift p {
  color: var(--teal);
  font-size: 18px;
  margin: 0 0 22px;
}

.foot {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 28px 16px 96px;
}

.sticky {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
}

.sticky .btn {
  width: 100%;
  box-shadow: 0 10px 24px rgba(10, 78, 92, 0.28);
}

/* download page */
.dl-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dl-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.dl-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.dl-card h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.dl-card .lead {
  color: var(--muted);
  margin: 0 0 18px;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 8px auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(28, 142, 163, 0.2);
  border-top-color: var(--teal);
  animation: spin 0.9s linear infinite;
}

.detected {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.dl-actions {
  display: grid;
  gap: 10px;
}

.dl-actions .btn {
  width: 100%;
}

.qr-box {
  margin-top: 22px;
}

.qr-box img {
  width: 160px;
  height: 160px;
  margin: 8px auto;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}

.missing {
  margin-top: 16px;
  color: #9a3b3b;
  font-size: 14px;
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal-deep);
  font-weight: 700;
}

.wechat-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 36, 0.86);
  color: #fff;
  z-index: 40;
  padding: 28px 22px;
}

.wechat-mask[hidden],
[hidden] {
  display: none !important;
}

.wechat-hint {
  max-width: 360px;
  margin-left: auto;
  text-align: right;
}

.wechat-hint h2 {
  margin: 0 0 8px;
}

.arrow {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0 20px;
    gap: 0;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 10px;
  }

  .hero-proof {
    order: 1;
    margin: 0 0 8px;
    font-size: 16px;
  }

  .phones {
    order: 2;
    width: min(340px, 100%);
    height: 300px;
    min-height: 0;
    margin: 4px auto 8px;
  }

  .phone {
    width: 148px;
    height: 296px;
    border-width: 8px;
    border-radius: 28px;
  }

  .phone-a {
    left: 6px;
    top: 8px;
  }

  .phone-b {
    right: 6px;
    top: 36px;
  }

  .hero-cta {
    order: 3;
    width: 100%;
    justify-self: stretch;
    margin-top: 8px;
  }

  .stats,
  .split,
  .expert,
  .learn-grid,
  .quote-card,
  .reviews {
    grid-template-columns: 1fr;
  }

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

  .quote-card {
    justify-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .quote-card p {
    font-size: 20px;
  }

  .sticky {
    display: block;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sticky.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .foot {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand-name {
    font-size: 26px;
  }

  .nav-actions .btn-gold {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .wrap {
    padding: 0 16px;
  }

  .stores {
    justify-content: center;
    padding: 4px 0 16px;
  }

  .store-btn {
    min-width: 0;
    flex: 1 1 140px;
  }

  .store-hint {
    width: 100%;
    text-align: center;
  }

  .marquee-track {
    font-size: 12px;
    gap: 28px;
  }

  .avatar {
    width: 88px;
    height: 88px;
  }

  .band {
    margin: 28px auto;
    padding: 28px 18px;
    border-radius: 22px;
  }

  .band h2 {
    font-size: 22px;
    text-wrap: balance;
  }

  .stats {
    gap: 28px;
    padding: 8px 0;
  }

  .stats h3 {
    font-size: 26px;
  }

  .stats p {
    font-size: 16px;
  }

  .reviews {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0 8px;
  }

  .bubble {
    font-size: 16px;
    padding: 22px 18px 30px;
  }

  .mid {
    padding: 28px 0 8px;
  }

  .mid h2,
  .center-copy h2,
  .gift h2,
  .expert h2,
  .learn h2,
  .split h2 {
    font-size: clamp(24px, 7vw, 30px);
    text-wrap: balance;
  }

  .mid > .wrap > p,
  .center-copy p,
  .gift p {
    font-size: 16px;
  }

  .split {
    gap: 20px;
    padding: 16px 0;
  }

  .features li {
    font-size: 16px;
    font-weight: 600;
  }

  .covers img {
    height: 140px;
  }

  .expert {
    gap: 16px;
    padding: 16px 0 32px;
    text-align: center;
  }

  .expert-card {
    font-size: 17px;
    padding: 24px 18px;
  }

  .learn-grid {
    gap: 12px;
    padding-bottom: 28px;
  }

  .learn-grid img {
    height: auto;
    aspect-ratio: 72 / 15;
    object-fit: cover;
  }

  .gift {
    padding: 16px 0 88px;
  }

  .dl-main {
    padding: 24px 14px calc(24px + env(safe-area-inset-bottom, 0px));
    align-items: start;
  }

  .dl-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .dl-card h1 {
    font-size: 24px;
  }

  .wechat-hint h2 {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }

  .phones {
    height: 270px;
    width: 100%;
  }

  .phone {
    width: 128px;
    height: 256px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
