:root {
  color-scheme: light;
  --ink: #1f242d;
  --soft-ink: #535b64;
  --paper: #f7f6f3;
  --surface: #eeede9;
  --line: #d9d8d2;
  --night: #161a22;
  --night-light: #202731;
  --on-dark: #f4f0e8;
  --on-dark-soft: #c7cdd4;
  --amber: #f4c27a;
  --amber-ink: #241a10;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a26318; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2, h3 { line-height: 1.24; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 720; }
h3 { font-size: clamp(1.16rem, 2vw, 1.44rem); font-weight: 680; }
figcaption { color: var(--soft-ink); font-size: .875rem; }
[id] { scroll-margin-top: 1.5rem; }

.wrap {
  width: min(100% - 3rem, 1260px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  inset: 1rem auto auto 1rem;
  padding: .6rem 1rem;
  transform: translateY(-200%);
  color: var(--amber-ink);
  background: var(--amber);
}

.skip-link:focus { transform: none; }

.site-header, .hero, .download, .site-footer { background: var(--night); color: var(--on-dark); }
.site-header { border-bottom: 1px solid #ffffff1c; }
.site-header a:focus-visible, .hero a:focus-visible, .download a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--amber);
}

.header-inner, .footer-inner {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: .54rem;
  font-size: 1.38rem;
  font-weight: 740;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand-mark {
  width: 1.08rem;
  aspect-ratio: 1;
  border: 1.5px solid var(--amber);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.header-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem clamp(1.1rem, 3.2vw, 2.8rem);
  color: var(--on-dark-soft);
}

.header-inner nav a, .footer-inner > a:last-child { font-size: .9375rem; text-decoration: none; }
.header-inner nav a:hover, .footer-inner > a:last-child:hover { color: var(--amber); }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .download::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(28rem, 58vw, 65rem);
  aspect-ratio: 1;
  border: 1px solid #f4c27a44;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before { inset: -47% -15% auto auto; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse at 86% 43%, #3c3a37 0%, var(--night-light) 32%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 5.4rem);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hero-copy {
  --hero-name-size: clamp(4.25rem, 8vw, 7.3rem);
  container-type: inline-size;
}

.hero-copy h1 { margin-bottom: 1.25rem; line-height: .99; }
.hero-name {
  display: block;
  font-size: var(--hero-name-size);
  font-size: min(var(--hero-name-size), 39cqi);
  font-weight: 750;
  letter-spacing: -.075em;
}
.hero-type {
  display: block;
  margin-top: .6rem;
  font-size: clamp(1.65rem, 3.25vw, 2.75rem);
  font-weight: 680;
  letter-spacing: .065em;
  line-height: 1.22;
}

.hero-copy > p {
  max-width: 25em;
  color: var(--on-dark-soft);
  font-size: clamp(1rem, 1.43vw, 1.12rem);
}

.hero-copy > p + p { margin-top: .62rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}

.download-button, .play-button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .68rem 1.35rem;
  border: 1px solid #ffffff15;
  border-radius: .55rem;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 1rem;
  font-weight: 730;
  text-decoration: none;
}

