@font-face {
  font-family: "KLDisplay";
  src: url("../fonts/display.woff2") format("woff2");
  font-display: swap;
}

:root {
  --lacquer-900: #120C07;
  --lacquer-800: #1A110A;
  --lacquer-700: #22170D;
  --lacquer-600: #2E1F10;
  --lacquer-500: #3D2A15;
  --gold-200: #FFE08A;
  --gold-300: #F4C25C;
  --gold-400: #E3A33B;
  --gold-500: #B97A26;
  --gold-line: rgba(233, 182, 90, .22);
  --gold-line-strong: rgba(233, 182, 90, .5);
  --paper-100: #F5E6C8;
  --paper-300: #CDB894;
  --paper-500: #8F7A5C;
  --jade-300: #5FE0A8;
  --jade-400: #2FB57E;
  --cinnabar: #E0583F;
  --ink: #3A2208;
  --display: "KLDisplay", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1180px;
  --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: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-100);
  background: var(--lacquer-900);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
main { overflow-x: hidden; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; border-radius: 10px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled {
  background: rgba(18, 12, 7, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gold-line);
}
.nav-inner {
  max-width: var(--wrap); height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--gold-300); }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--gold-line-strong); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--paper-300); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--gold-200); }
.nav-cta {
  height: 40px; padding: 0 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 4px 14px rgba(244, 194, 92, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: translateY(1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 24px 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(244, 184, 82, .2), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(224, 88, 63, .1), transparent 70%),
    linear-gradient(180deg, var(--lacquer-900), var(--lacquer-800) 70%, var(--lacquer-900));
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; }
.hills path { fill: #1E140B; }
.hills path.near { fill: #251A0E; }
.streak {
  position: absolute; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(244, 194, 92, 0), rgba(244, 194, 92, .55));
  animation: streak 3.6s linear infinite;
}
.streak.s1 { top: 22%; width: 220px; animation-delay: -.4s; }
.streak.s2 { top: 41%; width: 140px; animation-delay: -1.6s; background: linear-gradient(90deg, rgba(224, 88, 63, 0), rgba(224, 88, 63, .6)); }
.streak.s3 { top: 63%; width: 260px; animation-delay: -2.4s; }
.streak.s4 { top: 80%; width: 160px; animation-delay: -3s; }
@keyframes streak {
  from { transform: translateX(-30vw); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(110vw); opacity: 0; }
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14px; color: var(--paper-100);
  background: rgba(47, 181, 126, .1);
  box-shadow: inset 0 0 0 1px rgba(95, 224, 168, .35);
}
.hero-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--jade-300);
  box-shadow: 0 0 0 0 rgba(95, 224, 168, .6);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(95, 224, 168, 0); } }

.headline {
  margin: 22px 0 18px;
  font-size: clamp(64px, 8.4vw, 118px);
  line-height: 1.02;
  filter: drop-shadow(0 5px 0 #6B4413) drop-shadow(0 16px 30px rgba(0, 0, 0, .55));
}
.headline .line {
  display: block;
  width: max-content;
  background: linear-gradient(180deg, #FFF3CF 6%, var(--gold-300) 46%, var(--gold-400) 78%, #C98B2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.headline .line.two { position: relative; padding-left: .9em; padding-right: .6em; }
.headline .bolt {
  position: absolute; right: -.02em; top: .02em;
  width: .5em; height: .75em;
  transform: rotate(10deg);
  animation: zap 2.6s ease-in-out infinite;
}
.headline .bolt path { fill: var(--cinnabar); stroke: #3A1206; stroke-width: 3.5; stroke-linejoin: round; }
@keyframes zap {
  0%, 82%, 100% { transform: rotate(10deg) scale(1); }
  86% { transform: rotate(-4deg) scale(1.18); }
  90% { transform: rotate(14deg) scale(.96); }
}

.hero-sub {
  max-width: 30em;
  text-wrap: balance;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--paper-300);
}

.dl-group {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 20px 0 16px;
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(180deg, var(--lacquer-600), var(--lacquer-700));
  box-shadow: inset 0 0 0 1px var(--gold-line-strong), 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .15s, box-shadow .2s;
}
.dl-btn svg { width: 28px; height: 28px; fill: var(--gold-300); flex: none; }
.dl-btn b { display: block; font-size: 17px; line-height: 1.2; color: var(--paper-100); }
.dl-btn small { display: block; font-size: 12px; color: var(--paper-500); }
.dl-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gold-300), 0 14px 28px rgba(0, 0, 0, .35); }
.dl-btn:active { transform: translateY(1px); }
.dl-btn.is-current {
  order: -1;
  position: relative; overflow: hidden;
  padding-right: 28px;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 6px 0 var(--gold-500), 0 16px 34px rgba(244, 194, 92, .3), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.dl-btn.is-current svg { fill: var(--ink); }
.dl-btn.is-current b { color: var(--ink); font-size: 19px; }
.dl-btn.is-current small { color: #6E4A1C; }
.dl-btn.is-current::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -40%; } 85%, 100% { left: 130%; } }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin-top: 22px;
  font-size: 13px; color: var(--paper-500);
}
.meta i { width: 1px; height: 11px; margin: 0 12px; background: var(--gold-line-strong); }

