:root {
  color-scheme: dark;
  --background: #110e18;
  --surface: #191522;
  --surface-raised: #211a2d;
  --text: #f6f2fa;
  --muted: #b9afc7;
  --quiet: #9b90aa;
  --accent: #c8b2ff;
  --accent-bright: #dfd0ff;
  --line: #393044;
  --page-width: 66rem;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-localizing] [data-i18n] { visibility: hidden; }
html { scroll-padding-top: 1.5rem; }
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--background);
  color: var(--text);
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

.site-shell { width: min(var(--page-width), calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .5rem .85rem;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--background);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid #2c2336; }
.header-inner { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: .9rem; }
.header-controls { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
.brand {
  display: block;
  flex: none;
  text-decoration: none;
}
.brand img { width: 6.6rem; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.35rem; }
.site-nav a, .site-footer nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--accent-bright); }
.language-select {
  appearance: none;
  min-height: 2.4rem;
  padding: .35rem 1.75rem .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - .8rem) 51% / .25rem .25rem no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - .55rem) 51% / .25rem .25rem no-repeat,
    var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: .875rem;
}
.language-select:hover { border-color: #756382; }

body[data-page="mobile"], body[data-page="tv"] {
  background: radial-gradient(ellipse 58rem 29rem at 50% 26rem, #281c37 0%, transparent 70%), var(--background);
}
.hero {
  display: grid;
  min-height: 35.5rem;
  grid-template-columns: minmax(17rem, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.75rem);
  padding-block: 3.75rem 3.25rem;
}
.hero h1 {
  margin-block: 1.05rem 1.3rem;
  font-size: clamp(2.9rem, 5.45vw, 5rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.07em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 26rem; color: var(--muted); font-size: 1.055rem; line-height: 1.85; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.8rem; }
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: .56rem 1.025rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-button { background: var(--accent); color: #211440; }
.primary-button:hover { background: var(--accent-bright); }
.secondary-button { border-color: #4b3d58; background: #1c1627; color: var(--text); }
.secondary-button:hover { border-color: #83718e; background: #261d34; }
.download-icon {
  display: inline-block;
  position: relative;
  width: .9rem;
  height: .92rem;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 .125rem .125rem;
}
.download-icon::before, .download-icon::after { position: absolute; left: 50%; content: ""; }
.download-icon::before { top: 0; height: .58rem; border-left: 1.5px solid currentColor; transform: translateX(-50%); }
.download-icon::after {
  top: .22rem;
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(-50%) rotate(45deg);
}


.landing-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36rem 20rem at 50% 40%, #37244f 0%, transparent 100%),
    radial-gradient(ellipse 50rem 29rem at 50% 78%, #241b33 0%, transparent 100%);
  mask-image: linear-gradient(transparent, black 18%, black 70%, transparent);
}
.landing-hero .hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(2.4rem, 5vw, 4rem);
  padding-block: clamp(3.25rem, 7vw, 5.75rem) 4rem;
  text-align: center;
}
.landing-hero .hero h1 { margin-block: 0 1rem; }
.landing-hero .hero-description { max-width: 35rem; margin-inline: auto; }
.landing-hero .hero-actions { justify-content: center; }
.landing-hero .hero-visual { width: min(100%, 56rem); }
.hero-visual { min-width: 0; }
.hero-devices { position: relative; padding: 0 10% 5.5% 0; }
.capture-frame {
  overflow: hidden;
  padding: .38rem;
  border: 1px solid #625871;
  border-radius: 1rem;
  background: linear-gradient(160deg, #3a3145, #0f0c14 44%, #2b2335);
  box-shadow: 0 1.25rem 3.2rem #08060dbb, inset 0 0 0 2px #100d15;
}
.capture-frame img { width: 100%; height: auto; border-radius: .55rem; }
.capture-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  padding: .31rem;
  border-radius: clamp(.7rem, 2vw, 1.35rem);
}
.capture-phone img { border-radius: clamp(.43rem, 1.5vw, 1.03rem); }
.hero-tv h1 { font-size: clamp(2.65rem, 4.4vw, 4.5rem); }
.hero-tv .capture-tv { padding: .58rem; }

.download-section { padding-block: 3.2rem 3.65rem; border-block: 1px solid #2d2439; background: #15111d; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.55rem; }
.section-heading h2, .feature-intro h2 { margin-top: .35rem; font-size: clamp(1.8rem, 3.1vw, 2.65rem); letter-spacing: -.045em; }
.text-link { color: var(--accent); font-size: .9rem; text-underline-offset: .27em; }
.text-link:hover { color: var(--accent-bright); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.platform-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.15rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.platform-heading { display: flex; align-items: center; gap: .9rem; }
.platform-heading h3, .install-card h3 { font-size: 1.15rem; }
.platform-heading p, .install-card p { margin-top: .3rem; color: var(--muted); }
.platform-heading p { font-size: .88rem; }
.platform-icon {
  display: grid;
  position: relative;
  width: 2.875rem;
  height: 2.875rem;
  flex: none;
  place-items: center;
  border-radius: .65rem;
  background: #302343;
  color: var(--accent);
}
.platform-icon::before { display: block; border: 1.5px solid currentColor; content: ""; }
.phone-icon::before { width: .78rem; height: 1.3rem; border-radius: .21rem; }
.phone-icon::after { position: absolute; bottom: .96rem; width: .27rem; border-top: 1px solid currentColor; content: ""; }
.tv-icon::before { width: 1.38rem; height: .93rem; margin-bottom: .2rem; border-radius: .2rem; }
.tv-icon::after { position: absolute; bottom: .73rem; width: .65rem; border-top: 1.5px solid currentColor; content: ""; }

.platform-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-overview .platform-card:not(.platform-upcoming) { min-height: 10.5rem; }
.platform-overview .platform-card { gap: 1rem; }
.platform-upcoming { border-style: dashed; background: #15111d; }
.platform-upcoming .platform-icon { background: #251e30; color: #aaa0b7; }
.platform-unavailable { margin-top: auto; color: var(--muted); font-size: .88rem; }
.tv-download-grid { grid-template-columns: minmax(0, 34rem); }
.archive-link { font-size: .85rem; }
.desktop-icon::before { width: 1.45rem; height: .9rem; margin-bottom: .28rem; border-radius: .17rem; }
.desktop-icon::after {
  position: absolute;
  bottom: .67rem;
  width: .65rem;
  height: .3rem;
  background: linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  content: "";
}
.recommended-download { display: grid; width: 100%; gap: .5rem; margin-top: auto; }
.recommended-action { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.recommended-action small { color: var(--muted); font-size: .8rem; }
.download-qr { color: var(--accent); font-size: .9rem; }
.download-qr summary { width: fit-content; padding: .32rem 0; cursor: pointer; }
.download-qr img { width: 8rem; height: 8rem; margin-top: .35rem; padding: .4rem; border-radius: .42rem; background: white; }
.release-status, .empty-history { color: var(--muted); }

.product-story { padding-block: 4rem 5rem; }
.story-opening { max-width: 49rem; padding-block: 2.75rem 4.75rem; text-align: center; }
.story-opening h2 { font-size: clamp(2.4rem, 6vw, 4.65rem); font-weight: 750; letter-spacing: -.07em; }
.story-opening h2 em { color: var(--accent); font-style: normal; }
.story-row {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 3.6rem;
  border-top: 1px solid var(--line);
}
.story-reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.story-reverse .story-visual { grid-area: 1 / 1; }
.story-copy h3 {
  margin-block: .55rem .9rem;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  letter-spacing: -.065em;
}
.story-copy > p { color: var(--muted); line-height: 1.85; }
.story-visual {
  display: grid;
  min-width: 0;
  min-height: 17rem;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.85rem);
  border: 1px solid #3c304c;
  border-radius: 1.15rem;
  background: radial-gradient(ellipse at 26% 17%, #463256, #23192f 55%, #17131f 95%);
}
.story-phone { background: radial-gradient(ellipse at 70% 28%, #4f365f, #22182d 57%, #17131f 95%); }
.story-tv { background: radial-gradient(ellipse at 27% 34%, #304449, #211c31 59%, #17131f 95%); }
.story-visual .capture-frame { width: 100%; }
.story-phone .capture-frame { max-width: 13rem; border-radius: 1.18rem; }
.story-phone .capture-frame img { border-radius: .75rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .will-reveal { opacity: 0; transform: translateY(1.4rem); }
  .will-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .67s ease-out, transform .8s cubic-bezier(.2, .7, .25, 1);
  }
  .story-copy h3.is-visible { transition-delay: .07s; }
  .story-copy p.is-visible { transition-delay: .13s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-glow {
      animation: background-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 47rem;
    }
    [data-parallax] {
      animation: screenshot-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes background-drift { to { transform: translateY(4rem) scale(1.04); } }
    @keyframes screenshot-drift { from { transform: translateY(1.1rem); } to { transform: translateY(-1.1rem); } }
  }
}

.site-footer { border-top: 1px solid #2c2336; }
.footer-inner { padding-block: 2.15rem 1.25rem; }
.footer-about { display: grid; justify-items: start; gap: .4rem; }
.footer-about h2 { font-size: 1rem; }
.footer-about p, .footer-about a { color: var(--muted); font-size: .94rem; }
.footer-about a { overflow-wrap: anywhere; text-underline-offset: .24em; }
.footer-about a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.error-page {
  display: grid;
  place-items: center;
  padding-block: clamp(4rem, 11vw, 8rem);
  background: radial-gradient(ellipse 27rem 19rem at 50% 46%, #281d39, transparent 100%);
  text-align: center;
}

.error-content { max-width: 38rem; }
.error-code {
  color: var(--accent);
  font-size: clamp(5.5rem, 16vw, 10rem);
  font-weight: 760;
  line-height: .94;
  letter-spacing: -.085em;
}

.error-content h1 {
  margin-top: 1.15rem;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.error-description {
  max-width: 26rem;
  margin: .85rem auto 0;
  color: var(--muted);
  text-wrap: pretty;
}

.error-content .primary-button { margin-top: 1.8rem; }

.error-footer .footer-bottom {
  margin-top: 0;
  padding-block: 1.15rem;
  border-top: 0;
}

.page-intro { padding: 4.3rem 0 2rem; }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.06em; }
.page-intro > p { max-width: 40rem; margin-top: .8rem; color: var(--muted); }
.history-page { padding-bottom: 4rem; }
.filter-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.filter-bar label { display: grid; align-content: start; gap: .35rem; color: var(--muted); font-size: .9rem; }
.filter-bar select {
  appearance: none;
  min-width: 0;
  min-height: 2.75rem;
  padding: .45rem 2.2rem .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 1rem) 50% / .32rem .32rem no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - .68rem) 50% / .32rem .32rem no-repeat,
    var(--surface);
  color: var(--text);
}
.history-results-frame { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.history-results { overflow-x: auto; }
.history-results-frame .release-status, .history-results .empty-history { padding: 1.1rem; }
.history-table { width: 100%; min-width: 56rem; border-collapse: collapse; text-align: left; font-size: .875rem; }
.history-table :is(th, td) { padding: .8rem .85rem; }
.history-table th { background: var(--surface-raised); color: var(--muted); white-space: nowrap; }
.history-table th[scope="col"] { font-weight: 650; }
.history-table td { border-top: 1px solid var(--line); vertical-align: top; }
.history-table td:first-child > * { display: block; }
.history-table td:first-child :is(small, span) { color: var(--muted); white-space: nowrap; }
.file-cell { overflow-wrap: anywhere; }
.sha-inline { display: block; width: 12rem; color: var(--muted); overflow-wrap: anywhere; }
.history-download { color: var(--accent); white-space: nowrap; text-underline-offset: .2em; }


.privacy-main { padding-bottom: 4.5rem; }
.policy-intro { padding-bottom: 1.65rem; }
.policy-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.policy-meta time { font-variant-numeric: tabular-nums; }
.policy-layout { display: grid; grid-template-columns: minmax(9rem, 13.5rem) minmax(0, 43rem); align-items: start; gap: clamp(1.75rem, 5vw, 4rem); }
.policy-layout-single { grid-template-columns: minmax(0, 43rem); }
.policy-toc { position: sticky; top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.policy-toc h2 { font-size: 1rem; }
.policy-toc ol { display: grid; gap: .15rem; margin: .7rem 0 0; padding-left: 1.65rem; color: var(--muted); font-size: .9rem; }
.policy-toc a { display: block; padding-block: .25rem; color: var(--muted); text-decoration: none; }
.policy-toc a:hover { color: var(--accent-bright); text-decoration: underline; }
.policy-content section { padding-bottom: 1.55rem; border-bottom: 1px solid var(--line); }
.policy-content section + section { padding-top: 1.55rem; }
.policy-content h2 { margin-bottom: .7rem; font-size: 1.45rem; }
.policy-content h3 { margin-top: 1rem; font-size: 1.05rem; }
.policy-content p, .policy-content ul { margin-top: .55rem; color: #d1c8db; line-height: 1.85; }
.policy-content ul { padding-left: 1.35rem; }
.policy-content li + li { margin-top: .35rem; }
.policy-content a { color: var(--accent); text-underline-offset: .2em; }

@media (max-width: 60rem) {
  .site-shell { width: min(var(--page-width), calc(100% - 3rem)); }
  .hero { min-height: 30rem; }
  .hero-actions { gap: .55rem; }
}

@media (max-width: 47rem) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 2.15rem; padding-block: 2.9rem 2.4rem; }
  .hero-copy { max-width: 35rem; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.35rem); }
  .hero-visual { width: min(100%, 35rem); margin-inline: auto; }
  .landing-hero .hero { gap: 2.1rem; padding-block: 3rem 2.8rem; }
  .landing-hero .hero-visual { width: min(100%, 35rem); }
  .hero-devices { padding-bottom: 5%; }
  .story-opening { padding-block: 1.4rem 3rem; }
  .story-row, .story-reverse { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-block: 2.4rem; }
  .story-reverse .story-visual { grid-area: auto; }
  .story-visual { min-height: 0; }
  .platform-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-toc { position: static; }
  .policy-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.2rem; }
}

@media (max-width: 36rem) {
  .site-shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; }
  .header-controls { gap: .7rem; }
  .brand img { width: 5.7rem; }
  .section-heading { flex-wrap: wrap; align-items: start; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-overview .platform-card:not(.platform-upcoming) { min-height: 0; }
  .download-section { padding-block: 2.2rem; }
  .product-story { padding-block: 2.15rem; }
  .footer-inner { padding-top: 1.55rem; }
  .page-intro { padding-top: 2.5rem; }
  .filter-bar { gap: .45rem; }
  .filter-bar select { font-size: .84rem; }
}

@media (forced-colors: active) {
  .filter-bar select, .language-select { appearance: auto; }
}
