:root {
  --brand: #4350c0;
  --brand-2: #6a5af9;
  --brand-dark: #323d9c;
  --text: #0f1221;
  --text-2: #5b6075;
  --line: #e8eaf2;
  --up: #16a571;
  --radius: 16px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.up { color: var(--up); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; transition: all .2s; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(67, 80, 192, .28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(67, 80, 192, .36); }
.btn--ghost { border: 1.5px solid var(--brand); color: var(--brand); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--sm { height: 36px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 36px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--disabled { background: #eceef5; color: #a3a8bd; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.arrow { font-style: normal; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--brand); }
.brand img { width: 34px; height: 34px; }
.nav__links { display: flex; gap: 32px; flex: 1; }
.nav__links a { font-size: 15px; color: var(--text-2); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--brand); }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger i { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 300px at 18% 8%, rgba(255, 170, 170, .38), transparent 70%),
    radial-gradient(560px 380px at 92% 12%, rgba(150, 130, 255, .38), transparent 70%),
    radial-gradient(520px 360px at 2% 70%, rgba(150, 235, 215, .35), transparent 70%),
    radial-gradient(520px 360px at 80% 100%, rgba(255, 210, 170, .35), transparent 70%),
    #fbfbff;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px;
  background: rgba(255, 255, 255, .85); border-radius: 999px; font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 24px rgba(67, 80, 192, .08); margin-bottom: 36px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(67, 80, 192, .15); }
.pill__btn { background: var(--brand); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.stats { display: flex; gap: 0; margin: 44px 0; }
.stats li { padding: 0 32px; border-left: 1px solid #cdd1e4; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-size: 32px; font-weight: 600; line-height: 1.2; }
.stats span { font-size: 14px; color: var(--text-2); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__tip { margin-top: 16px; color: var(--text-2); font-size: 15px; }

/* Phone */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px; border-radius: 42px; padding: 10px; background: #141726;
  box-shadow: 0 40px 80px rgba(40, 50, 140, .28), inset 0 0 0 2px #2a2f45; position: relative;
  transform: rotate(-4deg); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(-4deg) translateY(-12px); } }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: #141726; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { height: 100%; border-radius: 34px; background: #f5f6fb; padding: 44px 16px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; position: relative; }
.ph-head { display: flex; justify-content: space-between; align-items: flex-end; }
.ph-head small { display: block; color: var(--text-2); font-size: 11px; }
.ph-head strong { font-size: 26px; line-height: 1.2; }
.ph-up { background: rgba(22, 165, 113, .12); color: var(--up); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.ph-chart { width: 100%; height: 100px; background: #fff; border-radius: 14px; padding: 8px; }
.ph-bots { display: flex; flex-direction: column; gap: 8px; }
.ph-bot { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; }
.ph-bot div { flex: 1; line-height: 1.3; }
.ph-bot b { font-size: 13px; display: block; }
.ph-bot small { font-size: 11px; color: var(--text-2); }
.ph-bot em { font-style: normal; font-weight: 700; font-size: 13px; }
.ph-bot .ico { width: 34px; height: 34px; border-radius: 10px; background: #eceeff; color: var(--brand); flex: none; }
.ph-tab { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 40px; background: #fff; border-radius: 20px; display: flex; justify-content: space-around; align-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.ph-tab i { width: 18px; height: 18px; border-radius: 6px; background: #d5d8e8; }
.ph-tab i.on { background: var(--brand); }
.float {
  position: absolute; background: #fff; border-radius: 14px; padding: 10px 16px; font-size: 13px;
  box-shadow: 0 14px 36px rgba(40, 50, 140, .16); white-space: nowrap; animation: floaty2 5s ease-in-out infinite;
}
.float b { margin-left: 6px; }
.float--a { top: 90px; left: -10px; }
.float--b { bottom: 100px; right: -6px; animation-delay: -2s; }
@keyframes floaty2 { 50% { transform: translateY(-10px); } }

/* ---------- Icons (CSS mask) ---------- */
.ico { display: inline-block; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--m) center / 60% no-repeat; mask: var(--m) center / 60% no-repeat; }
.ico--grid { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/></svg>"); }
.ico--ai { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4zM19 17l1 2.4 2.4 1-2.4 1L19 24l-1-2.6-2.4-1 2.4-1z'/></svg>"); }
.ico--copy { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 3h10a2 2 0 0 1 2 2v12h-2V5H9zM5 7h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z'/></svg>"); }
.ico--sandbox { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20V10h3v10zM10.5 20V4h3v16zM17 20v-7h3v7z'/></svg>"); }
.ico--market { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 17l6-6 4 4 8-9v4h2V3h-8v2h4l-6 7-4-4-8 8z'/></svg>"); }
.ico--devices { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 5h14v10H2zM0 17h18v2H0zM18 8h5a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/></svg>"); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: #f6f7fc; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 14px; text-transform: uppercase; margin-bottom: 12px; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.25; font-weight: 800; letter-spacing: -.5px; }
.h2--light { color: #fff; }
.lead { margin-top: 12px; font-size: 18px; color: var(--text-2); }
.lead--light { color: #a9aec6; }

/* Dark features */
.dark {
  padding: 96px 0; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 100%, rgba(106, 90, 249, .35), transparent 70%),
    #0b0d17;
}
.dark::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(60deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 111px;
}
.dark .container { position: relative; }
.dark .eyebrow { color: #9aa6ff; }
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 28px; transition: .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(154, 166, 255, .6); background: linear-gradient(160deg, rgba(106, 90, 249, .22), rgba(255, 255, 255, .03)); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 20px; }
.card__icon .ico { width: 52px; height: 52px; color: #fff; background: #fff; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: #a9aec6; font-size: 15px; }

/* Security */
.sec { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec__item { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: #fff; transition: .25s; }
.sec__item:hover { box-shadow: 0 20px 48px rgba(67, 80, 192, .1); transform: translateY(-4px); }
.sec__no { font-size: 44px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.sec__item h3 { font-size: 20px; margin-bottom: 8px; }
.sec__item p { color: var(--text-2); font-size: 15px; }

/* Steps */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 72px; right: -16px; border-top: 2px dashed #c9cdea; }
.steps span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 20px; position: relative; z-index: 1; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--text-2); }

/* Download */
.dl { padding: 96px 0 104px; text-align: center; background:
  radial-gradient(520px 300px at 15% 0%, rgba(150, 130, 255, .22), transparent 70%),
  radial-gradient(520px 300px at 90% 100%, rgba(150, 235, 215, .25), transparent 70%), #fbfbff; }
.dl__grid { margin: 48px auto 0; max-width: 840px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.dl__card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 36px 28px 32px; transition: .25s; display: flex; flex-direction: column; align-items: center; }
.dl__card:hover { box-shadow: 0 24px 56px rgba(67, 80, 192, .14); transform: translateY(-6px); }
.dl__card.is-current { border-color: var(--brand); box-shadow: 0 24px 56px rgba(67, 80, 192, .16); }
.dl__rec { position: absolute; top: 16px; right: 16px; background: rgba(67, 80, 192, .1); color: var(--brand); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; display: none; }
.dl__card.is-current .dl__rec { display: block; }
.dl__icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: #eceeff; color: var(--brand); margin-bottom: 16px; }
.dl__card h3 { font-size: 22px; }
.dl__meta { margin: 6px 0 24px; color: var(--text-2); font-size: 14px; }
.dl__hint { margin-top: 14px; color: var(--text-2); font-size: 13px; }
/* Footer */
.footer { background: #0b0d17; color: #8d93ad; padding: 48px 0 32px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 6px; font-size: 14px; }
.footer__risk { margin-top: 24px; font-size: 13px; line-height: 1.8; max-width: 900px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__copy { margin-top: 16px; font-size: 13px; }

/* WeChat mask */
.wx { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .82); color: #fff; padding: 24px; }
.wx[hidden] { display: none; }
.wx__arrow { position: absolute; top: 12px; right: 28px; font-size: 64px; line-height: 1; animation: floaty2 1.2s ease-in-out infinite; }
.wx__box { margin-top: 110px; text-align: center; font-size: 20px; line-height: 2; }
.wx__box b { color: #9aa6ff; }
.wx__sub { margin-top: 12px; font-size: 14px; color: #bbb; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 24px; }
  .cards, .sec, .dl__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 18px; }
  .nav__inner { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px 18px 16px; box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
    transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .brand { font-size: 21px; }
  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
  .pill { font-size: 13px; padding-left: 14px; margin-bottom: 24px; }
  .stats { margin: 28px 0; }
  .stats li { padding: 0 14px; }
  .stats b { font-size: 22px; }
  .stats span { font-size: 12px; }
  .btn--lg { height: 50px; padding: 0 26px; font-size: 16px; flex: 1; }
  .phone { width: 240px; height: 480px; }
  .ph-chart { height: 80px; }
  .float--a { display: none; }
  .float--b { right: 0; }
  .section, .dark, .dl { padding: 64px 0; }
  .cards, .sec, .dl__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
