@font-face {
  font-family: "Party Display";
  src: url("./assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #13170d;
  --accent: #eab948;
  --glow: rgba(234, 185, 72, .22);
  --text: #faf1de;
  --muted: #b6beac;
  --dim: #79836f;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --glow-hot: #fff3d1;
  --hot: #29b6f6;
  --pad: clamp(18px, 4.5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Party Display", Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ui: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color .9s var(--ease);
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; touch-action: manipulation; }
img { display: block; max-width: 100%; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: var(--accent);
  font: 600 .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
::selection { background: var(--accent); color: #13170d; }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .9s;
}
.label::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); transition: background .9s, box-shadow .9s;
}

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  transition: background .9s; animation: drift 22s ease-in-out infinite alternate; will-change: transform;
}
.ambient::before { left: -25vmax; top: -30vmax; }
.ambient::after { right: -30vmax; bottom: -35vmax; animation-duration: 28s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes drift { to { transform: translate(12vmax, 10vmax) scale(1.12); } }
.spot {
  position: fixed; left: 0; top: 0; width: 1040px; height: 1040px; margin: -520px 0 0 -520px;
  z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  opacity: 0; transform: translate3d(-2000px, -2000px, 0); will-change: transform; transition: opacity .6s;
}
.spot.on { opacity: .55; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: background .9s; }
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nav.scrolled { background: rgba(19, 23, 13, .92); } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-size: 19px; letter-spacing: .04em; }
.logo b { font-weight: 400; color: var(--accent); text-shadow: 0 0 14px var(--glow); transition: color .9s; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-cta { margin-left: 6px; height: 36px; padding: 0 16px !important; background: var(--accent); color: #161004 !important; font-weight: 700; display: inline-flex; align-items: center; }

.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }
.lockup { margin: 22px 0 0; font-family: var(--display); font-weight: 400; line-height: .88; font-size: clamp(60px, 9vw, 144px); letter-spacing: .004em; }
.lockup .l1 { display: block; color: var(--glow-hot); text-shadow: 0 0 5px #fff, 0 0 22px rgba(255, 87, 34, .65), 0 0 64px rgba(41, 182, 246, .4); animation: flicker 2.4s .3s both; }
.lockup .l2 { display: inline-flex; align-items: center; gap: .12em; color: #2b3220; text-shadow: 1px 1px 0 #444f33, 4px 6px 0 #090b06, 0 16px 34px rgba(0, 0, 0, .4); transition: color .6s var(--ease), text-shadow .6s var(--ease); }
.lit .lockup .l2 { color: #e4f6ff; text-shadow: 0 0 5px #fff, 0 0 22px rgba(41, 182, 246, .85), 0 0 64px rgba(255, 87, 34, .45); }
@keyframes flicker { 0% { opacity: .1; } 8% { opacity: 1; } 10% { opacity: .25; } 14% { opacity: 1; } 30% { opacity: .85; } 32% { opacity: 1; } 100% { opacity: 1; } }

.switch {
  position: relative; width: .34em; height: .34em; min-width: 40px; min-height: 40px;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 40% 35%, #2f3822, #0d1009);
  cursor: pointer; padding: 0; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .4); transition: transform .3s var(--spring);
}
.switch:hover { transform: scale(1.08); }
.switch:active { transform: scale(.92); }
.switch::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #6b7857; transition: background .3s, box-shadow .3s; }
.lit .switch::after { background: #fff; box-shadow: 0 0 10px var(--hot), 0 0 24px rgba(41, 182, 246, .9); }
.switch-hint { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--cn); font-size: 12px; letter-spacing: .06em; color: var(--dim); text-shadow: none; opacity: 0; animation: hint-in .6s 2.2s forwards; }
.lit .switch-hint { opacity: 0 !important; }
@keyframes hint-in { to { opacity: 1; } }

.lead { margin: clamp(24px, 3vw, 36px) 0 0; max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.85; color: #dfd4c5; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-meta { margin-top: 26px; font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.hero-meta b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .06em; color: var(--accent); margin-inline: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s; will-change: transform;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:hover { border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #161004; box-shadow: 0 10px 30px var(--glow), 0 0 0 0 var(--glow); }
.btn--accent:hover { box-shadow: 0 14px 40px var(--glow), 0 0 0 6px var(--glow); }

.stack { position: relative; height: clamp(360px, 44vw, 520px); }
.stack-card {
  position: absolute; display: block; width: min(56%, 290px); aspect-ratio: 3 / 4;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(234, 185, 72, .35); background: #11150c;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: rotate(var(--r)) scale(var(--sc, 1));
  transition: transform .5s var(--ease), box-shadow .4s;
  animation: deal 1.1s var(--ease) backwards; will-change: transform, translate; backface-visibility: hidden;
}
.stack-card:hover { --sc: 1.04; z-index: 6; box-shadow: 0 50px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(234, 185, 72, .55); }
.stack-card--forest { left: 10%; top: 10%; --r: -5deg; z-index: 4; animation-delay: .35s; }
.stack-card--tapestry { right: 6%; top: 20%; --r: 8deg; z-index: 3; animation-delay: .55s; }
@keyframes deal { from { opacity: 0; transform: translateY(80px) rotate(0deg) scale(.9); } }
.stack-bg { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; filter: brightness(.9); }
.stack-card--tapestry .stack-bg { object-position: center center; }
.stack-badge { position: absolute; left: 50%; top: 12%; width: 86%; transform: translateX(-50%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .75)); }
.stack-label { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(16, 20, 12, .9); border: 1px solid rgba(234, 185, 72, .42); font-family: var(--cn); font-size: 11.5px; color: #faf1de; text-align: center; }
.stack-new { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: #0a588a; color: #fff; font-family: var(--display); font-size: 11.5px; letter-spacing: .08em; }
.stack-new--gold { background: #eab948; color: #161004; }

.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-track > div { display: flex; align-items: center; }
.ticker span { font-family: var(--display); font-size: clamp(18px, 2.4vw, 28px); letter-spacing: .06em; color: rgba(255, 255, 255, .20); white-space: nowrap; padding: 0 22px; }
.ticker span:nth-child(4n+1) { color: rgba(255, 255, 255, .68); }
.ticker i { font-style: normal; font-size: 13px; color: var(--accent); transition: color .9s; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.feature { position: relative; min-height: 100svh; display: flex; align-items: center; padding: clamp(72px, 10vw, 130px) 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(36px, 7vw, 110px); align-items: center; width: 100%; }
.feature-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature-num { font-family: var(--display); font-size: clamp(64px, 8vw, 120px); line-height: .8; color: rgba(234, 185, 72, .18); text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 28px rgba(234, 185, 72, .25); margin-right: 8px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.tag--new { border-color: var(--accent); background: var(--accent); color: #161004; font-family: var(--display); letter-spacing: .1em; }
.feature-en { margin: 28px 0 0; font-family: var(--display); font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .22em; color: var(--accent); transition: color .9s; }
.feature-title { margin: 10px 0 0; font-family: var(--cn); font-weight: 800; font-size: clamp(46px, 6.8vw, 96px); line-height: 1.02; letter-spacing: .02em; text-shadow: 0 3px 0 #313b21, 0 6px 0 #0c0f08, 0 0 60px var(--glow); }
.feature-blurb { margin: 24px 0 0; max-width: 30em; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.9; color: #dfd4c5; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.points li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.7; color: #cabfb2; }
.points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: background .9s; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.feature-url { margin: 16px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--dim); }

.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in .rv { opacity: 1; transform: none; }
.reveal.in .rv:nth-child(2) { transition-delay: .06s; }
.reveal.in .rv:nth-child(3) { transition-delay: .12s; }
.reveal.in .rv:nth-child(4) { transition-delay: .18s; }
.reveal.in .rv:nth-child(5) { transition-delay: .24s; }
.reveal.in .rv:nth-child(6) { transition-delay: .3s; }
.no-io .rv { opacity: 1; transform: none; }

.device { display: flex; flex-direction: column; align-items: center; }
.phone {
  --s: .8; --bz: 11px; position: relative; width: calc(375px * var(--s) + var(--bz) * 2); padding: var(--bz);
  border-radius: calc(54px * var(--s) + var(--bz));
  background: linear-gradient(145deg, #28301e, #0e1209 55%, #1c2214);
  box-shadow: 0 0 0 1px rgba(234, 185, 72, .26), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px rgba(0, 0, 0, .6), 0 0 90px var(--glow);
  transition: box-shadow .9s; will-change: transform;
}
.phone-screen { position: relative; width: calc(375px * var(--s)); height: calc(812px * var(--s)); border-radius: calc(46px * var(--s)); overflow: hidden; background: #13170d; isolation: isolate; contain: layout paint; }
.phone-poster { position: absolute; inset: 0; z-index: 1; transition: opacity .45s; pointer-events: none; }
.poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0f130b80 0%, transparent 25%, #13170da8 52%, #0c1008ee 100%); }
.poster-hud { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; justify-content: space-between; padding: 6px 8px; border: 1px solid #eab94888; border-radius: 5px; background: #13170dcc; color: #eab948; font: 900 7.5px/1 "Courier New", monospace; letter-spacing: .06em; }
.poster-hud b { color: #faf1de; }
.poster-logo { position: absolute; top: 9%; left: 50%; width: 90%; transform: translateX(-50%); filter: drop-shadow(0 4px 0 #11150c); }
.poster-copy { position: absolute; top: 38%; left: 14px; right: 14px; text-align: center; }
.poster-badge { display: inline-block; padding: 5px 10px; border: 1.5px solid #f7dc84; border-radius: 4px; background: #14190ed9; color: #f7dc84; font: 900 8.5px/1 "Courier New", monospace; letter-spacing: .08em; }
.poster-copy strong { display: block; margin-top: 12px; color: #f7dc84; font: 900 30px/1.1 var(--cn); text-shadow: 0 3px 0 #664912, 0 6px 0 #1a1203, 0 10px 16px #000000cc; }
.poster-copy small { display: block; margin-top: 8px; color: #faf1de; font: 800 9px/1.2 "Courier New", monospace; letter-spacing: .12em; opacity: .9; }

.phone iframe { position: absolute; left: 0; top: 0; z-index: 3; width: 375px; height: 812px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: #13170d; opacity: 0; transition: opacity .35s; }
.phone.ready iframe { opacity: 1; }
.phone.ready .phone-poster { opacity: 0; }
.phone-loader { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(19, 23, 13, .78); color: #fff; font-family: var(--cn); font-size: 13px; letter-spacing: .08em; }
.phone.loading .phone-loader { display: flex; }
.phone-loader i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .24); border-top-color: #eab948; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.phone-shield {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 0 calc(56px * var(--s)); border: 0; background: linear-gradient(to top, rgba(0, 0, 0, .52), transparent 40%);
  cursor: pointer; opacity: 0; transition: opacity .35s;
}
.phone:hover .phone-shield, .phone-shield:focus-visible { opacity: 1; }
.play-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #161004; font-family: var(--cn); font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: translateY(10px); transition: transform .45s var(--spring);
}
.phone:hover .play-pill { transform: none; }
.tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play-coarse { display: none; }
.phone.live .phone-shield { display: none; }
.phone.live { transform: none !important; box-shadow: 0 0 0 2px var(--accent), 0 60px 120px rgba(0, 0, 0, .55), 0 0 120px var(--glow); }

.device-foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 32px; font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.phone-exit { display: none; margin-left: 6px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.device.is-live .phone-exit { display: inline-block; }
.device.is-live .device-hint::after { content: " · 正在试玩（按 ESC 可退出）"; }

.is-playing .ambient::before, .is-playing .ambient::after, .is-playing .ticker-track, .is-playing .live-dot { animation-play-state: paused; }
.is-playing .spot { opacity: 0; }

.guide { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 780px; }
.section-head h2 { margin: 16px 0 0; font-size: clamp(30px, 5vw, 54px); line-height: 1.15; }
.section-head p { margin: 14px 0 0; color: #d5cbbe; font-size: 16px; line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 20px 20px 20px 64px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); color: #dfd4c5; font-size: 14px; line-height: 1.7; }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 18px; top: 16px; font-family: var(--display); font-size: 28px; color: var(--accent); transition: color .9s; }
.steps b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer-word { margin: 0; font-family: var(--display); font-size: clamp(46px, 12vw, 186px); line-height: .84; white-space: nowrap; color: rgba(234, 185, 72, .12); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); transition: color .5s; }
.footer-word:hover { color: rgba(234, 185, 72, .28); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 12px; color: var(--dim); }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { height: clamp(280px, 60vw, 400px); max-width: 560px; }
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-demo { display: flex; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.keep) { display: none; }
}
@media (max-width: 560px) {
  .phone { --s: .68; --bz: 9px; }
  .stack-card { width: 48%; border-radius: 16px; }
  .stack-label { font-size: 10.5px; left: 8px; right: 8px; bottom: 8px; }
  .switch-hint { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .phone-shield { opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, .54), transparent 44%); }
  .play-pill { transform: none; }
  .play-fine { display: none; }
  .play-coarse { display: inline; }
  .spot { display: none; }
  .phone-loader { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
