:root {
  color-scheme: dark;
  --paper: #10161e;
  --panel: #151d27;
  --edge: #2a3440;
  --ink: #f2ecdf;
  --subtle: #b7c0cc;
  --gold: #efbd76;
  --gold-dark: #211a12;
  --serif: 'Noto Serif SC', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, Georgia, serif;
  --sans: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font: 16px/1.65 var(--sans);
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip { position: fixed; z-index: 3; left: 1rem; top: .7rem; transform: translateY(-180%); padding: .5rem .8rem; color: var(--gold-dark); background: var(--gold); }
.skip:focus { transform: none; }
.container { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--edge); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font: bold 1.48rem/1 Georgia, var(--serif); letter-spacing: -.045em; }
.brand img { flex: none; }
.top nav { display: flex; gap: clamp(1.1rem, 3.2vw, 2.8rem); color: var(--subtle); }
.top nav a:hover, .footer a:last-child:hover, .header-release:hover { color: var(--gold); }
.header-release { font-size: .9rem; padding: .48rem .7rem; border: 1px solid var(--edge); border-radius: 6px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 36px; padding-block: 84px 79px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .58rem; color: var(--gold); font-size: .88rem; font-weight: 600; letter-spacing: .12em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; }
.hero h1 { font-size: clamp(3.35rem, 6.7vw, 6.05rem); line-height: 1.09; letter-spacing: -.05em; }
.hero h1 span { color: var(--gold); }
.hero-description { max-width: 37rem; margin: 1.55rem 0 1.6rem; color: var(--subtle); font-size: clamp(1.03rem, 1.55vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 7px; font-weight: 650; transition: background-color .18s, border-color .18s; }
.primary { color: var(--gold-dark); background: var(--gold); }
.primary:hover { background: #ffce8b; }
.secondary { background: transparent; color: var(--ink); border-color: var(--edge); }
.secondary:hover { border-color: var(--gold); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--subtle); font-size: .88rem; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .8; }
.hero-emblem { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; }
.hero-emblem::before { content: ''; position: absolute; inset: -9%; z-index: -2; background: radial-gradient(closest-side, #3c382b 0, #24282b 52%, transparent 98%); opacity: .62; }
.hero-emblem img { width: 74%; height: auto; filter: drop-shadow(0 20px 36px #06080b9e); }
.emblem-ring { position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid #efbd7634; border-radius: 50%; }
.ring-one { width: 87%; }
.ring-two { width: 99%; border-color: #efbd761c; }
.workspace, .features, .download-section { scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.35rem; }
.section-heading h2, .download-card h2 { font-size: clamp(1.85rem, 3.15vw, 2.85rem); line-height: 1.22; letter-spacing: -.03em; }
.section-heading > p { margin: 0 0 .18rem; color: var(--subtle); }
.preview { overflow: hidden; border: 1px solid var(--edge); border-radius: 13px; background: #121b25; box-shadow: 0 16px 55px #060a0f70; }
.tabs { display: flex; overflow: auto; gap: .35rem; padding: 8px 11px 0; border-bottom: 1px solid var(--edge); background: #161f2a; }
.tabs button { position: relative; flex: none; padding: .7rem .95rem .8rem; border: 0; background: transparent; color: var(--subtle); font-size: .91rem; }
.tabs button[aria-selected='true'] { color: var(--gold); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; inset: auto .75rem 0; height: 2px; background: var(--gold); }
.tabs button:hover { color: var(--ink); }
.preview figure { margin: 0; }
.preview figure img { width: 100%; height: auto; }
.preview figcaption { padding: .92rem 1.25rem; color: var(--subtle); font-size: .93rem; border-top: 1px solid var(--edge); }
.features { margin-top: 104px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.feature-list article { display: flex; align-items: start; gap: 1rem; border-top: 1px solid var(--edge); padding: 1.25rem 0; }
.feature-list h3, .library-story h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.34; }
.feature-list p, .library-story p { margin: .55rem 0 0; color: var(--subtle); }
.feature-sign { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #efbd766b; border-radius: 50%; color: var(--gold); font: 1.1rem var(--serif); }
.library-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.1rem, 5vw, 4rem); margin-top: 3rem; }
.library-story img { width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 9px; }
.library-story h3 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
.download-section { margin-top: 105px; }
.download-card { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 1.5rem 2.8rem; padding: clamp(1.25rem, 4vw, 3rem); background: #1b242e; border: 1px solid #efbd7650; border-radius: 12px; }
.download-card p:not(.eyebrow) { margin: .8rem 0 1.3rem; color: var(--subtle); }
.release-data { margin: 0; }
.release-data div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1rem; padding: .63rem 0; border-bottom: 1px solid var(--edge); }
.release-data dt { color: var(--subtle); }
.release-data dd { margin: 0; font-variant-numeric: tabular-nums; }
.release-data a { color: var(--gold); text-decoration: underline; text-underline-offset: .22em; }
.faq { display: grid; margin: 1.65rem 0 0; }
.faq details { border-bottom: 1px solid var(--edge); padding: .85rem .1rem; }
.faq summary { font-weight: 600; }
.faq details p { margin: .55rem 0 0 1.2rem; color: var(--subtle); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-top: 60px; padding-block: 20px 28px; border-top: 1px solid var(--edge); color: var(--subtle); font-size: .9rem; }
.footer .brand { color: var(--ink); font-size: 1.25rem; }
.download-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: clamp(1rem, 5vw, 1.65rem); border: 1px solid #efbd7660; border-radius: 12px; color: var(--ink); background: var(--panel); }
.download-dialog::backdrop { background: #070a0dd1; }
.download-dialog h2 { font-size: 1.85rem; }
.download-dialog form { position: absolute; top: 10px; right: 12px; }
.dismiss { width: 35px; height: 35px; border-radius: 6px; border: 1px solid var(--edge); background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; }
.dismiss:hover { border-color: var(--gold); }
.download-status { color: var(--subtle); margin: .75rem 0; }
.download-dialog progress { display: block; width: 100%; height: .6rem; accent-color: var(--gold); }
.routes { margin: .75rem 0 1rem; padding: 0; list-style: none; }
.routes li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--subtle); border-bottom: 1px solid var(--edge); font-size: .88rem; }
.routes li[data-best] { color: var(--gold); }
.dialog-actions { margin-top: 1rem; }
@media (max-width: 870px) {
  .container { width: calc(100% - 42px); }
  .hero { padding-block: 68px 59px; gap: 12px; }
  .hero h1 { font-size: clamp(2.8rem, 7.6vw, 4.3rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .features, .download-section { margin-top: 70px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .top-row { min-height: auto; padding-block: .66rem; gap: .6rem 1rem; flex-wrap: wrap; }
  .top-row nav { order: 3; width: 100%; gap: 1.2rem; font-size: .9rem; }
  .header-release { padding: .28rem .5rem; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 40px 42px; }
  .hero-emblem { width: min(70%, 255px); justify-self: center; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-description { margin-block: 1rem 1.1rem; }
  .hero-meta { font-size: .82rem; }
  .feature-list, .library-story, .download-card { grid-template-columns: minmax(0, 1fr); }
  .feature-list article { padding-block: .9rem; }
  .library-story { margin-top: 1.5rem; }
  .features, .download-section { margin-top: 48px; }
  .tabs button { padding-inline: .62rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
