/* imgram download page.
   Sapphire night sky in the app icon's blues; gold is reserved for RWA and "in progress".
   One standout: the phone in the hero. Everything else stays quiet. */
:root {
  --night: #0b1840;
  --night-2: #13286a;
  --royal: #1f4fd1;
  --sky: #3390ec;
  --ice: #bfe6ff;
  --gold: #f2c14e;
  --paper: #f4f7fe;
  --card: #ffffff;
  --ink: #0f1d3d;
  --ink-2: #44547a;
  --ink-3: #7a88a8;
  --line: #dde5f5;
  --on-dark: #eaf3ff;
  --on-dark-2: #a9bde6;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--on-dark); background: var(--night); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.hide { display: none !important; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 70% 0%, var(--night-2) 0%, var(--night) 60%); overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.sky .b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: #2a6cf0; animation: drift1 26s ease-in-out infinite alternate; }
.sky .b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 6vmax; background: #23b5f2; opacity: .35; animation: drift2 32s ease-in-out infinite alternate; }
.sky .b3 { width: 30vmax; height: 30vmax; left: 30vw; top: 46vh; background: #6a4cff; opacity: .28; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vmax, 8vmax) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .sky i { animation: none; } }

/* ---------- top bar ---------- */
.top { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.mark img { border-radius: 9px; box-shadow: 0 4px 16px rgba(51, 144, 236, .45); }
.top nav { display: flex; gap: 22px; font-size: 14.5px; }
.top nav a { text-decoration: none; color: var(--on-dark-2); }
.top nav a:hover { color: var(--on-dark); }
@media (max-width: 720px) { .top nav { display: none; } }

/* ---------- hero ---------- */
.hero { max-width: 1160px; margin: 0 auto; padding: 36px 24px 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; padding-bottom: 56px; } }
.announce { display: inline-block; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px; background: rgba(242, 193, 78, .14); color: var(--gold); border: 1px solid rgba(242, 193, 78, .35); font-size: 14px; }
.hero h1 { font-size: clamp(56px, 10vw, 112px); line-height: .95; font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(100deg, #ffffff 0%, #cfe9ff 40%, #6cc0ff 75%, #3390ec 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em; }
.tagline { margin-top: 18px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.01em; color: var(--on-dark); }
.intro { margin-top: 14px; max-width: 34em; color: var(--on-dark-2); font-size: 16.5px; }
.cta { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dl { display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px 16px 20px; border-radius: 18px; text-decoration: none; color: #06122e;
  background: linear-gradient(180deg, #ffffff 0%, #dcefff 100%); box-shadow: 0 10px 40px rgba(51, 144, 236, .55), inset 0 -2px 0 rgba(31, 79, 209, .18);
  transition: transform .15s ease, box-shadow .15s ease; }
.dl:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(51, 144, 236, .7), inset 0 -2px 0 rgba(31, 79, 209, .18); }
.dl:active { transform: translateY(0); }
.dl svg { width: 30px; height: 30px; color: var(--royal); flex: none; }
.dl b { display: block; font-size: 19px; line-height: 1.25; }
.dl small { display: block; font-size: 13.5px; color: #4a5f8f; font-variant-numeric: tabular-nums; }
.dl[aria-disabled="true"] { opacity: .7; pointer-events: none; }
.qr { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: 13.5px; }
.qr #qr-img { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.qr #qr-img img { width: 92px; height: 92px; image-rendering: pixelated; }
.req { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-2); display: flex; gap: 18px; flex-wrap: wrap; }
.ios-tip { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14.5px; max-width: 30em; }

/* the phone */
.phone-wrap { position: relative; justify-self: center; perspective: 1400px; }
.phone { width: 290px; height: 590px; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b3f72, #0c1533 60%); box-shadow: 0 40px 80px rgba(3, 8, 30, .6), 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 90px rgba(51, 144, 236, .35);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotateY(-24deg) rotateX(10deg) rotateZ(4deg); } }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; color: #0f1d3d; display: flex; flex-direction: column; font-size: 12px; position: relative; }
.s-status { display: flex; justify-content: space-between; padding: 12px 22px 4px; font-weight: 600; font-size: 12px; }
.s-icons { width: 44px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #0f1d3d 60%, transparent 60% 70%, #0f1d3d 70%); opacity: .8; }
.s-title { padding: 10px 18px 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.s-search { margin: 4px 14px 8px; padding: 7px 12px; border-radius: 999px; background: #eef1f6; color: #8b95a7; }
.s-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.s-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; opacity: 0; animation: row .5s ease forwards; }
.s-list li:nth-child(1) { animation-delay: .7s; } .s-list li:nth-child(2) { animation-delay: .82s; } .s-list li:nth-child(3) { animation-delay: .94s; } .s-list li:nth-child(4) { animation-delay: 1.06s; } .s-list li:nth-child(5) { animation-delay: 1.18s; }
@keyframes row { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.s-list .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 15px; }
.a1 { background: linear-gradient(135deg, #5ab0ff, #2a78dc); } .a2 { background: linear-gradient(135deg, #ffb26b, #f07b3f); } .a3 { background: linear-gradient(135deg, #f6d27a, #c8962e); } .a4 { background: linear-gradient(135deg, #8fd88a, #3fae5a); } .a5 { background: linear-gradient(135deg, #b9a7ff, #7b61e8); }
.s-list b { display: block; font-size: 13px; }
.s-list span { display: block; color: #7a869c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-list em { font-style: normal; color: #9aa4b6; font-size: 11px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.s-list .dot { font-style: normal; background: #3390ec; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; font-size: 10.5px; }
.s-tabs { margin: 8px 12px 14px; padding: 8px; border-radius: 999px; background: #f1f4f9; display: flex; justify-content: space-around; color: #8b95a7; font-size: 11px; box-shadow: 0 4px 14px rgba(15,29,61,.08); }
.s-tabs .on { color: #2a78dc; font-weight: 700; }
.bubble { position: absolute; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.95); color: #0f1d3d; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(3,8,30,.35); white-space: nowrap; opacity: 0; animation: pop .5s cubic-bezier(.2,.9,.3,1.3) forwards; }
.bubble::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fc07a; margin-right: 8px; vertical-align: 1px; }
.bb1 { left: -64px; top: 120px; animation-delay: 1.5s; }
.bb2 { right: -48px; bottom: 130px; animation-delay: 1.9s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .phone { width: 250px; height: 510px; transform: none; } .bb1 { left: -30px; } .bb2 { right: -20px; } }
@media (max-width: 420px) { .bb1 { left: -6px; top: 70px; } .bb2 { right: -6px; } }
@media (prefers-reduced-motion: reduce) { .phone, .s-list li, .bubble { animation: none; opacity: 1; } }

/* ---------- install band (still on the sky) ---------- */
.band { max-width: 1160px; margin: 0 auto; padding: 0 24px 88px; }
.band h2, .sec h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin-bottom: 26px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; padding: 22px 22px 24px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps b { font-size: 18px; display: block; margin-bottom: 6px; }
.steps p { color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- paper sections ---------- */
.paper { background: var(--paper); color: var(--ink); border-radius: 32px 32px 0 0; padding: 72px 0 40px; }
.sec { max-width: 1160px; margin: 0 auto; padding: 0 24px 80px; }
.lede { color: var(--ink-2); margin: -12px 0 24px; max-width: 40em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #e4eeff; color: var(--royal); }
.feat .ic svg { width: 22px; height: 22px; }
.feat b { display: block; font-size: 17px; margin-bottom: 2px; }
.feat p { color: var(--ink-2); font-size: 15px; }

.release-latest { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; box-shadow: 0 10px 40px rgba(15, 29, 61, .06); }
.release-latest .v { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--royal); font-variant-numeric: tabular-nums; }
.release-latest .when { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.notes { white-space: pre-wrap; color: var(--ink); }
@media (max-width: 600px) { .release-latest { grid-template-columns: 1fr; padding: 22px; } }
.release-more { margin-top: 16px; }
.release-more summary { cursor: pointer; color: var(--royal); font-weight: 600; padding: 6px 0; }
.release-list { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid var(--line); }
.release-list li { position: relative; padding: 4px 0 18px 22px; }
.release-list li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sky); }
.release-list .rv { font-weight: 700; font-variant-numeric: tabular-nums; }
.release-list .rd { color: var(--ink-3); font-size: 13.5px; margin-left: 10px; }

.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.up { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.up b { font-size: 18px; letter-spacing: -.01em; }
.up p { color: var(--ink-2); font-size: 14.5px; }
.up .st { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #eef2fa; color: var(--ink-2); }
.up .st.building { background: rgba(242, 193, 78, .2); color: #8a5d00; }
.up .st.soon { background: #dff5e9; color: #157046; }
.up.rwa { background: linear-gradient(150deg, #fff8e6, #ffffff 60%); border-color: #f0dca4; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.roadmap li { position: relative; padding: 40px 22px 0 0; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink-3); }
.roadmap li.done::before { background: var(--sky); border-color: var(--sky); }
.roadmap li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(242, 193, 78, .25); }
.roadmap .per { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.roadmap li.now .per { color: #8a5d00; }
.roadmap li.done .per { color: var(--royal); }
.roadmap h3 { font-size: 19px; margin: 2px 0 10px; letter-spacing: -.01em; }
.roadmap ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 15px; }
.roadmap ul li { padding: 0; }
.roadmap ul li::before { display: none; }
@media (max-width: 700px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .roadmap > li { padding: 0 0 28px 38px; }
}

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; color: var(--ink-2); white-space: pre-wrap; }

/* ---------- footer ---------- */
.foot { background: var(--paper); color: var(--ink-3); padding: 8px 24px 48px; text-align: center; font-size: 13.5px; }
.links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.links a { color: var(--royal); font-weight: 600; text-decoration: none; font-size: 15px; }
.sha { font-family: var(--mono); font-size: 11.5px; word-break: break-all; max-width: 560px; margin: 0 auto 8px; }

/* ---------- WeChat / QQ overlay ---------- */
.wx { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 30, .88); display: flex; justify-content: flex-end; padding: 16px 20px; }
.wx p { margin-top: 90px; max-width: 280px; color: #fff; font-size: 16px; line-height: 1.7; text-align: right; }
.wx p b { display: block; font-size: 22px; margin-bottom: 6px; }
.wx-arrow { position: absolute; right: 26px; top: 10px; width: 60px; height: 76px; border-right: 3px dashed #fff; border-top: 3px dashed #fff; border-top-right-radius: 50px; }
.s-list li > div { min-width: 0; }
@media (max-width: 900px) { .bb1 { top: -18px; left: -10px; } }
@media (max-width: 560px) { .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .up { padding: 16px; } .up b { font-size: 16px; } }
