:root {
  color-scheme: light;
  --night: #0d1326;
  --night-deep: #090e1d;
  --ink: #152343;
  --muted: #455473;
  --on-dark: #f5f8ff;
  --on-dark-muted: #bac8e2;
  --accent: #abcfff;
  --blue: #225ccf;
  --blue-hover: #194bb0;
  --paper: #f4f7fd;
  --line: #d9e2f2;
  --content-width: 1160px;
  --gutter: clamp(18px, 4vw, 48px);
  --section-padding: clamp(60px, 7vw, 104px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  line-break: strict;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, p, figure, ol, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #6799ec;
  outline-offset: 4px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
}

.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 5;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip-path: none;
  color: var(--ink);
  background: #fff;
}

.site-header, .hero, .screenshots, .site-footer {
  color: var(--on-dark);
  background: var(--night);
}

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid #2a3857;
  background: #0d1326f5;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-size: 1.18rem;
  font-weight: 760;
}

.brand img, .download-brand img {
  border: 1px solid #b4c5ee55;
  border-radius: 10px;
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  color: var(--on-dark-muted);
  font-size: .94rem;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  font-weight: 720;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}

.button-header {
  flex: none;
  min-height: 42px;
  padding-inline: 16px;
  border: 1px solid #425378;
  color: #e1edff;
  font-size: .93rem;
}

.button-primary {
  min-height: 54px;
  min-width: 230px;
  padding: 10px 34px;
  color: #fff;
  background: var(--blue);
}

.hero .button-primary {
  color: #112954;
  background: #aecfff;
  box-shadow: 0 10px 30px #143a865e;
}

.download-icon {
  width: 17px;
  height: 17px;
  flex: none;
  position: relative;
  border-bottom: 2px solid currentColor;
}

.download-icon::before, .download-icon::after {
  content: "";
  position: absolute;
  left: 50%;
}

.download-icon::before {
  width: 2px;
  height: 10px;
  transform: translateX(-50%);
  background: currentColor;
}

.download-icon::after {
  top: 4px;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-50%) rotate(45deg);
}

.hero {
  background:
    radial-gradient(ellipse at 80% 56%, #19386d 0%, #141f3c 34%, transparent 68%),
    linear-gradient(125deg, var(--night-deep), #141b39);
}

.hero-layout {
  min-height: 540px;
  padding-block: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.hero-copy h1 {
  width: fit-content;
  color: var(--accent);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-weight: 760;
  line-height: 1.15;
}

.hero-subtitle {
  margin-top: 17px;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.14;
}

.hero-description {
  max-width: 28em;
  margin: 23px 0 27px;
  color: var(--on-dark-muted);
  font-size: 1.045rem;
}

.hero-art {
  position: relative;
  margin-block: 8px;
  border: 1px solid #6892d38c;
  border-radius: 24px;
  padding: 9px;
  background: #101a32;
  box-shadow: 0 28px 58px #05091684, 0 0 58px #3168d43b;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -18px -13px 13px 15px;
  border: 1px solid #6e9ce242;
  border-radius: 27px;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  position: relative;
  border-radius: 15px;
}

.section {
  padding-block: var(--section-padding);
  scroll-margin-top: 88px;
}

.section-heading {
  margin-bottom: clamp(24px, 3.2vw, 42px);
}

.section-heading h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.85rem);
  font-weight: 770;
  line-height: 1.25;
}

.section-heading p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading-centered {
  text-align: center;
}

.screenshots {
  border-top: 1px solid #899bd326;
  background: linear-gradient(160deg, #111a31, #141c34 64%, #11192d);
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.3vw, 28px);
}

.screenshot-link {
  display: block;
  min-width: 0;
  border: 1px solid #5b6b90;
  border-radius: 13px;
  cursor: zoom-in;
  background: #0b101d;
  transition: border-color .2s, transform .2s;
}

.screenshot-link img {
  width: 100%;
  border-radius: inherit;
}

.features {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 33px);
  background: #fff;
}

.feature-icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #255abd;
  background: #e9f1ff;
}

.feature-icon::before, .feature-icon::after {
  content: "";
  grid-area: 1 / 1;
}

