/* KAREOKIE website. Tokens match the app (frontend/src/styles.css). Mobile first.
   Look: a karaoke stage at night (spotlights, a lit floor, lyric-wipe headings). No inline styles: the CSP is style-src 'self'. */
:root {
  --bg: #0a0c12;
  --surface: #12151f;
  --surface-2: #191d2a;
  --surface-3: #222839;
  --border: #2a3144;
  --border-strong: #3a4360;
  --text: #eef1f8;
  --text-2: #c3c9d8;
  --muted: #8b93a8;
  --accent: #ff4d8d;
  --accent-strong: #ff2e78;
  --accent-soft: rgba(255, 77, 141, 0.14);
  --violet: #c86bd0;
  --cyan: #4dd6ff;
  --gold: #ffd166;
  --success: #3ddc97;
  --warning: #ffb547;
  --focus: #8ab4ff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--violet) 50%, var(--cyan) 100%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', 'PingFang TC', 'Segoe UI', system-ui,
    sans-serif;
  --mono: 'Cascadia Mono', 'Consolas', ui-monospace, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}
html:lang(ja) {
  --font: 'Yu Gothic UI', 'Meiryo UI', 'Meiryo', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Segoe UI', system-ui,
    sans-serif;
}
html:lang(en) {
  --font: 'Segoe UI', system-ui, -apple-system, 'Microsoft JhengHei UI', 'Noto Sans TC', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
a:hover {
  color: #8be4ff;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
.wrap.narrow {
  max-width: 860px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.icon-sm {
  width: 0.95em;
  height: 0.95em;
  display: inline-block;
  vertical-align: -0.1em;
  margin-left: 0.3em;
}
.icon-xl {
  width: 56px;
  height: 56px;
}
.icon-fill path {
  fill: currentColor;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- skip link, header */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  color: var(--bg);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(42, 49, 68, 0.5);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 12, 18, 0.86);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  filter: drop-shadow(0 4px 12px rgba(255, 77, 141, 0.45));
}
.brand:hover {
  color: var(--text);
}
.main-nav {
  display: none;
}
.main-nav ul,
.lang ul,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 6px 12px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a:hover::after {
  transform: scaleX(1);
}
.lang ul {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang a {
  display: block;
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.lang a:hover {
  color: var(--text);
  background: var(--surface-3);
}
.lang a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
/* Outlined so small white text keeps full contrast (white on the pink fill is only 3.1:1).
   Scoped to the header so it wins over .btn's display further down. */
.site-header .btn-nav {
  display: none;
  gap: 8px;
  padding: 7px 16px;
  font-size: 14px;
  color: #fff;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}
.btn-nav:hover {
  color: #fff;
  background: linear-gradient(#1a1222, #1a1222) padding-box, var(--grad) border-box;
  box-shadow: 0 6px 24px rgba(255, 77, 141, 0.3);
}
@media (min-width: 560px) {
  .site-header .btn-nav {
    display: inline-flex;
  }
}
@media (min-width: 960px) {
  .main-nav {
    display: block;
  }
}

/* language hint bar (shown by site.js instead of an automatic redirect) */
.lang-hint {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lang-hint[hidden] {
  display: none;
}
.lang-hint-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.lang-hint p {
  margin: 0;
  flex: 1;
  color: var(--text-2);
}
.lang-hint a {
  font-weight: 700;
  white-space: nowrap;
}
.lang-hint-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lang-hint-close:hover {
  background: var(--surface-3);
  color: var(--text);
}
.translations {
  font-size: 14px;
  margin: -6px 0 16px;
}

/* ---------- buttons, badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff5a96 0%, var(--accent-strong) 55%, #e8399a 100%);
  color: #fff;
  box-shadow: 0 10px 34px rgba(255, 46, 120, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(255, 46, 120, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
/* white on the pink accent is 3.1:1, so primary buttons stay large bold text (>= 18.66px) */
.btn-xl {
  font-size: 19px;
  padding: 16px 20px;
  min-height: 62px;
  width: 100%;
}
.btn-xl .icon {
  width: 22px;
  height: 22px;
}
[data-state='none'] .btn-primary {
  background: var(--surface-3);
  color: var(--text-2);
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: default;
  transform: none;
}
[data-state='none'] .btn-primary::after {
  display: none;
}
.badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.badge-latest {
  background: rgba(61, 220, 151, 0.14);
  color: var(--success);
}
.badge-soon {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-draft {
  background: rgba(255, 181, 71, 0.16);
  color: var(--warning);
  border: 1px solid rgba(255, 181, 71, 0.4);
  font-size: 14px;
  padding: 2px 12px;
}

/* ---------- hero: spotlights, a lit floor, the app on stage */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 48px;
}
.hero-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(255, 77, 141, 0.22), transparent 65%),
    radial-gradient(800px 520px at 96% 4%, rgba(77, 214, 255, 0.14), transparent 65%),
    radial-gradient(760px 420px at 60% 105%, rgba(200, 107, 208, 0.16), transparent 70%);
}
.beam {
  position: absolute;
  top: -140px;
  width: 560px;
  height: 1150px;
  transform-origin: 50% 0;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  filter: blur(8px);
  opacity: 0.5;
  animation: sway 10s ease-in-out infinite alternate;
}
.beam-1 {
  left: -6%;
  background: linear-gradient(180deg, rgba(255, 77, 141, 0.34), rgba(255, 77, 141, 0) 72%);
  --r0: -22deg;
  --r1: -8deg;
}
.beam-2 {
  left: 34%;
  background: linear-gradient(180deg, rgba(200, 107, 208, 0.26), rgba(200, 107, 208, 0) 70%);
  --r0: 10deg;
  --r1: -10deg;
  animation-duration: 13s;
}
.beam-3 {
  right: -8%;
  background: linear-gradient(180deg, rgba(77, 214, 255, 0.28), rgba(77, 214, 255, 0) 72%);
  --r0: 24deg;
  --r1: 9deg;
  animation-duration: 11s;
}
@keyframes sway {
  from {
    transform: rotate(var(--r0));
  }
  to {
    transform: rotate(var(--r1));
  }
}
.floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -20px;
  height: 320px;
  background-image:
    linear-gradient(rgba(200, 107, 208, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 107, 208, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  opacity: 0.32;
}
/* blend the lit floor into the next section instead of ending on a hard line */
.hero-lights::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(10, 12, 18, 0), var(--bg));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 14px 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 141, 0.38);
  background: rgba(255, 77, 141, 0.1);
  color: #ff9cc0;
  font-size: 13px;
  font-weight: 700;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.7);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.7);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(255, 77, 141, 0);
  }
}
.hero h1 {
  font-size: clamp(36px, 6.2vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
html:lang(zh) .hero h1,
html:lang(ja) .hero h1 {
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.2;
  letter-spacing: 0;
}
html:lang(ja) body {
  word-break: auto-phrase;
}
/* The highlighted words light up from left to right like a sung karaoke line. */
.hero h1 .grad {
  display: inline-block;
  padding-bottom: 0.06em;
  background-image: linear-gradient(90deg, transparent 50%, var(--text) 50%), var(--grad);
  background-size: 200% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
}
html.js .hero h1 .grad {
  animation: lyric-wipe 1.7s cubic-bezier(0.55, 0, 0.35, 1) 0.35s both;
}
@keyframes lyric-wipe {
  from {
    background-position: 100% 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0;
  }
}
.lead {
  color: var(--text-2);
  font-size: 18px;
  max-width: 34em;
  margin-bottom: 30px;
}
.download {
  max-width: 460px;
}
.download-meta {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.download-meta a {
  white-space: nowrap;
}
.download-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.download-stats[hidden] {
  display: none;
}
.stat {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 21, 31, 0.75);
  color: var(--text-2);
  white-space: nowrap;
}
.stats-online {
  border-color: rgba(34, 197, 94, 0.4);
}
.stats-online::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: 1px;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 22px 0 6px;
  color: var(--text-2);
  font-size: 14px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%233ddc97' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.hint {
  font-size: 14px;
  margin: 8px 0 0;
}

/* the app on stage, with two decorative cards floating around it */
.hero-stage {
  position: relative;
  margin: 0 6px;
}
.hero-stage .shot-hero {
  box-shadow:
    0 50px 120px -30px rgba(255, 77, 141, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.6);
}
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(18, 21, 31, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  animation: bob 6s ease-in-out infinite;
}
.float-score {
  right: -6px;
  top: -22px;
  color: var(--gold);
}
.float-score b {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(255, 209, 102, 0.45);
}
.float-wave {
  left: -6px;
  bottom: -22px;
  display: grid;
  gap: 4px;
  animation-delay: -3s;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.wave i {
  width: 4px;
  height: var(--h, 50%);
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 77, 141, 0.6);
  animation: eq 1.1s ease-in-out infinite alternate;
}
.wave-mus i {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(77, 214, 255, 0.6);
  animation-duration: 0.8s;
}
.wave .w0 { --h: 35%; animation-delay: -0.1s; }
.wave .w1 { --h: 70%; animation-delay: -0.5s; }
.wave .w2 { --h: 100%; animation-delay: -0.3s; }
.wave .w3 { --h: 55%; animation-delay: -0.8s; }
.wave .w4 { --h: 85%; animation-delay: -0.2s; }
.wave .w5 { --h: 40%; animation-delay: -0.6s; }
.wave .w6 { --h: 75%; animation-delay: -0.9s; }
.wave .w7 { --h: 50%; animation-delay: -0.4s; }
@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
/* four-step strip under the hero; each step jumps to its feature */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}
.flow a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 21, 31, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.flow a:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: var(--fa, var(--accent));
}
.flow-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fa-soft, var(--accent-soft));
  color: var(--fa, var(--accent));
}
.flow-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.flow-label {
  font-weight: 700;
  line-height: 1.3;
}
.flow li:nth-child(1),
.accent-1,
.cards li:nth-child(4n+1),
.req-row:nth-child(1) {
  --fa: var(--accent);
  --fa-soft: rgba(255, 77, 141, 0.14);
  --fa-glow: rgba(255, 77, 141, 0.4);
}
.flow li:nth-child(2),
.accent-2,
.cards li:nth-child(4n+2),
.req-row:nth-child(2) {
  --fa: var(--violet);
  --fa-soft: rgba(200, 107, 208, 0.16);
  --fa-glow: rgba(200, 107, 208, 0.4);
}
.flow li:nth-child(3),
.accent-3,
.cards li:nth-child(4n+3),
.req-row:nth-child(3) {
  --fa: var(--cyan);
  --fa-soft: rgba(77, 214, 255, 0.14);
  --fa-glow: rgba(77, 214, 255, 0.36);
}
.flow li:nth-child(4),
.accent-4,
.cards li:nth-child(4n+4),
.req-row:nth-child(4) {
  --fa: var(--gold);
  --fa-soft: rgba(255, 209, 102, 0.14);
  --fa-glow: rgba(255, 209, 102, 0.32);
}
.req-row:nth-child(5) {
  --fa: var(--success);
  --fa-soft: rgba(61, 220, 151, 0.14);
}
@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .flow::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 2px;
    background: var(--grad);
    opacity: 0.45;
    filter: blur(0.5px);
  }
}

