:root {
  color-scheme: dark;
  --page: #080d1b;
  --raised: #101a2d;
  --panel: #101827;
  --edge: #283750;
  --ink: #f1f5fe;
  --muted: #a9b8d0;
  --accent: #9bc7ff;
  --ice: #d8eaff;
  --max: 1180px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.72; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.24; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #a8d3ff;
  outline-offset: 5px;
}
::selection { background: #6ca8ed; color: #071222; }
.wrap { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 10; padding: 10px 16px; background: var(--ice); color: #08162a; transform: translateY(-200%); border-radius: 8px; }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; background: #080d1bf5; border-bottom: 1px solid #a8c4f220; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 23px; font-weight: 750; letter-spacing: -.045em; }
.brand img { flex: none; width: 42px; height: 42px; border-radius: 9px; }
.navigation { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); color: var(--muted); white-space: nowrap; font-size: 14px; }
.navigation a { display: inline-grid; align-items: center; min-height: 44px; }
.navigation a:hover, .site-footer nav a:hover, figcaption a:hover { color: var(--ice); }
.header-download { justify-self: end; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 11px; text-align: center; font-size: 15px; font-weight: 700;
  white-space: nowrap; line-height: 1.45; cursor: pointer; transition: background-color .18s, border-color .18s;
}
.button-primary { background: var(--ice); color: #0a1c38; }
.button-primary:hover { background: #fff; }
.button-outline { background: #16305245; border-color: #5e75977a; color: var(--ink); }
.button-outline:hover { background: #203755; border-color: #8db4ed; }
.button.button-small { min-height: 38px; padding: 7px 17px; font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero { padding: 42px 0 35px; background: radial-gradient(ellipse at 80% 53%, #1c3d6a 0%, #101e38 35%, #080d1b 70%); }
.hero > .wrap { max-width: 1034px; }
.hero-intro { margin-bottom: 25px; }
.hero h1 br { display: none; }
.release { display: inline-flex; gap: 8px; align-items: center; color: #c2dbff; padding: 5px 11px; min-height: 31px; border: 1px solid #4b668c; background: #142b48; border-radius: 30px; font-size: 13px; font-weight: 600; }
.release span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #9ed9ff; box-shadow: 0 0 9px #59b1ff; }
.release:hover { background: #234a74; }
.hero h1 { font-size: clamp(40px, 6.5vw, 77px); margin-top: 10px; line-height: 1.12; letter-spacing: -.067em; }
.hero h1 em { font-style: normal; color: #adcfff; }
.hero-description { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 14px; }
.hero-description p { max-width: 490px; font-size: clamp(16px, 1.45vw, 20px); color: #ccdaef; line-height: 1.65; }
.hero-description .actions { flex: none; }
.hero-frame { padding: 8px 8px 0; border: 1px solid #6484b38c; border-radius: 20px; background: #0c1527; box-shadow: 0 26px 70px #03060eb3; }
.screen { display: block; overflow: hidden; background: #0c1426; }
.screen img, .feature-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.hero-frame .screen { border-radius: 12px; }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 11px; padding: 11px 2px 0; color: var(--ink); font-size: 14px; }
figcaption a { font-size: 12px; color: var(--accent); }
.hero-frame figcaption { padding: 11px 12px; color: var(--muted); font-size: 12px; }

.band { padding-block: 77px; }
.section-head { display: grid; grid-template-columns: 1.25fr .85fr; align-items: end; column-gap: 32px; row-gap: 14px; margin-bottom: 27px; }
h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -.045em; }
.section-head p, .help-grid > div > p { max-width: 420px; color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; }
.feature-main { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; padding: 12px; gap: 12px; background: #10203a; }
.feature-copy { padding: 23px; }
.feature h3, .faq h3 { font-size: 20px; }
.feature-main h3 { font-size: clamp(25px, 3vw, 38px); }
.feature-copy p, .feature details > p { color: var(--muted); margin-top: 10px; }
.feature .feature-label { color: var(--accent); font-size: 13px; margin: 0 0 8px; }
.feature-image { display: block; border-radius: 11px; overflow: hidden; border: 1px solid #6583b365; }
details { color: var(--muted); }
summary { color: var(--ink); cursor: pointer; }
.feature details { margin-top: 13px; }
.feature details summary { min-height: 32px; padding-block: 2px; color: var(--accent); font-size: 14px; }
.feature details p { font-size: 14px; }
.context-links { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 16px; margin-top: 19px; font-size: 14px; color: var(--muted); }
.context-links a, .body-copy a:not(.button), .affiliation a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.context-links a:hover, .body-copy a:not(.button):hover { color: #fff; }

.showcase-section { background: #0b1426; border-block: 1px solid #24324a; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 19px; }
.gallery figure { min-width: 0; }
.gallery .screen { outline: 1px solid #708ab445; border-radius: 11px; }
.gallery .screen:hover { outline-color: #9abbea; }
.gallery .screen:focus-visible { outline: 2px solid #a8d3ff; }

.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.edition { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--edge); border-radius: 17px; background: var(--panel); }
.edition-preferred { background: linear-gradient(150deg, #19365c, #101c33 60%); border-color: #789dcb; }
.edition h3 { margin: 8px 0 11px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.055em; }
.edition p { color: var(--muted); }
.edition p.edition-system { font-size: 13px; color: var(--accent); }
.edition-actions { margin-top: auto; padding-top: 22px; display: grid; gap: 9px; }
.backup { display: inline-block; justify-self: center; padding-block: 3px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.backup:hover { color: var(--ink); }
.download-notes { border-top: 1px solid var(--edge); margin-top: 23px; padding-top: 17px; color: var(--muted); font-size: 14px; }
.download-notes .context-links { margin-top: 8px; }
.help-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 7vw, 98px); border-top: 1px solid var(--edge); }
.help-grid > div > p { margin-top: 13px; }
.support-links { display: grid; gap: 8px; margin-top: 17px; }
.support-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 44px; background: var(--raised); border: 1px solid var(--edge); border-radius: 9px; }
.support-links a span { flex: none; color: var(--accent); }
.support-links a:hover { border-color: var(--accent); }
.faq h3 { margin-bottom: 8px; }
.faq details { padding: 13px 1px; border-bottom: 1px solid var(--edge); }
.faq details p { margin-top: 8px; font-size: 14px; }

.site-footer { border-top: 1px solid var(--edge); background: #090f1f; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 34px; align-items: start; padding-block: 32px; }
.footer-inner > div > p { margin-top: 11px; color: var(--muted); font-size: 13px; }
.footer-inner .affiliation:only-child { border: 0; padding: 0; }
.footer-inner p a { text-decoration: underline; text-underline-offset: .2em; }
.footer-inner nav { display: flex; gap: 17px; flex-wrap: wrap; font-size: 14px; }
.affiliation { grid-column: 1 / -1; border-top: 1px solid var(--edge); padding-top: 13px; color: var(--muted); font-size: 12px; }

.document { width: min(820px, calc(100% - 56px)); margin: 0 auto; padding-block: 61px 74px; }
.document h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -.05em; }
.document h2 { font-size: clamp(24px, 4vw, 33px); }
.document .intro { color: var(--muted); margin: 16px 0 27px; font-size: 17px; }
.document .breadcrumb { display: inline-block; color: var(--accent); margin-bottom: 20px; font-size: 14px; }
.document .panel { padding: clamp(18px, 4vw, 30px); margin: 19px 0; border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); }
.body-copy p + p { margin-top: 13px; }
.panel h2 + p, .panel h2 + ul { margin-top: 12px; }
.document textarea { width: 100%; min-height: 425px; padding: 14px; margin: 8px 0 14px; background: #0b1325; border: 1px solid #536b8b; border-radius: 9px; color: var(--ink); resize: vertical; }
.document label { display: block; margin-top: 18px; font-weight: 650; }
.document .status { color: var(--accent); min-height: 25px; margin-top: 8px; }
.document .note { color: var(--muted); font-size: 14px; }
.error-page { min-height: 60vh; display: grid; align-content: center; justify-items: start; }
.error-page .tag { font-size: 14px; color: var(--accent); margin-bottom: 12px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 58px); }
  .band { padding-block: 57px; }
  .hero { padding-top: 41px; }
  .hero-intro { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(40px, 8vw, 70px); }
  .hero-description { gap: 17px; }
  .hero-description p { font-size: 16px; }
  .edition, .feature-copy { padding: 18px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 115px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 15px; padding-top: 10px; min-height: 0; }
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .header-download { grid-column: 2; grid-row: 1; }
  .navigation { grid-column: 1 / -1; justify-content: space-between; gap: 4px 12px; font-size: 13px; min-width: 0; }
  .navigation a { min-height: 40px; }
  .header-inner-compact { padding-block: 10px; }
  .header-inner-compact .navigation { grid-column: 2; }
  .hero { padding: 29px 0 23px; }
  .section-head, .feature-main, .help-grid { grid-template-columns: 1fr; }
  .hero h1 br { display: initial; }
  .hero-description { display: block; }
  .hero h1 { margin-top: 13px; font-size: clamp(43px, 12vw, 68px); }
  .hero-description p { margin-bottom: 15px; }
  .hero-frame { padding: 5px 5px 0; border-radius: 13px; }
  .hero-frame .screen { border-radius: 8px; }
  .hero-frame figcaption { padding: 9px 5px; }
  .feature-grid, .editions { grid-template-columns: 1fr; gap: 9px; }
  .feature-main { padding: 9px; gap: 3px; }
  .feature-main .feature-copy { padding: 11px 8px 10px; }
  .feature-copy { padding: 16px; }
  .desktop-break { display: none; }
  .band { padding-block: 46px; }
  .section-head { margin-bottom: 19px; }
  .gallery { gap: 17px 11px; }
  .gallery figcaption { flex-wrap: wrap; padding-top: 7px; gap: 2px 8px; }
  .edition-actions { padding-top: 13px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner nav { gap: 9px 14px; }
  .document { width: calc(100% - 36px); padding-block: 36px 54px; }
  .document textarea { min-height: 560px; }
}
@media (max-width: 370px) {
  .actions .button { padding-inline: 14px; }
  .actions { gap: 8px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