.feature-icon-play::before {
  width: 22px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.feature-icon-play::after {
  border: 4px solid transparent;
  border-right: 0;
  border-left: 6px solid currentColor;
  margin-left: 2px;
}

.feature-icon-interact {
  color: #5849b1;
  background: #efebff;
}

.feature-icon-interact::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.feature-icon-interact::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.feature-icon-rotate {
  color: #167b91;
  background: #e3f5fa;
}

.feature-icon-rotate::before {
  width: 12px;
  height: 19px;
  transform: rotate(-38deg);
  border: 2px solid currentColor;
  border-radius: 3px;
}

.feature-icon-rotate::after {
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-color: transparent currentColor;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.feature-card h3, .steps h3, .formats h3 {
  font-size: 1.14rem;
  line-height: 1.45;
}

.feature-card p, .steps p {
  margin-top: 10px;
  color: var(--muted);
}

.formats {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 16px;
  background: #e9f0fc;
}

.format-list {
  margin-top: 14px;
}

.format-list > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid #ccd9ee;
}

.format-list dt {
  font-weight: 690;
}

.format-list dd {
  color: var(--muted);
}

.setup {
  border-block: 1px solid var(--line);
  background: #fff;
}

.steps {
  list-style: none;
  counter-reset: setup-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  padding: 0;
}

.steps li {
  counter-increment: setup-step;
  padding-top: 21px;
  border-top: 1px solid #c9d9f1;
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps h3::before {
  content: counter(setup-step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #2458b9;
  background: #e7efff;
  font-size: .89rem;
}

.faq-heading, .faq-list {
  max-width: 840px;
  margin-inline: auto;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.6;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

.faq-list details[open] summary {
  color: #2255ad;
}

.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-list p {
  max-width: 70ch;
  padding: 0 28px 23px 4px;
  color: var(--muted);
  line-height: 1.8;
}

.download-section {
  padding-top: 0;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 5vw, 57px);
  border: 1px solid #ceddf8;
  border-radius: 22px;
  background: radial-gradient(ellipse at 52% 90%, #e2edff, transparent 67%), #edf3ff;
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-brand img {
  flex: none;
}

.download-brand h2 {
  font-size: clamp(1.58rem, 3.4vw, 2.65rem);
  line-height: 1.2;
}

.site-footer {
  background: var(--night-deep);
}

.footer-inner {
  padding-block: 43px;
  display: grid;
  justify-items: center;
  gap: 17px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: var(--on-dark-muted);
  font-size: .94rem;
}

.site-footer p {
  color: #9ba9c4;
  font-size: .85rem;
}

.gallery-dialog {
  width: max-content;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  margin: auto;
  border: 1px solid #415478;
  border-radius: 14px;
  padding: 44px 46px 12px;
  overflow: auto;
  color: var(--on-dark);
  background: var(--night);
}

.gallery-dialog::backdrop {
  background: #050915d9;
}

html:has(.gallery-dialog[open]) {
  overflow: hidden;
}

.gallery-image {
  width: auto;
  height: auto;
  max-width: min(76vw, 480px);
  max-height: calc(100dvh - 78px);
  object-fit: contain;
  border-radius: 7px;
  touch-action: pan-y;
}

.gallery-dialog button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #51678f;
  border-radius: 8px;
  color: var(--on-dark);
  background: #1c2b49;
  font-size: 1.42rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-close { top: 5px; right: 7px; }
.gallery-prev { top: 50%; left: 5px; }
.gallery-next { top: 50%; right: 5px; }

@media (hover: hover) {
  .header-nav a:hover, .site-footer nav a:hover {
    color: var(--accent);
  }

  .button-header:hover {
    border-color: #829dcc;
    background: #233355;
  }

  .button-primary:hover {
    transform: translateY(-2px);
    background: var(--blue-hover);
  }

  .hero .button-primary:hover {
    background: #cee1ff;
  }

  .screenshot-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
  }

  .faq-list summary:hover {
    color: #2255ad;
  }
}

@media (max-width: 850px) {
  .hero-layout {
    min-height: 0;
    padding-block: 60px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 690px) {
  .header-inner {
    min-height: 0;
    padding-top: 9px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .header-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 7px 0 12px;
    border-top: 1px solid #81a2ef30;
    font-size: .875rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 43px 39px;
    gap: 26px;
  }

  .hero-subtitle {
    margin-top: 13px;
  }

  .hero-description {
    margin: 16px 0 20px;
  }

  .button-primary {
    width: 100%;
    min-width: 0;
  }

  .hero-art {
    padding: 5px;
    border-radius: 15px;
    margin-block: 4px 0;
  }

  .hero-art::before {
    inset: -7px -5px 5px 7px;
    border-radius: 17px;
  }

  .hero-art img {
    border-radius: 10px;
  }

  .section {
    scroll-margin-top: 106px;
  }

  .screenshot-strip {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: 43%;
    grid-auto-flow: column;
    gap: 10px;
    margin: -6px calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-color: #63799f #202d49;
    scrollbar-width: thin;
  }

  .screenshot-link {
    scroll-snap-align: start;
    border-radius: 9px;
  }

  .feature-grid, .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    gap: 12px;
  }

  .format-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .download-panel {
    flex-direction: column;
    text-align: center;
  }

  .download-brand {
    flex-direction: column;
    gap: 11px;
  }

  .download-brand img {
    width: 50px;
  }

  .site-footer nav {
    gap: 8px 13px;
  }

  .gallery-dialog {
    padding: 43px 32px 10px;
  }

  .gallery-image {
    max-width: calc(100vw - 84px);
  }

  .gallery-dialog button {
    width: 30px;
    height: 32px;
  }

  .gallery-prev { left: 1px; }
  .gallery-next { right: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