/* hero visual */

.hero-visual { position: relative; height: 600px; }
.hero-visual .glow {
  position: absolute; left: 50%; top: 48%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 184, 82, .35), rgba(244, 184, 82, 0) 65%);
}
.phone {
  position: absolute; left: 50%; top: 50%;
  width: 280px; height: 572px;
  margin: -286px 0 0 -110px;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(160deg, #4A3016, #1A1009 40%, #2B1B0D);
  box-shadow: inset 0 0 0 1.5px rgba(244, 194, 92, .55), 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(0, 0, 0, .25);
  transform: rotate(4deg);
  cursor: pointer;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-12px); }
}
.phone-screen {
  position: relative; height: 100%;
  border-radius: 38px;
  padding: 44px 20px 22px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(240px 240px at 50% 40%, rgba(244, 184, 82, .16), transparent 70%),
    linear-gradient(180deg, #24170C, #140D07);
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%;
  width: 84px; height: 22px; margin-left: -42px;
  border-radius: 12px; background: #050301;
}
.app-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.app-title { font-size: 22px; color: var(--gold-300); }
.app-vip {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 6px;
  color: var(--ink); background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
}
.app-status { margin-top: 34px; font-size: 14px; color: var(--paper-300); transition: color .3s; }
.power {
  position: relative;
  width: 150px; height: 150px; margin-top: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-300);
  background: radial-gradient(circle at 50% 35%, #3A2A1A, #160D06 70%);
  box-shadow: inset 0 0 0 2px rgba(233, 182, 90, .35), 0 18px 40px rgba(0, 0, 0, .5);
  transition: color .4s, box-shadow .4s;
}
.power svg { width: 58px; height: 58px; }
.power .ring { position: absolute; inset: -10px; border-radius: 50%; }
.phone[data-state="connecting"] .power .ring {
  background: conic-gradient(from 0deg, transparent 0 60%, var(--gold-300) 90%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%);
  mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%);
  animation: spin 1s linear infinite;
}
.phone[data-state="connected"] .app-status { color: var(--jade-300); }
.phone[data-state="connected"] .power {
  color: var(--jade-300);
  box-shadow: inset 0 0 0 2px rgba(95, 224, 168, .6), 0 0 44px rgba(47, 181, 126, .45), 0 18px 40px rgba(0, 0, 0, .5);
}
.phone[data-state="connected"] .power .ring {
  box-shadow: 0 0 0 0 rgba(95, 224, 168, .5);
  animation: halo 2s ease-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { to { box-shadow: 0 0 0 26px rgba(95, 224, 168, 0); } }
.app-timer { margin-top: 18px; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.app-node {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  background: rgba(233, 182, 90, .08);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.app-node .flag {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--cinnabar);
}
.app-node em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--jade-300); font-variant-numeric: tabular-nums; }
.app-speed { display: flex; width: 100%; margin-top: 12px; gap: 10px; }
.app-speed div {
  flex: 1; padding: 8px 10px; border-radius: 12px;
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .03);
}
.app-speed small { font-size: 11px; color: var(--paper-500); }
.app-speed small:first-child { width: 100%; }
.app-speed b { font-size: 20px; font-variant-numeric: tabular-nums; }