.download-button:hover { background: #ffcf8d; }
.download-button:active { background: #eab265; }
.play-button {
  border-color: #f4c27a80;
  background: transparent;
  color: var(--on-dark);
}
.play-button:hover { background: #f4c27a17; border-color: var(--amber); }
.play-button:active { background: #f4c27a2b; }
.hero-copy .hero-note { margin-top: .7rem; font-size: .875rem; }
.hero-note a { color: var(--on-dark); white-space: nowrap; }

.hero-stage { min-width: 0; }
.stage-frame {
  display: block;
  overflow: hidden;
  padding: 5px;
  border: 1px solid #ffffff36;
  border-radius: 1.05rem;
  background: #0f131a;
  box-shadow: 0 1.3rem 3.5rem #080c1466;
}

.stage-frame img { border-radius: .72rem; }
.hero-stage figcaption { margin-top: .6rem; color: var(--on-dark-soft); text-align: right; }

.product { padding-block: clamp(3.5rem, 8vw, 7rem); }
.product-row { display: grid; align-items: center; gap: clamp(1.4rem, 6vw, 5.75rem); }
.product-row + .product-row {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.play { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.play .product-copy { grid-area: 1 / 2; }
.play .play-sequence { grid-area: 1 / 1; }
.make { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); }
.product-copy h2 { margin-bottom: 1rem; }
.product-copy p { max-width: 28em; color: var(--soft-ink); }
.product-copy p + p { margin-top: .65rem; }

.play-sequence {
  display: grid;
  gap: .9rem;
  padding: clamp(.8rem, 2vw, 1.5rem);
  border-radius: 1rem;
  background: #e9e7e1;
}

.play-sequence figure { display: grid; gap: .45rem; }
.play-sequence figcaption { color: #474b52; font-weight: 650; }

.play-sequence img, .make-comparison img, .feature-gallery img, .setup-figure img {
  border: 1px solid #20283328;
  border-radius: .6rem;
}

.make-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.make-comparison img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #e7e6e3;
}

.make-comparison figcaption, .feature-gallery figcaption, .setup-figure figcaption { margin-top: .48rem; }

.features {
  padding-block: clamp(3.5rem, 7vw, 6.7rem);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.features h2 { margin-bottom: clamp(1.8rem, 4vw, 3.4rem); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); }
.feature-group { border-top: 2px solid #a5a19a; }
.feature-group h3 { padding: 1.15rem 0 .85rem; }
.feature-group dl > div {
  display: grid;
  grid-template-columns: minmax(8em, .74fr) minmax(0, 1.26fr);
  gap: .7rem;
  padding: .69rem 0;
  border-top: 1px solid var(--line);
}

.feature-group dt { font-weight: 650; }
.feature-group dd { color: var(--soft-ink); }
.extras { grid-column: 1 / -1; }
.extras dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 3vw, 2rem); }
.extras dl > div { grid-template-columns: 1fr; gap: .2rem; }

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2.4vw, 1.9rem);
  margin-top: clamp(1.8rem, 5vw, 3.5rem);
}

.feature-gallery img {
  aspect-ratio: 1.36;
  object-fit: cover;
  object-position: center top;
  background: var(--night);
}

.feature-gallery a { display: block; border-radius: .6rem; }
.feature-gallery a:hover img { border-color: #a26318; }
.feature-gallery figure:first-child img { object-fit: contain; object-position: center; }

.screenshot-dialog {
  width: fit-content;
  max-width: min(94vw, 58rem);
  max-height: 92vh;
  padding: .9rem;
  border: 1px solid #ffffff36;
  border-radius: .75rem;
  background: var(--night);
  color: var(--on-dark);
}

.screenshot-dialog::backdrop { background: #080a10cc; }
.screenshot-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: .7rem;
}

.screenshot-dialog h2 { font-size: 1.05rem; }
.screenshot-dialog button {
  min-height: 2.75rem;
  padding: .35rem .6rem;
  border: 1px solid #ffffff40;
  border-radius: .4rem;
  background: var(--night-light);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.screenshot-dialog button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.screenshot-dialog img { max-height: 74vh; object-fit: contain; border-radius: .4rem; }

.download { position: relative; isolation: isolate; overflow: hidden; }
.download::before { inset: -33% -24% auto auto; }
.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem clamp(1.4rem, 5vw, 5rem);
  padding-block: clamp(2.65rem, 6vw, 5.15rem);
}

.download h2 { margin-bottom: .5rem; }
.download p, .release-details dt { color: var(--on-dark-soft); }
.release-version { color: var(--on-dark); font-weight: 700; }
.release-details { display: grid; gap: .4rem; font-size: .9375rem; }
.release-details > div { display: grid; grid-template-columns: max-content 1fr; gap: .85rem; }
.download-action { display: grid; justify-items: start; gap: .45rem; }
.subtle-link { color: var(--on-dark-soft); font-size: .9375rem; }

.setup { padding-block: clamp(3.1rem, 6vw, 5.8rem); }
.setup h2 { margin-bottom: clamp(1.35rem, 3.5vw, 2.65rem); }
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(1.35rem, 6vw, 5.5rem);
}

.setup-step {
  border-top: 1px solid var(--line);
  padding: .9rem 0 1rem;
}

.setup-step p { margin-top: .35rem; color: var(--soft-ink); }
.setup-figure { max-width: 37rem; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  gap: 1.15rem clamp(1rem, 5vw, 4rem);
  padding-block: 2rem clamp(3.1rem, 6vw, 5.8rem);
  border-top: 1px solid var(--line);
}

.faq h2 { font-size: clamp(1.6rem, 3.1vw, 2.45rem); }
details { border-bottom: 1px solid var(--line); }
summary { padding: .77rem 0; color: var(--ink); cursor: pointer; font-weight: 640; }
details p { padding-bottom: .8rem; color: var(--soft-ink); }
.footer-inner { min-height: 4.8rem; color: var(--on-dark-soft); }
.footer-inner .brand { color: var(--on-dark); }

@media (max-width: 900px) {
  .hero-grid { gap: 1.7rem; }
  .product-row { gap: 1.5rem; }
  .feature-group dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .download-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 2.25rem, 1260px); }
  .hero-grid, .product-row, .feature-grid, .setup-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 2.6rem 1.9rem; }
  .play .product-copy, .play .play-sequence { grid-area: auto; }
  .product-row { align-items: start; }
  .feature-group dl > div { grid-template-columns: minmax(7em, .7fr) minmax(0, 1.3fr); gap: .8rem; }
  .feature-group.extras dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .download-inner { grid-template-columns: minmax(0, 1fr); }
  .download-action { grid-row: 2; }
  .setup-figure { max-width: 29rem; }
}

@media (max-width: 540px) {
  .header-inner { min-height: auto; flex-wrap: wrap; gap: .45rem 1rem; padding-block: .72rem; }
  .header-inner nav { column-gap: .85rem; }
  .header-inner nav a { font-size: .875rem; }
  .hero::before { inset: -14% -45% auto auto; }
  .hero-grid { gap: 1.1rem; padding-block: 1.4rem 1.9rem; }
  .hero-copy { --hero-name-size: clamp(4.1rem, 16vw, 5.65rem); }
  .hero-copy h1 { margin-bottom: .65rem; }
  .hero-type { margin-top: .4rem; }
  .hero-copy > p + p { margin-top: .42rem; }
  .hero-actions { margin-top: .88rem; }
  .hero-copy .hero-note { margin-top: .5rem; }
  .make-comparison, .extras dl, .feature-gallery { grid-template-columns: minmax(0, 1fr); }
  .feature-gallery img { max-height: 28rem; }
}

@media (min-width: 701px) and (max-width: 960px) and (max-height: 500px) {
  .hero-grid { padding-block: 1.35rem; }
  .hero-copy { --hero-name-size: clamp(3.3rem, 7vw, 4.3rem); }
  .hero-copy h1 { margin-bottom: .7rem; }
  .hero-actions { margin-top: .9rem; }
}

@media (max-width: 360px) {
  .feature-group dl > div { grid-template-columns: 1fr; gap: .1rem; }
}
