:root {
  --blue: #0089ff;
  --blue-press: #0070d6;
  --blue-soft: #e8f5ff;
  --ink: #171a1d;
  --text: #3a3f46;
  --muted: #8f959e;
  --line: #e7e8eb;
  --bg: #f3f6fa;
  --card: #ffffff;
  --green: #00b042;
  --amber: #e07b00;
  --rose: #f25643;
  --violet: #5b61e6;
  --teal: #0b8f8f;
  --shadow: 0 18px 50px rgba(23, 26, 29, 0.08);
  --header: 64px;
  --max: 1120px;
  --dock: 0px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

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

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

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: #f3f6fa;
  border-bottom: 1px solid transparent;
}

.top.is-stuck { border-bottom-color: var(--line); }

.top__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: none;
  gap: 22px;
  margin-left: 12px;
  color: var(--text);
  font-size: 15px;
}

.nav a.is-on { color: var(--blue); font-weight: 600; }

.top .btn { margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 137, 255, 0.28);
}

.btn:hover { background: var(--blue-press); }

.btn--shine { position: relative; }

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover { background: var(--blue-soft); }

.btn--light {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.btn--light:hover { background: var(--blue-soft); }

.btn--shine:not(.btn--light) {
  background-image:
    linear-gradient(110deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(var(--blue), var(--blue));
  background-size: 240% 100%, auto;
  background-repeat: no-repeat;
  animation: shine-bg 3.6s ease-in-out infinite;
}

.btn--shine.btn--light {
  background-image:
    linear-gradient(110deg, rgba(0, 137, 255, 0) 34%, rgba(0, 137, 255, 0.2) 50%, rgba(0, 137, 255, 0) 66%),
    linear-gradient(#fff, #fff);
  background-size: 240% 100%, auto;
  background-repeat: no-repeat;
  animation: shine-bg 3.6s ease-in-out infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 12px;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__bg::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background-image:
    linear-gradient(rgba(0, 137, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 137, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, transparent 68%);
  animation: grid-drift 16s linear infinite;
}

.hero__bg::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0, 137, 255, 0.16), transparent);
  animation: sweep 7.5s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb--a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(0, 137, 255, 0.28), transparent 68%);
  animation: drift-a 14s ease-in-out infinite;
}

.orb--b {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(0, 137, 255, 0.16), transparent 70%);
  animation: drift-b 16s ease-in-out infinite;
}

.orb--c {
  width: 140px;
  height: 140px;
  right: 18%;
  bottom: -20px;
  background: radial-gradient(circle, rgba(0, 176, 66, 0.12), transparent 70%);
}

.hero__grid { position: relative; }

.hero__copy > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.34s; }
.hero__copy > *:nth-child(6) { animation-delay: 0.42s; }

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.logo {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
}

.logo::before,
.logo::after {
  content: "";
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(0, 137, 255, 0.45);
  pointer-events: none;
}

.logo::before {
  inset: -6px;
  animation: spin 10s linear infinite;
  border-top-color: transparent;
  border-left-color: transparent;
}

.logo::after {
  inset: -12px;
  border-radius: 24px;
  border-style: dashed;
  border-color: rgba(0, 137, 255, 0.35);
  animation: spin 16s linear infinite reverse;
}

.mark img,
.logo img {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 137, 255, 0.22);
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 700;
}

.pulse {
  display: block;
  width: min(280px, 78%);
  height: 36px;
  margin: 8px 0 4px;
}

.pulse path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse__track { stroke: rgba(0, 137, 255, 0.28); }

.pulse__beam {
  stroke: var(--blue);
  stroke-dasharray: 72 248;
  animation: pulse 2.8s linear infinite;
}

.lead {
  margin: 8px 0 0;
  max-width: 38em;
  color: var(--text);
  font-size: 16px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.radar {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 137, 255, 0.35);
  animation: ping-ring 4.8s ease-out infinite;
}

.radar i:nth-child(2) { animation-delay: 1.6s; }
.radar i:nth-child(3) { animation-delay: 3.2s; }

.device {
  position: relative;
  animation: float 5.5s ease-in-out infinite;
}

.device__glow {
  position: absolute;
  inset: -10px;
  border-radius: 44px;
  background: conic-gradient(from 0deg, transparent 0 64%, rgba(0, 180, 255, 0.95) 80%, #fff 86%, transparent 94%);
  filter: blur(8px);
  opacity: 0.8;
  animation: spin 3.6s linear infinite;
}

.phone {
  position: relative;
  z-index: 1;
  width: 268px;
  padding: 10px;
  border-radius: 36px;
  background: #171a1d;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #f5f6f7;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.screen-scan {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(0, 137, 255, 0.22), transparent);
  animation: screen-scan 3.2s ease-in-out infinite;
  pointer-events: none;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 0;
  font-size: 12px;
  font-weight: 600;
}

.phone__sig {
  width: 42px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #171a1d 0 62%, #c8cdd3 62% 100%);
}

.phone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.phone__head strong { font-size: 22px; }

.phone__head span { color: var(--muted); font-size: 12px; }

.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 176, 66, 0.55);
  animation: ping 1.8s ease-out infinite;
  vertical-align: 1px;
}