.hero-visual .mascot {
  position: absolute; left: -2%; bottom: 0;
  width: 290px; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 99%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  animation: nod 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
.bubble {
  position: absolute; left: 2%; bottom: 300px;
  padding: 6px 18px 10px;
  border-radius: 18px;
  font-size: 40px; color: #FFF7E6;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px #3A1206, 0 12px 24px rgba(0, 0, 0, .4);
  text-shadow: 0 3px 0 #9C2E1C;
  transform: rotate(-10deg);
  animation: pop 4s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; right: 22px; bottom: -14px;
  border: 10px solid transparent; border-top: 14px solid var(--cinnabar);
  filter: drop-shadow(0 3px 0 #3A1206);
}
@keyframes pop {
  0%, 70%, 100% { transform: rotate(-10deg) scale(1); }
  76% { transform: rotate(-6deg) scale(1.14); }
  82% { transform: rotate(-12deg) scale(.98); }
}
.float-tag {
  position: absolute;
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 16px; border-radius: 16px;
  font-size: 13px; color: var(--paper-300);
  background: rgba(34, 23, 13, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--gold-line-strong), 0 14px 30px rgba(0, 0, 0, .4);
  animation: float-tag 5s ease-in-out infinite;
}
.float-tag b { font-size: 22px; color: var(--gold-200); font-variant-numeric: tabular-nums; }
.float-tag.t1 { left: 4%; top: 16%; }
.float-tag.t2 { right: 4%; bottom: 16%; animation-delay: -2.5s; }
.float-tag.t2 b { color: var(--jade-300); }
@keyframes float-tag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- ticker ---------- */

.ticker {
  position: relative; z-index: 2;
  margin: -28px -20px 0;
  padding: 14px 0;
  overflow: hidden;
  transform: rotate(-1.6deg);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker span {
  display: flex; align-items: center;
  font-family: var(--display); font-size: 24px; color: var(--ink);
  white-space: nowrap;
}
.ticker span::after {
  content: ""; width: 12px; height: 12px; margin: 0 28px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.features, .install, .faq { max-width: var(--wrap); margin: 0 auto; padding: 110px 24px 0; }
.section-title { text-align: center; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; color: var(--gold-300); }
.section-sub { margin-top: 10px; text-align: center; color: var(--paper-500); }

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas: "connect play play" "connect down smooth";
  gap: 18px;
  margin-top: 48px;
}
.tile {
  position: relative; overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--lacquer-700), var(--lacquer-800));
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.tile h3 { font-size: 28px; line-height: 1.2; color: var(--paper-100); }
.tile p { margin-top: 8px; font-size: 15px; color: var(--paper-500); }

.tile-connect {
  grid-area: connect;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 420px;
  background:
    radial-gradient(circle at 70% 75%, rgba(255, 255, 255, .35), transparent 50%),
    linear-gradient(160deg, var(--gold-200), var(--gold-400) 70%, #CF8E33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tile-connect h3 { font-size: 44px; color: var(--ink); }
.tile-connect p { color: #6E4A1C; font-size: 16px; }
.connect-demo { position: relative; align-self: center; width: 250px; height: 250px; margin-bottom: 10px; display: grid; place-items: center; }
.connect-demo .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(58, 34, 8, .35);
  animation: ripple 2.4s ease-out infinite;
}
.connect-demo .pulse.p2 { animation-delay: -1.2s; }
@keyframes ripple { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.connect-demo .core {
  position: relative;
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; align-items: baseline; justify-content: center; padding-top: 38px;
  font-family: var(--display); font-size: 48px; line-height: 1; color: var(--gold-200);
  background: radial-gradient(circle at 50% 30%, #4D3115, #1F140A);
  box-shadow: 0 16px 30px rgba(58, 34, 8, .45), inset 0 0 0 3px rgba(244, 194, 92, .5);
}
.connect-demo .core small { font-size: 18px; margin-left: 2px; }

.tile-play { grid-area: play; display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; column-gap: 28px; }
.tile-play h3, .tile-play p { grid-column: 1; }
.tile-play .player { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.player .screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(244, 194, 92, .45), transparent 60%),
    linear-gradient(200deg, #6B3A1A, #2A1508 60%, #120804);
  display: grid; place-items: center;
}
.player .screen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent);
}
.play-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 247, 230, .92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.play-icon::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-left: 18px solid var(--cinnabar); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.hd {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  padding: 1px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 800; color: var(--ink); background: var(--gold-300);
}
.player .bar { position: relative; height: 6px; margin-top: 14px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.player .buffer, .player .played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.player .buffer { background: rgba(245, 230, 200, .3); animation: buffer 6s linear infinite; }
.player .played { background: var(--cinnabar); animation: played 6s linear infinite; }
.player .knob {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(224, 88, 63, .35);
  animation: knob 6s linear infinite;
}
@keyframes buffer { from { width: 22%; } to { width: 100%; } }
@keyframes played { from { width: 4%; } to { width: 78%; } }
@keyframes knob { from { left: 4%; } to { left: 78%; } }

.tile-down { grid-area: down; }
.dl-demo { margin-top: 26px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.dl-demo .file { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dl-demo .name { color: var(--paper-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-demo .pct { color: var(--jade-300); font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-demo .track { height: 8px; margin-top: 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dl-demo .track span {
  display: block; height: 100%; width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--jade-400), var(--jade-300));
  box-shadow: 0 0 12px rgba(95, 224, 168, .6);
  transition: width .16s linear;
}

.tile-smooth { grid-area: smooth; }
.lines { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.lines li { display: grid; grid-template-columns: 58px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--paper-300); }
.lines i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.lines i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  border-radius: 6px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  animation: grow 2.4s ease-out infinite alternate;
}
.lines li:first-child i::after { background: linear-gradient(90deg, var(--jade-400), var(--jade-300)); }
.lines em { font-style: normal; text-align: right; color: var(--paper-500); font-variant-numeric: tabular-nums; }
.lines li:first-child em { color: var(--jade-300); }
@keyframes grow { from { width: calc(var(--w) * .6); } to { width: var(--w); } }

/* install */

.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.step {
  position: relative; counter-increment: step;
  padding: 28px 26px 30px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--lacquer-700), var(--lacquer-800));
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.step::before {
  content: counter(step);
  position: absolute; right: 22px; top: 10px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 72px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-line-strong);
}
.step h3 { margin-top: 20px; font-size: 20px; color: var(--gold-200); }
.step p { margin-top: 6px; font-size: 15px; color: var(--paper-300); }

.step-art {
  position: relative; width: 84px; height: 84px; border-radius: 24px;
  background: rgba(233, 182, 90, .1);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.art-1 .arrow {
  position: absolute; left: 50%; top: 16px; width: 6px; height: 30px; margin-left: -3px;
  border-radius: 3px; background: var(--gold-300);
  animation: drop 1.6s ease-in-out infinite;
}
.art-1 .arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -11px;
  border: 11px solid transparent; border-top: 12px solid var(--gold-300); border-bottom: 0;
}
.art-1 .tray {
  position: absolute; left: 20px; right: 20px; bottom: 16px; height: 12px;
  border: 4px solid var(--paper-300); border-top: 0; border-radius: 0 0 6px 6px;
}
@keyframes drop { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }
.art-2 .sheet {
  position: absolute; inset: 16px 14px;
  border-radius: 10px; padding: 8px;
  display: grid; gap: 6px; align-content: start;
  background: var(--lacquer-500);
}
.art-2 .sheet i { height: 7px; border-radius: 4px; background: rgba(245, 230, 200, .25); }
.art-2 .sheet i:first-child { background: var(--jade-300); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.art-3 .toggle {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 30px; margin: -15px 0 0 -26px;
  border-radius: 15px; background: rgba(245, 230, 200, .2);
  animation: track 2.4s ease-in-out infinite;
}
.art-3 .toggle::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff;
  animation: knob-move 2.4s ease-in-out infinite;
}
@keyframes track { 0%, 30% { background: rgba(245, 230, 200, .2); } 45%, 100% { background: var(--jade-400); } }
@keyframes knob-move { 0%, 30% { transform: translateX(0); } 45%, 100% { transform: translateX(22px); } }

/* faq */

.faq-list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--lacquer-700);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: inset 0 0 0 1px var(--gold-line-strong); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px;
  background: var(--gold-300); transition: transform .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 24px 22px; color: var(--paper-300); }

/* final */

.final {
  position: relative;
  max-width: var(--wrap);
  margin: 120px auto 0;
  padding: 0 24px;
  display: flex; align-items: flex-end; gap: 20px;
}
.final::before {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; top: 56px;
  border-radius: 32px;
  background:
    radial-gradient(500px 260px at 20% 100%, rgba(244, 184, 82, .3), transparent 70%),
    linear-gradient(120deg, var(--lacquer-600), var(--lacquer-700));
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
}
.final-mascot { position: relative; width: 300px; height: auto; margin-left: 48px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.final-copy { position: relative; align-self: center; padding: 80px 40px 24px 10px; }
.final-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; color: var(--gold-300); }
.final-copy p { margin-top: 8px; color: var(--paper-300); }
.final-cta {
  margin-top: 22px;
  height: 56px; padding: 0 36px;
  border-radius: 999px;
  font-size: 18px; font-weight: 800; color: var(--ink);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 5px 0 var(--gold-500), 0 16px 30px rgba(244, 194, 92, .3);
  transition: transform .15s;
}
.final-cta:hover { transform: translateY(-2px); }
.final-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-500); }

.footer {
  padding: 48px 24px calc(48px + env(safe-area-inset-bottom));
  text-align: center; font-size: 13px; color: var(--paper-500);
}

/* ---------- sticky mobile bar ---------- */

.mobile-bar { display: none; }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(5, 3, 1, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 40px); overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background:
    radial-gradient(380px 200px at 50% 0%, rgba(244, 184, 82, .18), transparent 70%),
    linear-gradient(180deg, var(--lacquer-600), var(--lacquer-800));
  box-shadow: inset 0 0 0 1px var(--gold-line-strong), 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .22s, transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.open .modal-mask { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close {
  position: absolute; right: 14px; top: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--paper-500);
}
.modal-close:hover { color: var(--paper-100); background: rgba(255, 255, 255, .06); }

.mv { text-align: center; }
.mv h3 { font-size: 28px; line-height: 1.25; color: var(--gold-300); }
.mv p { margin-top: 8px; color: var(--paper-300); font-size: 15px; text-wrap: balance; }
.mv-art { position: relative; width: 150px; margin: 0 auto 14px; }
.mv-art.spin img { animation: wobble 1s ease-in-out infinite; }
.mv-art.bob img { animation: bob 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg) translateX(-4px); } 50% { transform: rotate(6deg) translateX(4px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mv-badge {
  position: absolute; right: -14px; top: 6px;
  padding: 2px 12px 4px; border-radius: 10px;
  font-size: 18px; color: var(--ink);
  background: var(--gold-300);
  box-shadow: 0 0 0 2px var(--ink);
  transform: rotate(10deg);
}

.mv-started { text-align: left; }
.mv-head { display: flex; gap: 14px; align-items: center; padding-right: 20px; }
.mv-head h3 { font-size: 26px; }
.mv-head p { margin-top: 2px; font-size: 14px; }
.mv-icon {
  flex: none; width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  color: var(--ink);
  background: linear-gradient(180deg, var(--jade-300), var(--jade-400));
  box-shadow: 0 0 24px rgba(95, 224, 168, .4);
}
.mv-icon svg { width: 28px; height: 28px; animation: drop 1.4s ease-in-out infinite; }
.mv-warn {
  margin-top: 16px !important; padding: 10px 14px; border-radius: 12px;
  font-size: 13px !important; color: var(--gold-200) !important;
  background: rgba(224, 88, 63, .12);
  box-shadow: inset 0 0 0 1px rgba(224, 88, 63, .35);
}
.mv-steps { list-style: none; counter-reset: s; margin-top: 20px; display: grid; gap: 10px; }
.mv-steps li {
  counter-increment: s;
  position: relative;
  padding: 12px 14px 12px 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}
.mv-steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--ink); background: var(--gold-300);
}
.mv-steps b { display: block; font-size: 15px; color: var(--paper-100); }
.mv-steps span { display: block; font-size: 13px; color: var(--paper-500); }
.mv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mv-actions.single { grid-template-columns: 1fr; }
.btn-gold, .btn-ghost { height: 48px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.btn-gold { color: var(--ink); background: linear-gradient(180deg, var(--gold-200), var(--gold-400)); box-shadow: 0 4px 0 var(--gold-500); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-500); }
.btn-ghost { color: var(--paper-100); box-shadow: inset 0 0 0 1px var(--gold-line-strong); }

.qr-frame {
  position: relative;
  width: 244px; margin: 22px auto 0; padding: 12px;
  border-radius: 22px;
  background: #FFFDF6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.qr-frame canvas { width: 220px; height: 220px; border-radius: 8px; }
.qr-corner { position: absolute; width: 26px; height: 26px; border: 4px solid var(--gold-300); }
.qr-corner.c1 { left: -10px; top: -10px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.qr-corner.c2 { right: -10px; top: -10px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.qr-corner.c3 { left: -10px; bottom: -10px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.qr-corner.c4 { right: -10px; bottom: -10px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.qr-tip { margin-top: 20px !important; font-size: 13px !important; color: var(--paper-500) !important; }
.qr-direct { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--gold-300); border-bottom: 1px dashed var(--gold-line-strong); }

/* ---------- in-app browser guide ---------- */

.wx-guide {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 20px) 24px 40px;
  background: rgba(10, 6, 3, .94);
  text-align: center;
}
.wx-guide[hidden] { display: none; }
.wx-arrow { align-self: flex-end; width: 110px; height: 110px; margin-right: 6px; animation: bob 1.6s ease-in-out infinite; }
.wx-text p { color: var(--paper-300); font-size: 17px; }
.wx-text p.display { font-size: 34px; color: var(--gold-300); margin-bottom: 8px; }
.wx-guide img { flex: none; width: 200px; margin-top: 30px; }
.wx-guide button {
  margin-top: 24px; height: 48px; padding: 0 40px;
  border-radius: 999px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
}

.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 76px); z-index: 80;
  max-width: calc(100% - 48px);
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; color: var(--ink);
  background: var(--gold-200);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, -12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-visual { height: 560px; }
  .hero-visual .mascot { width: 240px; left: -6%; }
  .bubble { bottom: 250px; left: -2%; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "connect play" "connect play" "down smooth"; }
  .tile-play { grid-template-columns: 1fr; }
  .tile-play .player { grid-column: 1; grid-row: auto; margin-top: 22px; }
}

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .headline .line { margin: 0 auto; }
  .dl-group, .meta { justify-content: center; }
  .hero-visual { height: 560px; max-width: 520px; width: 100%; margin: 20px auto 0; }
  .final { flex-direction: column; align-items: center; text-align: center; }
  .final::before { top: 110px; }
  .final-mascot {
    margin: 0; width: 240px;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .final-copy { align-self: auto; padding: 0 24px 44px; }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; height: 36px; padding: 0 16px; font-size: 14px; }
  .brand { font-size: 20px; }
  .brand img { width: 32px; height: 32px; }

  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-chip { font-size: 13px; height: 32px; }
  .headline { font-size: clamp(54px, 16vw, 76px); margin: 18px 0 14px; }
  .hero-sub { font-size: 15px; max-width: 20em; }
  .dl-group { width: 100%; flex-direction: column; margin-top: 26px; }
  .dl-btn { width: 100%; height: 58px; }
  .dl-btn.is-current { height: 66px; justify-content: center; }
  .dl-group .dl-btn:not(.is-current) { display: inline-flex; }
  .meta { font-size: 12px; }
  .meta i { margin: 0 8px; }

  .hero-visual { height: 470px; margin-top: 12px; }
  .hero-visual .glow { width: 380px; height: 380px; }
  .phone { width: 230px; height: 470px; margin: -235px 0 0 -70px; padding: 10px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; padding: 38px 16px 16px; }
  .app-title { font-size: 18px; }
  .app-status { margin-top: 22px; font-size: 13px; }
  .power { width: 120px; height: 120px; margin-top: 12px; }
  .power svg { width: 46px; height: 46px; }
  .app-timer { font-size: 21px; margin-top: 12px; }
  .app-node { margin-top: 12px; padding: 8px 10px; font-size: 13px; }
  .app-speed b { font-size: 16px; }
  .hero-visual .mascot { width: 190px; left: -4%; }
  .bubble { font-size: 30px; bottom: 196px; left: 0; padding: 4px 14px 8px; }
  .float-tag { padding: 8px 12px; font-size: 12px; }
  .float-tag b { font-size: 18px; }
  .float-tag.t1 { left: -2%; top: 8%; }
  .float-tag.t2 { right: -2%; bottom: 10%; }

  .ticker span { font-size: 19px; }
  .ticker span::after { margin: 0 18px; width: 10px; height: 10px; }

  .features, .install, .faq { padding: 80px 18px 0; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "connect" "play" "down" "smooth"; gap: 14px; margin-top: 32px; }
  .tile { padding: 22px; border-radius: 22px; }
  .tile h3 { font-size: 24px; }
  .tile-connect { min-height: 0; flex-direction: row; align-items: center; }
  .tile-connect h3 { font-size: 32px; }
  .tile-connect p { font-size: 14px; }
  .connect-demo { width: 120px; height: 120px; flex: none; }
  .connect-demo .core { width: 88px; height: 88px; font-size: 30px; padding-top: 28px; }
  .connect-demo .core small { font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 20px; border-radius: 22px; }
  .step-art { width: 64px; height: 64px; border-radius: 18px; grid-row: 1 / span 2; transform: scale(.85); transform-origin: 0 0; }
  .step h3 { margin-top: 0; font-size: 18px; }
  .step p { font-size: 14px; }
  .step::before { font-size: 56px; right: 16px; top: 6px; }

  .faq summary { font-size: 16px; padding: 18px 50px 18px 18px; }
  .faq summary::before, .faq summary::after { right: 18px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }

  .final { margin-top: 90px; padding: 0 18px; }
  .final::before { left: 18px; right: 18px; }
  .final-mascot { width: 200px; }

  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .mobile-bar {
    position: fixed; left: 12px; right: 12px; z-index: 45;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 20px;
    background: rgba(34, 23, 13, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px var(--gold-line-strong), 0 16px 40px rgba(0, 0, 0, .5);
    transform: translateY(140%);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.1);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar img { border-radius: 12px; }
  .mobile-bar div { flex: 1; min-width: 0; }
  .mobile-bar b { display: block; font-size: 15px; color: var(--gold-200); }
  .mobile-bar small { display: block; font-size: 12px; color: var(--paper-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar button {
    height: 44px; padding: 0 20px; border-radius: 14px;
    font-weight: 800; color: var(--ink);
    background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  }

  .modal { align-items: end; padding: 0; }
  .modal-card {
    max-width: none; border-radius: 26px 26px 0 0;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
}

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