/* ---------- screenshots and placeholders */
.shot {
  position: relative;
  margin: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--fa, var(--accent)), rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.14)) border-box;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
}
.shot-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.shot-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 77, 141, 0.18), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(77, 214, 255, 0.16), transparent 60%),
    repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
}
.placeholder-art {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

/* hero stage illustration: the tag sits over the pitch lane so it never covers the lyrics */
.shot-hero {
  aspect-ratio: 4 / 3;
}
.shot-hero .shot-tag {
  top: 46px;
  bottom: auto;
}
@media (min-width: 900px) {
  .shot-hero {
    aspect-ratio: 16 / 11;
  }
}
.mock-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 50% 0%, #1c1630 0%, #0d0f18 70%);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.mock-dots {
  display: flex;
  gap: 5px;
}
.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mock-title {
  margin-right: auto;
}
.mock-score {
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}
.mock-score small {
  font-size: 11px;
  margin-left: 2px;
}
.mock-pitch {
  position: relative;
  flex: 1;
  margin: 12px 14px 0;
  border-radius: 10px;
  background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(255, 255, 255, 0.04) 21px 22px);
}
.mock-pitch i {
  position: absolute;
  height: 9%;
  min-height: 7px;
  border-radius: 99px;
  background: rgba(195, 201, 216, 0.25);
}
.mock-pitch i.b1 { left: 4%; top: 62%; width: 12%; }
.mock-pitch i.b2 { left: 17%; top: 48%; width: 9%; }
.mock-pitch i.b3 { left: 27%; top: 36%; width: 14%; }
.mock-pitch i.b4 { left: 42%; top: 50%; width: 8%; }
.mock-pitch i.b5 { left: 51%; top: 28%; width: 12%; }
.mock-pitch i.b6 { left: 64%; top: 40%; width: 10%; }
.mock-pitch i.b7 { left: 75%; top: 56%; width: 9%; }
.mock-pitch i.b8 { left: 85%; top: 44%; width: 11%; }
.mock-pitch i.b9 { left: 96%; top: 30%; width: 6%; }
.mock-pitch i.b1,
.mock-pitch i.b2,
.mock-pitch i.b3,
.mock-pitch i.b4 {
  background: var(--sung, var(--cyan));
  box-shadow: 0 0 12px rgba(77, 214, 255, 0.6);
}
.mock-cursor {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.mock-lyrics {
  padding: 8px 16px 14px;
  text-align: center;
  font-family: 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', var(--font);
  font-weight: 800;
  line-height: 1.5;
}
.mock-lyrics p {
  margin: 0;
  font-size: clamp(17px, 4.6vw, 26px);
  color: var(--text-2);
}
.mock-lyrics p + p {
  font-size: clamp(14px, 3.6vw, 19px);
  color: var(--muted);
}
.mock-lyrics .sung {
  background: linear-gradient(90deg, var(--cyan) 0 55%, var(--text) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mock-lyrics rt {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.mock-progress {
  height: 4px;
  background: var(--surface-3);
}
.mock-progress i {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--grad);
}

/* ---------- sections */
.section {
  position: relative;
  padding: 72px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(18, 21, 31, 0) 0%, rgba(18, 21, 31, 0.92) 10%, rgba(18, 21, 31, 0.92) 90%, rgba(18, 21, 31, 0) 100%);
}
.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.center-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker .icon {
  width: 14px;
  height: 14px;
}
.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
html:lang(zh) .section-title,
html:lang(ja) .section-title {
  letter-spacing: 0.01em;
}
.section-lead {
  color: var(--text-2);
  font-size: 17px;
  margin: 0;
}
@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
}

/* ---------- features */
.features {
  display: grid;
  gap: 72px;
}
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}
.feature .feature-num {
  margin: 0 0 -6px;
  font-family: 'Segoe UI', var(--font);
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--fa, var(--accent)) 0%, rgba(10, 12, 18, 0) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.feature h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin: 16px 0 10px;
}
.feature p {
  color: var(--text-2);
  font-size: 17px;
  margin: 0;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--fa-soft, var(--accent-soft));
  color: var(--fa, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.feature .shot {
  box-shadow: 0 40px 100px -34px var(--fa-glow, rgba(255, 77, 141, 0.4)), 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease);
}
.feature .shot:hover {
  transform: scale(1.015);
}
@media (min-width: 960px) {
  .features {
    gap: 120px;
  }
  .feature {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 72px;
  }
  .feature-flip {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
  .feature-flip .feature-copy {
    order: 2;
  }
}

/* ---------- more features (bento cards) */
.cards {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 96px 0 0;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--fa-soft, var(--accent-soft));
  filter: blur(30px);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--fa, var(--border-strong));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.card h3 {
  font-size: 17px;
  margin: 16px 0 6px;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- getting started */
.journey {
  counter-reset: step;
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.journey li {
  counter-increment: step;
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}
.journey li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: 'Segoe UI', var(--font);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.journey h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.journey p {
  color: var(--text-2);
  font-size: 15.5px;
  margin: 0;
}
.journey-links {
  margin: 28px 0 0;
  color: var(--muted);
}
@media (min-width: 900px) {
  .journey {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ---------- requirements */
.req {
  display: grid;
  gap: 14px;
  margin: 0;
}
.req-row {
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.req dt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 16px;
}
.req-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fa-soft, var(--accent-soft));
  color: var(--fa, var(--accent));
}
.req dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}
@media (min-width: 720px) {
  .req {
    grid-template-columns: repeat(2, 1fr);
  }
  .req-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ */
.faq {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(255, 77, 141, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.06);
}
.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 60px 18px 22px;
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--surface-3);
  transition: background-color 0.25s ease;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 27px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::before {
  background: var(--accent-soft);
}
.faq-item[open] summary::after {
  border-color: var(--accent);
  transform: translateY(-25%) rotate(-135deg);
}
.faq-item summary:hover {
  color: #fff;
}
.faq-body {
  padding: 0 22px 8px;
  color: var(--text-2);
}
.faq-body ul,
.faq-body ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.faq-body li + li {
  margin-top: 4px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* SmartScreen illustration */
.ss {
  margin: 0 0 1em;
}
.ss-flow {
  display: grid;
  gap: 10px;
  align-items: center;
}
.ss-win {
  background: #0d5fa8;
  color: #fff;
  border-radius: 6px;
  padding: 16px 16px 14px;
  font-family: 'Segoe UI', var(--font);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ss-win p {
  margin: 0 0 8px;
}
.ss-title {
  font-size: 17px;
  font-weight: 600;
}
.ss-body {
  opacity: 0.92;
}
.ss-meta {
  opacity: 0.92;
  overflow-wrap: anywhere;
}
.ss-more .ss-hl {
  text-decoration: underline;
}
.ss-hl {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.ss-num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 12px;
  vertical-align: 1px;
}
.ss-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.ss-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}
.ss-arrow {
  justify-self: center;
  color: var(--gold);
  font-size: 22px;
  transform: rotate(90deg);
}
@media (min-width: 720px) {
  .ss-flow {
    grid-template-columns: 1fr auto 1fr;
  }
  .ss-arrow {
    transform: none;
  }
}


/* ---------- changelog: a timeline; older versions fold away */
.releases {
  position: relative;
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}
.releases::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet), var(--cyan));
  opacity: 0.35;
}
.release {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px 6px;
}
.release::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 25px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.releases > .release:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 77, 141, 0.18);
}
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.release-head h3 {
  font-family: var(--mono);
  font-size: 19px;
}
.release-head h3 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.release-date {
  font-size: 14px;
}
.release-body {
  font-size: 15px;
}
.older-releases {
  margin-top: 16px;
}
.older-releases > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 28px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.older-releases > summary::-webkit-details-marker {
  display: none;
}
.older-releases > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.older-releases > summary:hover {
  color: var(--text);
  border-color: var(--accent);
}
.older-releases[open] > summary {
  margin-bottom: 16px;
}
.older-releases[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.more-link {
  margin: 22px 0 0 28px;
}

/* ---------- closing call to action */
.cta {
  padding: 32px 0 96px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 64px 20px 56px;
  border-radius: 32px;
  border: 1.5px solid transparent;
  background:
    radial-gradient(640px 320px at 50% -10%, rgba(255, 77, 141, 0.3), transparent 70%) padding-box,
    radial-gradient(560px 300px at 50% 115%, rgba(77, 214, 255, 0.2), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
}
.cta-card::before {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -30px;
  height: 200px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(200, 107, 208, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 107, 208, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(360px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
  mask-image: linear-gradient(to top, #000, transparent 85%);
  opacity: 0.3;
}
.cta-icon {
  margin: 0 auto 24px;
  filter: drop-shadow(0 16px 40px rgba(255, 77, 141, 0.55));
  animation: bob 6s ease-in-out infinite;
}
.cta h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.cta p {
  color: var(--text-2);
  font-size: 18px;
}
.cta .download {
  margin: 28px auto 0;
}
.cta .download-meta {
  text-align: center;
}

/* ---------- footer */
.site-footer {
  position: relative;
  padding: 36px 0 44px;
  font-size: 14px;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}
.footer-inner {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.footer-links {
  gap: 4px 20px;
}
.footer-links a {
  color: var(--text-2);
}
.footer-note {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-note {
    grid-column: 1 / -1;
  }
}

/* ---------- policy pages */
.policy h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 18px;
}
.crumbs {
  font-size: 14px;
  margin: 0;
}
.draft-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 181, 71, 0.45);
  background: rgba(255, 181, 71, 0.1);
  color: #ffd9a0;
}
.draft-notice .icon {
  color: var(--warning);
  margin-top: 3px;
}
.draft-notice p {
  margin: 0;
}
.updated {
  font-size: 14px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 32px;
}
.toc h2 {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 14em;
  column-gap: 32px;
}
.toc a {
  color: var(--text-2);
}
.prose h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  padding-top: 4px;
}
.prose h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  color: var(--text);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.prose blockquote {
  margin: 0 0 1em;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: var(--surface-2);
  color: var(--text);
}
.prose tr:last-child td {
  border-bottom: 0;
}
mark.blank {
  background: rgba(255, 181, 71, 0.18);
  color: var(--warning);
  border-radius: 4px;
  padding: 0 2px;
}
.release-body {
  font-size: 15px;
}

/* ---------- small standalone pages (/download fallback, 404) */
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.center {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.center h1 {
  font-size: 30px;
  margin: 12px 0 6px;
}
.center p {
  color: var(--text-2);
}

/* ---------- scroll scenes. site.js sets --p (0..1) on each [data-scroll] element and adds html.fx when motion
   is allowed. Every rule falls back to the finished state (var(--p, 1)) or only applies under html.fx, so
   reduced motion and no-JavaScript visitors get a plain, complete page. */

/* hero: centered copy that drifts away, the app tilting up into place */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  max-width: 11.5em;
  font-size: clamp(40px, 7.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
html:lang(zh) .hero h1,
html:lang(ja) .hero h1 {
  font-size: clamp(34px, 6.2vw, 84px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.hero .lead {
  max-width: 40em;
}
.hero .download {
  width: 100%;
}
.hero .download-meta {
  text-align: center;
}
.hero .facts {
  justify-content: center;
}
html.fx .hero-copy {
  opacity: calc(1 - var(--p, 0) * 1.7);
  translate: 0 calc(var(--p, 0) * 110px);
}
html.fx .hero-lights {
  translate: 0 calc(var(--p, 0) * 260px);
}
.hero-device {
  margin-top: 64px;
  perspective: 1700px;
}
.hero-device .hero-stage {
  max-width: 1040px;
  margin: 0 auto;
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p, 1)) * 32deg)) scale(calc(0.84 + var(--p, 1) * 0.16));
}
.hero-device .float-score {
  translate: 0 calc((1 - var(--p, 1)) * -90px);
}
.hero-device .float-wave {
  translate: 0 calc((1 - var(--p, 1)) * 90px);
}
@media (min-width: 640px) {
  .hero .download {
    width: auto;
    max-width: none;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 96px 0 64px;
  }
  .btn-xl {
    width: auto;
    padding: 18px 40px;
  }
  .float-score {
    right: 8%;
    top: -38px;
  }
  /* over the stage's empty video area, clear of the lyric lines below it */
  .float-wave {
    left: -34px;
    bottom: 36%;
  }
}

/* statement: the sentence fills in word by word, a karaoke line driven by the scrollbar */
.statement {
  position: relative;
  padding: 120px 0 96px;
}
.statement::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 90vw);
  height: 420px;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(200, 107, 208, 0.16), transparent);
  pointer-events: none;
}
.statement-text {
  position: relative;
  max-width: 17em;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(30px, 5.6vw, 78px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
html:lang(zh) .statement-text,
html:lang(ja) .statement-text {
  max-width: 13em;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.sw {
  --w: 1;
  background-image: linear-gradient(90deg, var(--text) 50%, rgba(238, 241, 248, 0.16) 50%);
  background-size: 200% 100%;
  background-position: calc((1 - var(--w)) * 100%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* tour: pinned while the video grows to nearly full screen */
.tour {
  position: relative;
  padding: 40px 0 72px;
}
.tour-head {
  margin-bottom: 40px;
}
.tour-frame {
  position: relative;
  isolation: isolate;
  max-width: 1040px;
  margin: 0 16px;
  padding: 1.5px;
  border-radius: 24px;
  background: var(--grad);
  box-shadow: 0 40px 120px -30px rgba(255, 77, 141, 0.5), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.tour-frame::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(255, 77, 141, 0.35), transparent 70%),
    radial-gradient(50% 60% at 85% 75%, rgba(77, 214, 255, 0.3), transparent 70%);
  filter: blur(40px);
}
.tour-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22.5px;
  background: #000;
}
@media (min-width: 1072px) {
  .tour-frame {
    margin: 0 auto;
  }
}
@media (min-width: 900px) {
  html.fx .tour {
    height: 250vh;
    padding: 0;
  }
  html.fx .tour-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
  }
  html.fx .tour-head {
    position: absolute;
    top: 9vh;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: calc(1 - var(--p, 0) * 3.2);
    translate: 0 calc(var(--p, 0) * -70px);
  }
  html.fx .tour-frame {
    width: min(90vw, 148vh);
    max-width: none;
    margin: 0;
    transform: translateY(calc((1 - min(1, var(--p, 0) * 2.3)) * 15vh)) scale(calc(0.56 + min(1, var(--p, 0) * 2.3) * 0.44));
  }
}

/* lyric marquee: two rows of giant lines sliding in opposite directions with the scroll */
.marquee {
  --p: 0.5;
  position: relative;
  display: grid;
  gap: 4px;
  padding: 32px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.02em;
  will-change: transform;
}
.mq-row-a {
  transform: translateX(calc(var(--p) * -28%));
}
.mq-row-b {
  transform: translateX(calc(-28% + var(--p) * 28%));
}
.mq:lang(zh) {
  font-family: 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  letter-spacing: 0.04em;
}
.mq:lang(ja) {
  font-family: 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}
.mq-0 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 241, 248, 0.32);
}
.mq-1 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mq-2 {
  color: rgba(238, 241, 248, 0.88);
}
.mq rt {
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  -webkit-text-stroke: 0;
}
.mq-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}
.mq-row-b .mq-dot {
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

/* feature story (wide screens with motion): copy scrolls on the left, a pinned stage crossfades on the right */
.story-stage {
  display: none;
}
@media (min-width: 1024px) {
  html.fx .story {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
    gap: 80px;
  }
  html.fx .story-steps {
    display: block;
    padding-bottom: 24vh; /* keeps the stage pinned while the last step is read */
  }
  html.fx .story-steps .feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88vh;
    opacity: 0.2;
    transition: opacity 0.5s ease, translate 0.8s var(--ease);
  }
  html.fx .story-steps .feature.is-active {
    opacity: 1;
  }
  html.fx .story-steps .feature .shot {
    display: none;
  }
  html.fx .story-stage {
    display: block;
    position: relative;
  }
  html.fx .story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
}
.stage-box {
  position: relative;
  width: 100%;
}
.stage-shots {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.stage-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94) translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  box-shadow: 0 50px 120px -36px var(--fa-glow), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.story:not([data-step]) .stage-shot:nth-child(1),
.story[data-step='1'] .stage-shot:nth-child(1),
.story[data-step='2'] .stage-shot:nth-child(2),
.story[data-step='3'] .stage-shot:nth-child(3),
.story[data-step='4'] .stage-shot:nth-child(4) {
  opacity: 1;
  transform: none;
}
.stage-fx {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(18, 21, 31, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.story[data-step='1'] .fx-1,
.story[data-step='2'] .fx-2,
.story[data-step='3'] .fx-3,
.story[data-step='4'] .fx-4 {
  opacity: 1;
  transform: none;
}
.fx-1 {
  left: -32px;
  bottom: -28px;
  width: 320px;
  flex-direction: column;
  align-items: stretch;
}
.fx-file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent);
}
.fx-file span {
  color: var(--text);
}
.fx-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.fx-bar i {
  display: block;
  height: 100%;
  width: calc(min(1, var(--lp, 1) * 1.3) * 100%);
  background: var(--grad);
}
.fx-2 {
  right: -30px;
  top: -30px;
  flex-direction: column;
  gap: 6px;
}
.fx-2 .wave {
  height: 32px;
  gap: 4px;
}
.fx-2 .wave-voc {
  translate: 0 calc(min(1, var(--lp, 1) * 2) * -4px);
}
.fx-2 .wave-mus {
  translate: 0 calc(min(1, var(--lp, 1) * 2) * 4px);
}
.fx-3 {
  right: 6%;
  bottom: -34px;
  padding: 10px 26px 12px;
}
.fx-lyric {
  position: relative;
  font-family: 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.fx-lyric rt {
  font-size: 0.34em;
}
.fx-lyric-base {
  color: var(--text);
}
.fx-lyric-sung {
  position: absolute;
  inset: 0;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(77, 214, 255, 0.55);
  clip-path: inset(-20px calc((1 - min(1, var(--lp, 1) * 1.3)) * 100%) -20px -20px);
}
.fx-4 {
  right: -24px;
  top: -34px;
  color: var(--gold);
}
.fx-4 .icon {
  width: 26px;
  height: 26px;
}
.fx-4 b {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 209, 102, 0.5);
}
.story-rail {
  position: absolute;
  right: -40px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-rail li {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
  transition: height 0.4s var(--ease), background-color 0.4s ease;
}
.story-rail span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.story:not([data-step]) .story-rail li:nth-child(1),
.story[data-step='1'] .story-rail li:nth-child(1),
.story[data-step='2'] .story-rail li:nth-child(2),
.story[data-step='3'] .story-rail li:nth-child(3),
.story[data-step='4'] .story-rail li:nth-child(4) {
  height: 30px;
  background: var(--grad);
}

/* big numbers */
.numbers {
  padding: 8px 0 104px;
}
.numbers[hidden] {
  display: none;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
}
.num {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  padding: 30px 16px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  text-align: center;
}
.num dd {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num dt {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.num-online dd {
  background: none;
  color: var(--success);
  text-shadow: 0 0 30px rgba(61, 220, 151, 0.35);
}

/* getting started: a line fills across the three steps as they scroll in */
@media (min-width: 900px) {
  .journey {
    position: relative;
    margin-top: 36px;
  }
  .journey::before,
  .journey::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -22px;
    height: 2px;
    border-radius: 2px;
    background: var(--border);
  }
  .journey::after {
    background: var(--grad);
    transform: scaleX(var(--p, 1));
    transform-origin: left;
    box-shadow: 0 0 14px rgba(255, 77, 141, 0.5);
  }
}

/* cards: a soft light follows the pointer */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -200px), rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.card > * {
  position: relative;
  z-index: 1;
}

/* closing card grows in */
.cta-card {
  transform: scale(calc(0.9 + var(--p, 1) * 0.1));
}

/* ---------- scroll reveal (site.js adds html.js and .is-in). `translate` leaves `transform` free for hover effects. */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.3s var(--ease), border-color 0.3s ease,
    box-shadow 0.3s ease;
}
html.js [data-reveal].is-in {
  opacity: 1;
  translate: none;
}
html.js .cards > :nth-child(2),
html.js .journey > :nth-child(2),
html.js .req > :nth-child(2) {
  transition-delay: 0.08s, 0.08s, 0s, 0s, 0s;
}
html.js .cards > :nth-child(3),
html.js .journey > :nth-child(3),
html.js .req > :nth-child(3) {
  transition-delay: 0.16s, 0.16s, 0s, 0s, 0s;
}
html.js .cards > :nth-child(4),
html.js .req > :nth-child(4) {
  transition-delay: 0.24s, 0.24s, 0s, 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    translate: none;
  }
  .hero-stage,
  .hero-stage:hover {
    transform: none;
  }
}