.chats {
  list-style: none;
  margin: 0;
  padding: 6px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chats li {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.chats li:nth-child(1) { animation-delay: 0.35s; }
.chats li:nth-child(2) { animation-delay: 0.48s; }
.chats li:nth-child(3) { animation-delay: 0.61s; }
.chats li:nth-child(4) { animation-delay: 0.74s; }

.ava {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.ava--blue { background: #0089ff; }
.ava--green { background: #00b042; }
.ava--amber { background: #ff9200; }
.ava--rose { background: #f25643; }

.chats__main { min-width: 0; flex: 1; }

.chats__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.chats__row time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.chats__text {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 6px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.phone__tabs .is-on { color: var(--blue); font-weight: 700; }

.band, .install, .download { scroll-margin-top: 76px; }

.band, .install { padding: 56px 0 8px; }

.section-head { max-width: 36em; margin-bottom: 22px; }

.section-head h2,
.download__copy h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.section-head p:last-child,
.download__copy > p {
  margin: 10px 0 0;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cards {
  display: grid;
  gap: 12px;
}

.card {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(23, 26, 29, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(0, 137, 255, 0.85), transparent 80%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 137, 255, 0.12);
  }

  .card:hover::after {
    opacity: 1;
    animation: sheen 1.1s linear;
  }
}

.card h3 { margin: 14px 0 6px; font-size: 18px; }

.card p { margin: 0; color: var(--text); font-size: 14px; }

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue { color: var(--blue); background: #e8f5ff; }
.tone-green { color: var(--green); background: #e8f8ef; }
.tone-amber { color: var(--amber); background: #fff6e8; }
.tone-violet { color: var(--violet); background: #eef0ff; }
.tone-teal { color: var(--teal); background: #e7f8f8; }
.tone-rose { color: var(--rose); background: #ffece8; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  padding: 20px 18px;
  background: #fff;
  border-radius: 18px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 137, 255, 0.45);
  animation: ping 2.2s ease-out infinite;
}

.steps h3 { margin: 8px 0 6px; font-size: 18px; }

.steps p { margin: 0; color: var(--text); font-size: 14px; }

.note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff6e8;
  color: #8a4b00;
  font-size: 14px;
}

.download { padding: 36px 0 28px; }

.download__card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(145deg, #1394ff, #0074d9);
  color: #fff;
}

.download__card::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -40%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: pass 5.5s ease-in-out infinite;
  pointer-events: none;
}

.download__copy,
.qr { position: relative; z-index: 1; }

.download__copy > p { color: rgba(255, 255, 255, 0.88); }

.eyebrow--on-blue { color: #fff; }

.download .btn { margin-top: 22px; }

.file {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.qr {
  margin: 0;
  justify-self: start;
  width: 196px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}

.qr__scan {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0089ff, transparent);
  box-shadow: 0 0 12px rgba(0, 137, 255, 0.8);
  animation: qr-scan 2.4s ease-in-out infinite;
  pointer-events: none;
}

.qr img {
  width: 168px;
  height: 168px;
  margin-inline: auto;
}

.qr figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.foot {
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.foot__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.foot a { color: var(--blue); }

.dock {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.dock strong { display: block; font-size: 15px; }

.dock span { color: var(--muted); font-size: 12px; }

.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: rgba(23, 26, 29, 0.72);
}

.mask[hidden] { display: none; }

.mask__arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 108px;
  height: 80px;
}

.mask__arrow path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mask__card {
  width: min(440px, 100%);
  margin-inline: auto;
  padding: 22px 20px;
  border-radius: 20px;
  background: #fff;
}

.mask__card h2 { margin: 0; font-size: 24px; }

.mask__card p:last-of-type {
  margin: 10px 0 18px;
  color: var(--text);
}

body.is-locked { overflow: hidden; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

.cards .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4) { transition-delay: 0.08s; }
.cards .reveal:nth-child(5) { transition-delay: 0.16s; }
.cards .reveal:nth-child(6) { transition-delay: 0.24s; }

@media (hover: hover) {
  .js .card.reveal.is-in:hover { transform: translateY(-4px); }
}

@media (max-width: 720px) {
  :root { --dock: 84px; }
}

@media (min-width: 721px) {
  .dock { display: none; }
  .nav { display: flex; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .hero { padding: 42px 0 20px; }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 36px;
    align-items: center;
  }
  .stage { margin-top: 0; justify-content: flex-end; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .download__card {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 42px 48px;
  }
  .qr { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .pulse path { stroke-dasharray: none; }
}

@keyframes pulse {
  to { stroke-dashoffset: -320; }
}

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

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

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes grid-drift {
  to { background-position: 56px 56px; }
}

@keyframes sweep {
  0% { top: -30%; }
  100% { top: 120%; }
}

@keyframes drift-a {
  50% { transform: translate(-28px, 20px); }
}

@keyframes drift-b {
  50% { transform: translate(22px, -18px); }
}

@keyframes ping-ring {
  0% { transform: scale(0.45); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes screen-scan {
  0% { top: -56px; }
  100% { top: 100%; }
}

@keyframes ping {
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes sheen {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

@keyframes pass {
  0%, 20% { left: -40%; }
  70%, 100% { left: 120%; }
}

@keyframes qr-scan {
  0%, 100% { top: 16px; }
  50% { top: 158px; }
}

@keyframes shine-bg {
  0%, 46% { background-position: 130% 0, 0 0; }
  72%, 100% { background-position: -40% 0, 0 0; }
}
