:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --line: #262b36;
  --text: #f4f6fb;
  --muted: #9aa3b2;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, .16);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}
a { color: #a99cff; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,15,20,.92); backdrop-filter: blur(12px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border: 0; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Home */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 48px rgba(108,92,231,.35); }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.15; margin: 22px 0 12px; font-weight: 900; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .emoji { font-size: 26px; }
.section-title { font-size: 26px; margin: 64px 0 0; text-align: center; }

/* Home v3 — 首頁動效版（scripts/build-site-i18n.py 產生的頁面使用） */
.home {
  /* Document-sized light arcs: continuous across every section, without tiled seams. */
  background:
    radial-gradient(ellipse 100% 18% at 70% 0%,
      transparent 67%, rgba(108,92,231,.12) 73%, rgba(162,112,255,.28) 78.7%,
      rgba(217,184,255,.44) 79%, rgba(158,105,255,.30) 79.3%,
      rgba(108,92,231,.13) 84%, transparent 91%),
    radial-gradient(ellipse 100% 20% at 25% 50%,
      transparent 67%, rgba(108,92,231,.10) 73%, rgba(162,112,255,.24) 78.7%,
      rgba(217,184,255,.38) 79%, rgba(158,105,255,.26) 79.3%,
      rgba(108,92,231,.12) 84%, transparent 91%),
    radial-gradient(ellipse 100% 18% at 65% 100%,
      transparent 67%, rgba(108,92,231,.10) 73%, rgba(162,112,255,.24) 78.7%,
      rgba(217,184,255,.40) 79%, rgba(158,105,255,.26) 79.3%,
      rgba(108,92,231,.12) 84%, transparent 91%),
    radial-gradient(ellipse 85% 20% at 100% 6%, rgba(108,92,231,.24), transparent 78%),
    radial-gradient(ellipse 95% 25% at 0% 32%, rgba(108,92,231,.18), transparent 78%),
    radial-gradient(ellipse 100% 28% at 100% 68%, rgba(108,92,231,.20), transparent 78%),
    radial-gradient(ellipse 95% 18% at 20% 100%, rgba(108,92,231,.22), transparent 80%),
    var(--bg);
}
.home main { overflow-x: hidden; overflow-x: clip; }
.home .wrap { max-width: 1120px; }
.home .hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; text-align: left; padding: 56px 20px 24px; min-height: min(860px, calc(100vh - 60px)); position: relative; }
.home .hero h1 { margin: 14px 0 16px; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.015em; }
.home .hero p.lead { margin: 0 0 28px; max-width: 560px; }
.home .hero .actions { justify-content: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--accent-soft); color: #c9c1ff; font-size: 14px; font-weight: 600; }
.eyebrow img { border-radius: 8px; }
.kicker { color: #a99cff !important; font-weight: 700; font-size: 14px !important; letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* 進場：hero 文字依序浮起、手機 3D 轉入 */
.js .intro { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-shot { min-width: 0; animation: phoneIn 1.4s cubic-bezier(.2,.7,.2,1) .25s both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(90px) scale(.94); } }
/* Transparent artwork preserves the opaque covers over the page lighting. */
.product-art { width: 100%; margin: 0 auto; min-width: 0; }
.product-art img { display: block; width: 100%; height: auto; }
.collection-art { max-width: 520px; }

/* Each handset is an independent opaque device; page lighting stays behind it. */
.phone-scene { position: relative; width: 100%; max-width: 520px; aspect-ratio: 2 / 3; margin: 0 auto; perspective: 1400px; isolation: isolate; }
.phone-motion { position: absolute; inset: 0; transform-style: flat; isolation: isolate; transition: transform .35s ease-out; }
.phone-scene-hero .phone-motion { transform: translateY(var(--scene-ty, 0px)) rotateY(calc(-12deg + var(--scene-ry, 0deg))) rotateX(calc(5deg + var(--scene-rx, 0deg) + var(--scene-sr, 0) * 12deg)) rotateZ(2deg); }
.phone-layer { position: absolute; transform: translate(var(--phone-x, 0px), calc(var(--phone-scroll, 0px) + var(--phone-y, 0px))); transform-style: flat; isolation: isolate; transition: transform .35s ease-out; }
.phone-layer-front { width: 60%; left: 34%; top: 10%; z-index: 2; --pose-x: 0deg; --pose-y: 0deg; --pose-z: 0deg; }
.phone-layer-back { width: 49%; left: 2%; top: 4%; z-index: 1; --pose-x: -2deg; --pose-y: -3deg; --pose-z: -6deg; }
.phone-pose { transform: rotateX(var(--pose-x)) rotateY(var(--pose-y)) rotateZ(var(--pose-z)); }
.phone-scene.is-active .phone-motion, .phone-scene.is-active .phone-layer { will-change: transform; }
.phone-scene img { display: block; width: 100%; height: auto; user-select: none; filter: drop-shadow(0 20px 22px rgba(0,0,0,.32)); }
.phone-scene-together { max-width: 480px; }
.js .phone-scene-together { --scene-progress: 0; }
.phone-scene-together .phone-motion { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--scene-progress, 1)) * 26deg + var(--scene-rx, 0deg))) translateY(calc((1 - var(--scene-progress, 1)) * 70px)) scale(calc(.9 + var(--scene-progress, 1) * .1)) rotateY(var(--scene-ry, 0deg)); opacity: calc(.25 + var(--scene-progress, 1) * .75); }
.phone-scene-together .phone-layer-front { left: 3%; top: 3%; --pose-x: 1deg; --pose-y: 8deg; --pose-z: -3deg; }
.phone-scene-together .phone-layer-back { left: 48%; top: 13%; --pose-x: -2deg; --pose-y: 10deg; --pose-z: 4deg; }

