/* StageScan 官網：黑色畫廊背景讓點雲作品發光，琥珀色重點（與 App 的 Theme 一致）。只有這一個樣式檔，沒有外部資源。 */
:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: #111117;
  --panel-2: #17171f;
  --rule: #23232c;
  --fg: #f4f4f6;
  --muted: #a3a3ad;
  --accent: #f59e26;
  --accent-2: #ff5a8a;
  --cyan: #5ee0ff;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Hiragino Sans", "Noto Sans TC", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -0.015em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* 頁首 */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 17px; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
nav.links { display: flex; gap: 20px; font-size: 14px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--fg); text-decoration: none; }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.lang button {
  font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 0;
}
.lang button[aria-pressed="true"] { color: #111; background: var(--fg); }

/* 主視覺 */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0 30%;
  background:
    radial-gradient(40% 45% at 55% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 40% at 80% 60%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
    radial-gradient(30% 35% at 30% 70%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.035em; }
.hero p.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--accent); color: #111; font-weight: 700; }
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.cta.soon { background: var(--fg); color: #111; }
.ghost { padding: 13px 20px; border-radius: 999px; border: 1px solid var(--rule); color: var(--fg); font-weight: 600; }
.ghost:hover { text-decoration: none; border-color: var(--muted); }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.hero-art img { position: absolute; width: 58%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 1px solid #ffffff14; }
.hero-art .front { left: 21%; top: 4%; z-index: 2; box-shadow: 0 30px 80px #000c, 0 0 0 1px #ffffff10; }
.hero-art .back { top: 14%; width: 48%; opacity: .75; filter: saturate(1.1); box-shadow: 0 20px 60px #0009; }
.hero-art .left { left: 0; transform: rotate(-7deg); }
.hero-art .right { right: 0; transform: rotate(7deg); }

/* 區塊 */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 10px; }
section.block p.sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; font-size: 17px; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid #ffffff10; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.work:hover img { transform: scale(1.03); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, #000c); font-size: 13px; color: var(--muted);
}
.work figcaption b { display: block; color: var(--fg); font-size: 15px; font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 28px 0 56px; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.steps .num { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 6px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

h3.minor { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); font-size: 14px; font-weight: 600; }
.chip.prism { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); background: linear-gradient(90deg, #ff5a8a22, #f59e2622, #5ee0ff22); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }

.stage {
  margin-top: 14px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--rule);
  background: radial-gradient(120% 140% at 0% 0%, #f59e261c, transparent 60%), var(--panel);
}
.stage h3 { margin: 6px 0 0; font-size: 24px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--fg); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.plans { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; max-width: 860px; }
.plan { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: radial-gradient(120% 100% at 100% 0%, #f59e2620, transparent 60%), var(--panel-2); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { margin: 10px 0 0; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan .per { margin: 4px 0 18px; color: var(--muted); font-size: 14px; min-height: 1.6em; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; max-width: 860px; }

.trio { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }

.closing { padding: 88px 0 96px; text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 10% 20%;
  background: radial-gradient(50% 50% at 50% 50%, #f59e2626, transparent 70%); filter: blur(30px);
}
.closing .wrap { position: relative; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 18px 50px #000a; }
.closing h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; margin: 0 0 26px; }

/* 隱私權、支援 */
article.doc { padding: 48px 0 72px; }
article.doc h1 { font-size: 34px; margin: 0 0 4px; }
article.doc h2 { font-size: 20px; margin: 32px 0 8px; }
article.doc .muted { color: var(--muted); font-size: 14px; }
article.doc li { margin: 6px 0; }
details { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 2px; }

footer.site { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* 平板 */
@media (max-width: 960px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
/* 手機 */
@media (max-width: 720px) {
  nav.links { display: none; }
  .hero { padding: 40px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 420px; }
  section.block { padding: 52px 0; }
  .gallery { gap: 10px; }
  .work figcaption { padding: 28px 12px 10px; font-size: 12px; }
  .work figcaption b { font-size: 13px; }
  .grid, .steps, .plans, .trio, .stage { grid-template-columns: 1fr; }
  .stage { gap: 10px; padding: 22px; }
}

/* 語言：有 JS 時只顯示選到的語言；沒有 JS 時全部顯示。 */
html.js [data-lang]:not(.active) { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work img { transition: none; }
}
