:root {
  color-scheme: dark;
  --ink: #0d1014;
  --text: #f4f1eb;
  --muted: #b9b8b4;
  --dim: #a6a7a8;
  --gold: #e5bf86;
  --rule: #303236;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { color: #17130c; background: #f1d4a8; }
.wrap { width: min(100% - 80px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 10px; transform: translateY(-160%); padding: 8px 14px; background: var(--text); color: var(--ink); border-radius: 4px; }
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid #242932; background: #090d14; }
.masthead-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f0d1a2; font-size: 20px; font-weight: 680; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 35px; height: 35px; border-radius: 9px; }
nav { display: flex; align-items: center; gap: 32px; }
nav a, .footer-inner a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: #cac9c6; }
nav a:hover, .footer-inner a:hover, .transcript summary:hover { color: #fae3ba; }
nav .nav-download { color: var(--gold); gap: 7px; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 73% 48%, #07172d 0%, #081321 33%, #0a1019 61%, #0b0e13 90%); border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; column-gap: 32px; min-height: 500px; padding-block: 40px 45px; }
.hero-copy { z-index: 1; }
h1 { color: #f4f0e9; font-size: clamp(48px, 5.35vw, 76px); font-weight: 680; line-height: 1.16; letter-spacing: -.055em; }
h1 em { color: var(--gold); font-style: normal; }
.intro { margin-top: 24px; color: #cac9c7; font-size: 16px; line-height: 1.85; }
.hero-mark { min-width: 0; justify-self: center; width: min(100%, 462px); aspect-ratio: 1; mix-blend-mode: lighten; }
.hero-mark img { width: 100%; height: auto; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(0deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.download { display: flex; align-items: center; gap: 19px; margin-top: 32px; width: fit-content; scroll-margin-block: 36px; }
.qr { width: 111px; height: 111px; border-radius: 6px; image-rendering: pixelated; background: white; }
.download-actions { display: grid; justify-items: start; gap: 7px; }
.scan-label { font-size: 14px; line-height: 1.4; color: #eeece5; font-weight: 550; }
.apk-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 5px; padding: 9px 18px; background: var(--gold); color: #251a0d; font-size: 15px; line-height: 1.45; font-weight: 700; transition: background-color .15s ease; }
.apk-button:hover, .play-toggle:hover { background: #f5d5a5; }
.apk-button svg { width: 19px; height: 19px; }
.system-note { color: #b5b5b4; font-size: 12px; line-height: 1.45; }

.features, .sample { scroll-margin-block: 24px; }
.features { background: #111316; border-bottom: 1px solid var(--rule); padding-block: 55px 58px; }
h2 { color: var(--text); font-size: clamp(26px, 2.35vw, 34px); line-height: 1.3; letter-spacing: -.045em; font-weight: 660; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 31px; padding: 0; list-style: none; }
.feature-list li { padding-inline: clamp(20px, 2.7vw, 40px); border-left: 1px solid #393938; }
.feature-list li:first-child { padding-left: 0; border-left: 0; }
.feature-list li:last-child { padding-right: 0; }
.feature-name { display: flex; align-items: center; gap: 10px; }
.feature-name svg { width: 23px; height: 23px; flex-shrink: 0; color: var(--gold); }
h3 { font-size: 19px; line-height: 1.4; font-weight: 600; }
.feature-list p, .sample-copy > p, .transcript div { color: var(--muted); font-size: 15px; line-height: 1.85; }
.feature-list p { margin-top: 11px; }

.sample { background: #101215; padding-block: 57px 58px; }
.sample-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(36px, 6vw, 84px); }
.sample-copy > p { margin-top: 13px; max-width: 40ch; }
.transcript { margin-top: 8px; }
.transcript summary { display: list-item; width: fit-content; color: var(--gold); padding-block: 7px; font-size: 13px; cursor: pointer; }
.transcript summary::marker { font-size: .9em; }
.transcript div { padding-top: 8px; }
.transcript div p + p { margin-top: 8px; }
.sound-player { min-width: 0; align-self: start; margin-top: 6px; padding: 21px 24px 19px; border: 1px solid #3c3832; border-radius: 9px; background: #1a1c1e; }
.sound-player audio { display: block; width: 100%; }
.sound-controls { display: flex; align-items: center; gap: 19px; }
.play-toggle { width: 47px; height: 47px; flex: 0 0 47px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: #241c12; }
.play-toggle svg { width: 24px; height: 24px; }
.pause-icon, .play-toggle[data-playing] .play-icon { display: none; }
.play-toggle[data-playing] .pause-icon { display: block; }
.track-info { min-width: 0; flex: 1; }
.wave-track { --progress: 0%; position: relative; min-height: 40px; display: flex; align-items: center; }
.wave-track:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wave-art { position: relative; width: 100%; height: 32px; background: #aaa195; -webkit-mask: url('/assets/sample-wave.svg') center / 100% 100% no-repeat; mask: url('/assets/sample-wave.svg') center / 100% 100% no-repeat; }
.wave-art::after { content: ""; position: absolute; inset: 0; background: #f2c788; clip-path: inset(0 calc(100% - var(--progress)) 0 0); }
.wave-track input { margin: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.track-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px; color: #c3c0ba; font-size: 12px; line-height: 1.5; }
.time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.playback-error { margin-top: 10px; font-size: 13px; color: var(--muted); }
.playback-error a { color: var(--gold); text-decoration: underline; }

footer { border-top: 1px solid var(--rule); background: #0d1014; }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; }
.footer-inner a { gap: 8px; color: var(--dim); font-size: 13px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .hero-inner { grid-template-columns: 1.12fr 1fr; min-height: 465px; column-gap: 16px; }
  h1 { font-size: clamp(43px, 6.1vw, 53px); }
  .intro { font-size: 15px; }
  .sample-inner { gap: 34px; }
  .sound-player { padding-inline: 16px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  .masthead-inner { min-height: 60px; gap: 12px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand img { width: 31px; height: 31px; border-radius: 7px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  nav .nav-download { display: none; }
  .hero-inner { grid-template-columns: 1fr 36%; grid-template-areas: "title mark" "intro intro" "download download"; column-gap: 0; min-height: 0; padding-block: 34px 38px; }
  .hero-copy { display: contents; }
  h1 { grid-area: title; align-self: center; font-size: clamp(27px, 7.3vw, 47px); line-height: 1.21; letter-spacing: -.06em; }
  .hero-mark { grid-area: mark; width: 122%; justify-self: center; }
  .intro { grid-area: intro; margin-top: 16px; line-height: 1.75; }
  .intro-break { display: none; }
  .download { grid-area: download; width: 100%; margin-top: 24px; }
  .qr, .scan-label { display: none; }
  .download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
  .apk-button { min-height: 46px; padding-inline: 18px; }
  .features { padding-block: 33px 35px; }
  .feature-list { grid-template-columns: 1fr; margin-top: 18px; }
  .feature-list li, .feature-list li:first-child, .feature-list li:last-child { padding: 17px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .feature-list li:first-child { padding-top: 0; }
  .feature-list li:last-child { padding-bottom: 0; border-bottom: 0; }
  .feature-name { gap: 8px; }
  .feature-name svg { width: 21px; height: 21px; }
  h3 { font-size: 18px; }
  .feature-list p { margin-top: 5px; }
  .sample { padding-block: 34px 40px; }
  .sample-inner { grid-template-columns: 1fr; gap: 16px; }
  .sample-copy > p { max-width: none; margin-top: 9px; }
  .sound-player { margin-top: 0; padding: 14px 16px; }
  .sound-controls { gap: 14px; }
  .footer-inner { min-height: 58px; }
}

@media (hover: none) and (pointer: coarse) {
  .qr, .scan-label { display: none; }
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 11px; }
  .download-actions { column-gap: 10px; }
  .apk-button { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