/* 功能區：左右交錯 */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding: 140px 20px 0; }
.feature.reverse .feature-copy { order: 2; }
.feature h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.18; margin: 8px 0 16px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 17px; margin: 0; max-width: 480px; }
.stage { position: relative; perspective: 1200px; }
.stage[data-scroll-tilt] > :first-child, .story-card[data-scroll-tilt] { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p, 1)) * 26deg)) translateY(calc((1 - var(--p, 1)) * 70px)) scale(calc(.9 + var(--p, 1) * .1)); opacity: calc(.25 + var(--p, 1) * .75); will-change: transform; }

/* 願望清單：靜態遊戲清單示意，保留每張橫圖的原比例。 */
.wishlist-preview { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px; border: 1px solid rgba(169,156,255,.22); border-radius: 28px; background: linear-gradient(155deg, #1b1829, #10141b 70%); box-shadow: 0 26px 68px rgba(0,0,0,.25); }
.wish-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: #e7e0ff; font-size: 19px; font-weight: 700; text-align: left; }
.wish-header > span { display: flex; align-items: center; gap: 10px; }
.wish-header svg { width: 22px; height: 22px; flex: none; color: #bba5ef; }
.wish-header small { color: #8c819e; font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.wish-list { list-style: none; margin: 0; padding: 0; }
.wish-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 20px; align-items: center; gap: 18px; min-height: 112px; padding: 17px 0; border-top: 1px solid rgba(169,156,255,.12); text-align: left; }
.wish-art { display: block; width: 112px; height: auto; border-radius: 10px; }
.wish-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wish-title { font-size: 17px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.wish-status { color: #b3a7c7; font-size: 13px; line-height: 1.4; }
.wish-bookmark { color: #bba5ef; }
.wish-bookmark svg { display: block; width: 20px; height: 24px; }

/* 捲動進場 */
.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 120ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { translate: 0 var(--py, 0px); }

/* 拍照辨識 */
.scan { position: relative; aspect-ratio: 4 / 3; max-width: 460px; width: 100%; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.scan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,20,.15), rgba(13,15,20,.35)); }
.scan .c { position: absolute; width: 38px; height: 38px; border: 4px solid #fff; z-index: 1; opacity: .9; }
.scan .tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan .tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan .bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scan .br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan .beam { position: absolute; left: 6%; right: 6%; height: 3px; top: 20%; z-index: 1; border-radius: 3px; background: #a99cff; box-shadow: 0 0 18px 4px rgba(169,156,255,.7); animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 78%; } }

/* 一起玩：語音房間卡 */
.room { width: min(100%, 440px); margin: 0 auto; border-radius: 28px; overflow: hidden; background: #12151d; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.room-banner { display: block; width: 100%; height: auto; }
.room-body { padding: 18px 22px 22px; }
.room-live { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px !important; font-weight: 700; color: #7ef0b0 !important; font-size: 14px !important; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee08a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,224,138,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(62,224,138,0); } }
.room-meta { color: var(--muted); font-weight: 500; margin-left: auto; }
.avatars { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.av { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(140deg, hsl(var(--h) 80% 66%), hsl(calc(var(--h) + 40) 70% 44%)); transform: scale(.3); opacity: 0; transition: transform .7s cubic-bezier(.3,1.6,.5,1), opacity .4s; transition-delay: calc(var(--i) * 140ms + 250ms); }
.stage.is-in .av { transform: none; opacity: 1; }
.av[data-speak]::before, .av[data-speak]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid hsl(var(--h) 90% 72%); opacity: 0; animation: ring 1.8s ease-out infinite; }
.av[data-speak]::after { animation-delay: .9s; }
@keyframes ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.38); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 46px; }
.wave i { flex: 1; height: 18%; border-radius: 3px; background: linear-gradient(#b9adff, #6c5ce7); animation: bar 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -97ms); }
.wave i:nth-child(3n) { animation-duration: .8s; }
.wave i:nth-child(4n+1) { animation-duration: 1.4s; }
@keyframes bar { to { height: 100%; } }
.stage:not(.is-in) .wave i { animation-play-state: paused; }
.room-code { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 0 !important; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px dashed #3a4050; color: var(--muted); font-size: 14px !important; }
.room-code b { color: #fff; letter-spacing: .3em; font-size: 18px; }
.float-chip { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 999px; background: rgba(28,32,44,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 40px rgba(0,0,0,.45); font-weight: 700; font-size: 14px; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.float-chip.join { top: 30%; right: -14px; color: #7ef0b0; }
.float-chip.mic { left: -20px; bottom: 26%; width: 54px; height: 54px; padding: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #8b7cf6, #5b4bd6); animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* 進度：遊戲卡＋浮動資訊 */
.story { display: flex; justify-content: center; padding: 40px 0; }
.story-frame { position: relative; width: min(84%, 420px); }
.story-card { width: 100%; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.story-card img { display: block; width: 100%; height: auto; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: rgba(24,28,38,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 44px rgba(0,0,0,.5); font-weight: 700; font-size: 15px; white-space: nowrap; opacity: 0; transform: translateY(26px) scale(.9); transition: opacity .7s, transform .9s cubic-bezier(.3,1.4,.5,1); }
.story.is-in .chip { opacity: 1; transform: none; }
.chip:nth-of-type(2) { transition-delay: .15s; } .chip:nth-of-type(3) { transition-delay: .3s; } .chip:nth-of-type(4) { transition-delay: .45s; } .chip:nth-of-type(5) { transition-delay: .6s; } .chip:nth-of-type(6) { transition-delay: .75s; }
.chip small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.c-time, .c-rate { flex-direction: column; align-items: flex-start; gap: 2px; }
.c-time strong { font-size: 28px; line-height: 1.1; }
.c-platform { top: -24px; left: -34px; }
.c-status { top: 22px; right: -40px; color: #c9c1ff; }
.c-lend { top: 50%; left: -56px; }
.c-time { bottom: -64px; left: 22%; }
.c-rate { bottom: -30px; right: -36px; }
.chip-ic.sw { width: 22px; height: 16px; border-radius: 5px; background: linear-gradient(90deg, #e4002b 0 44%, transparent 44% 56%, #00a3e0 56%); }
.play-ic { width: 12px; height: 14px; background: #a99cff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.disc { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #12151d 0 18%, transparent 19%), conic-gradient(#c9c1ff, #7ef0b0, #ffcc4d, #ff8fb1, #c9c1ff); }
.stars { display: flex; gap: 3px; }
.stars i { width: 18px; height: 18px; background: #3a3f4d; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background .3s; }
.story.is-in .stars i { background: #ffcc4d; }
.stars i:nth-child(1) { transition-delay: .9s; } .stars i:nth-child(2) { transition-delay: 1s; } .stars i:nth-child(3) { transition-delay: 1.1s; } .stars i:nth-child(4) { transition-delay: 1.2s; } .stars i:nth-child(5) { transition-delay: 1.3s; }

/* 還有這些：bento */
.more { padding-top: 150px; }
.section-head { text-align: center; }
.section-head .section-title { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 19px; margin: 10px 0 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 30px; background: linear-gradient(160deg, #1a1e29, #12151c); border: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(169,156,255,.16), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 22px; margin: 24px 0 6px; line-height: 1.3; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }
.span2 { grid-column: span 2; }
.lang-word { position: relative; height: 1.3em; margin-bottom: auto; font-size: clamp(34px, 5.4vw, 68px); font-weight: 900; line-height: 1.2; }
.lang-word span { position: absolute; left: 0; top: 0; white-space: nowrap; background: linear-gradient(90deg, #fff, #a99cff); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; animation: word 12s infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes word { 0% { opacity: 0; transform: translateY(40%); } 3%, 14% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; transform: translateY(-40%); } }
.lang-pills { position: absolute; bottom: 26px; right: 26px; width: 40%; height: 46%; }
.t-lang h3, .t-lang p { max-width: 56%; }
.lang-pills span { position: absolute; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #e6e2ff; background: rgba(108,92,231,.18); border: 1px solid rgba(169,156,255,.28); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.lang-pills span:nth-child(1) { left: 6%; top: 8%; } .lang-pills span:nth-child(2) { left: 52%; top: 0; }
.lang-pills span:nth-child(3) { left: 30%; top: 36%; } .lang-pills span:nth-child(4) { left: 78%; top: 30%; }
.lang-pills span:nth-child(5) { left: 4%; top: 66%; } .lang-pills span:nth-child(6) { left: 60%; top: 70%; }
.rank { margin-bottom: auto; display: flex; flex-direction: column; gap: 10px; }
.rank span { position: relative; display: block; height: 42px; width: 0; border-radius: 12px; background: linear-gradient(90deg, rgba(108,92,231,.6), rgba(108,92,231,.12)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.tile.is-in .rank span { width: var(--w); }
.rank span:nth-child(2) { transition-delay: .15s; } .rank span:nth-child(3) { transition-delay: .3s; }
.rank b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; padding: 2px 9px; border-radius: 999px; background: #a99cff; color: #1a1530; }
.friend-invite { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 132px; margin-bottom: auto; user-select: none; pointer-events: none; }
.friend-route { display: flex; align-items: center; gap: clamp(12px, 3vw, 22px); }
.friend-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 50%; color: #e4d8ff; background: rgba(169,156,255,.2); border: 1px solid rgba(169,156,255,.3); }
.friend-avatar-alt { color: #c6baff; background: rgba(108,92,231,.14); border-color: rgba(169,156,255,.18); }
.friend-avatar svg { display: block; width: 40px; height: 40px; }
.friend-arrow { display: block; width: 44px; color: #a99cff; }
.friend-arrow svg { display: block; width: 100%; height: auto; }
.friend-status { display: inline-flex; align-items: center; gap: 6px; color: #c6baff; font-size: 13px; font-weight: 600; }
.friend-status svg { display: block; width: 16px; height: 16px; }
.devices { margin-bottom: auto; display: flex; align-items: center; justify-content: center; height: 170px; }
.dev { display: grid; gap: 6px; padding: 10px; border: 2px solid #3a4050; background: #0f1219; align-content: start; }
.dev.ipad { width: 210px; height: 150px; border-radius: 16px; grid-template-columns: repeat(3, 1fr); }
.dev.iphone { width: 78px; height: 150px; border-radius: 18px; grid-template-columns: 1fr 1fr; }
.dev i { border-radius: 6px; aspect-ratio: 4 / 3; background: linear-gradient(140deg, hsl(252 62% 58%), hsl(222 60% 40%)); opacity: 0; transform: scale(.6); transition: opacity .5s, transform .6s cubic-bezier(.3,1.5,.5,1); }
.dev.iphone i { aspect-ratio: 3 / 4; }
.tile.is-in .dev i { opacity: 1; transform: none; }
.dev.ipad i:nth-child(2) { transition-delay: .1s; } .dev.ipad i:nth-child(3) { transition-delay: .2s; } .dev.ipad i:nth-child(4) { transition-delay: .3s; } .dev.ipad i:nth-child(5) { transition-delay: .4s; } .dev.ipad i:nth-child(6) { transition-delay: .5s; }
.dev.iphone i { transition-delay: 1s; } .dev.iphone i:nth-child(2) { transition-delay: 1.1s; } .dev.iphone i:nth-child(3) { transition-delay: 1.2s; } .dev.iphone i:nth-child(4) { transition-delay: 1.3s; }
.sync-line { position: relative; width: 90px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, #3a4050 0 6px, transparent 6px 12px); }
.sync-line em { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #a99cff; box-shadow: 0 0 12px #a99cff; animation: travel 2s ease-in-out infinite alternate; }
@keyframes travel { to { left: calc(100% - 10px); } }

/* 隱私：大標＋線條圖示 */
.privacy { margin-top: 150px; padding: 120px 0; text-align: center; }
.priv-lead { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.12; font-weight: 900; letter-spacing: -.015em; margin: 14px auto 80px; max-width: 900px; background: linear-gradient(180deg, #fff 35%, #8f86c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .priv-lead[data-scroll-fill] { background: linear-gradient(90deg, #fff calc(var(--fill, 100%) - 12%), #3b3850 calc(var(--fill, 100%) + 12%)); -webkit-background-clip: text; background-clip: text; }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; text-align: left; }
.priv-ic { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: rgba(108,92,231,.14); color: #a99cff; margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(169,156,255,.2) inset; }
.priv-ic svg { width: 42px; height: 42px; }
.js .priv-ic svg * { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.8s ease .35s; }
.priv-item.is-in .priv-ic svg * { stroke-dashoffset: 0; }
.priv-item h3 { font-size: 20px; margin: 0 0 8px; }
.priv-item p { color: var(--muted); margin: 0; font-size: 15px; }

/* 底部 CTA：捲到底時與頁尾剛好填滿一屏，內容垂直置中 */
.home .site-footer { margin-top: 0; }
.band { min-height: calc(100vh - 60px - var(--footer-h, 92px)); min-height: calc(100svh - 60px - var(--footer-h, 92px)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.band-logo { position: relative; width: 168px; height: 168px; margin-bottom: 40px; }
.band-logo::before { content: ""; position: absolute; inset: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140,120,255,.55), transparent 72%); filter: blur(8px); animation: logoGlow 4s ease-in-out infinite alternate; }
.band-logo::after { content: ""; position: absolute; inset: -16px; border-radius: 54px; border: 1px solid rgba(169,156,255,.35); box-shadow: 0 0 40px rgba(169,156,255,.18) inset; }
.band-logo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 40px; box-shadow: 0 30px 80px rgba(108,92,231,.55), 0 0 0 1px rgba(255,255,255,.08); animation: logoFloat 6s ease-in-out infinite; }
.js .band[data-reveal] .band-logo { opacity: 0; transform: scale(.55) rotate(-10deg); transition: opacity .6s .1s, transform 1.3s cubic-bezier(.3,1.4,.5,1) .1s; }
.js .band.is-in .band-logo { opacity: 1; transform: none; }
@keyframes logoFloat { 50% { transform: translateY(-12px); } }
@keyframes logoGlow { to { opacity: .55; transform: scale(1.12); } }
.band h2 { font-size: clamp(36px, 6vw, 76px); line-height: 1.12; letter-spacing: -.015em; font-weight: 900; margin: 0 0 16px; }
.band p { color: var(--muted); font-size: clamp(17px, 1.9vw, 22px); margin: 0 0 36px; }
.band .btn { padding: 17px 40px; font-size: 18px; border-radius: 16px; box-shadow: 0 16px 44px rgba(108,92,231,.45); }

@media (prefers-reduced-motion: reduce) {
  .band-logo img, .band-logo::before { animation: none !important; }
  .js .band[data-reveal] .band-logo { opacity: 1; transform: none; transition: none; }
  .js .intro, .js [data-reveal], .hero-shot, .chip, .av, .rank span, .dev i { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rank span { width: var(--w) !important; }
  .scan .beam, .wave i, .live-dot, .float-chip, .sync-line em, .av::before, .av::after { animation: none !important; }
  .phone-motion, .phone-layer { transform: none !important; transition: none !important; opacity: 1 !important; }
  .phone-pose { transform: rotateX(var(--pose-x)) rotateY(var(--pose-y)) rotateZ(var(--pose-z)) !important; transition: none !important; }
  .lang-word span { animation: none; } .lang-word span:first-child { opacity: 1; }
  .lang-pills span { animation: none; }
  .js .priv-lead[data-scroll-fill] { --fill: 100% !important; }
  .js .priv-ic svg * { stroke-dashoffset: 0; transition: none; }
  .stars i { background: #ffcc4d; transition: none; }
}

/* Language menu */
.lang-menu { position: relative; background: none; border: 0; padding: 0; margin: 0; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-weight: 400; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--text); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.lang-list a { padding: 8px 12px; border-radius: 8px; color: var(--text) !important; }
.lang-list a:hover { background: var(--accent-soft); }
.lang-list a[aria-current] { color: #a99cff !important; font-weight: 700; }
.lang-suggest { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-suggest[hidden] { display: none; }
.lang-suggest button { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.btn.small { padding: 6px 14px; border-radius: 10px; font-size: 14px; }

@media (max-width: 860px) {
  .band { padding: 64px 20px; }
  .band-logo { width: 128px; height: 128px; margin-bottom: 32px; }
  .band-logo img { border-radius: 30px; }
  .band-logo::after { border-radius: 42px; inset: -12px; }
  .home .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; gap: 40px; min-height: 0; }
  .home .hero p.lead { margin-left: auto; margin-right: auto; }
  .home .hero .actions { justify-content: center; }
  .eyebrow { margin: 0 auto; }
  .phone-scene { max-width: 400px; }
  .phone-scene-hero .phone-motion { transform: translateY(var(--scene-ty, 0px)) rotateX(calc(var(--scene-sr, 0) * 10deg)); }
  .phone-scene-together { max-width: 380px; }
  .feature { grid-template-columns: 1fr; gap: 40px; padding-top: 96px; text-align: center; }
  .feature.reverse .feature-copy { order: 0; }
  .feature p { margin: 0 auto; }
  .scan { max-width: 380px; }
  .story { padding: 40px 0 56px; }
  .c-platform { left: -8px; } .c-status { right: -8px; top: -20px; } .c-lend { left: -8px; top: 8%; }
  [data-parallax] { translate: 0 calc(var(--py, 0px) * .35); } .c-rate { right: -8px; } .c-time { left: 4%; }
  .chip { font-size: 13px; padding: 10px 12px; }
  .c-time strong { font-size: 22px; }
  .float-chip.join { right: 10px; top: -18px; } .float-chip.mic { left: -4px; top: 22%; bottom: auto; width: 46px; height: 46px; }
  .more { padding-top: 110px; }
  .bento { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .tile { min-height: 280px; }
  .lang-pills { position: relative; inset: auto; width: 100%; height: 96px; margin: 18px 0 0; } .lang-pills span { font-size: 13px; padding: 6px 10px; }
  .t-lang h3, .t-lang p { max-width: none; }
  .privacy { margin-top: 110px; padding: 90px 0; }
  .priv-lead { margin-bottom: 56px; }
  .priv-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
}

/* Documents */
.doc { padding-block: 48px 0; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); overflow-wrap: anywhere; }
.doc h1 { font-size: 34px; line-height: 1.25; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #d5d9e3; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); color: var(--text); }
.callout { background: var(--accent-soft); border: 1px solid rgba(108,92,231,.4); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.lang-switch { font-size: 14px; margin-bottom: 20px; }
.lang-switch a { margin-right: 12px; }
hr.lang { border: 0; border-top: 1px solid var(--line); margin: 64px 0 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* Open (deep-link landing) */
.open { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.open img { width: 96px; height: 96px; border-radius: 22px; }
.open h1 { font-size: 28px; margin: 18px 0 6px; }
.open p { color: var(--muted); margin: 0 0 26px; }
.open .actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }

@media (max-width: 560px) {
  .wishlist-preview { padding: 22px 20px; }
  .wish-row { grid-template-columns: 104px minmax(0, 1fr) 18px; gap: 12px; }
  .wish-art { width: 104px; }
  .wish-title { font-size: 16px; }
  .wish-bookmark svg { width: 18px; }
  .doc table { table-layout: fixed; }
  .doc th, .doc td { padding: 9px 8px; }
  .nav { gap: 12px; font-size: 13px; }
  .nav .hide-sm { display: none; }
}

@media (max-width: 360px) {
  .site-header .wrap { height: auto; min-height: 60px; flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; }
  .site-header .nav { margin-left: auto; }
}
