:root {
  color-scheme: dark;
  --canvas: #0D0D10;
  --surface: #15151A;
  --panel: #1B1B22;
  --hover: #202029;
  --text: #F5F5F7;
  --muted: #A1A1AA;
  --brand: #7C3AED;
  --brand-hover: #8B5CF6;
  --brand-light: #A78BFA;
  --line: #303039;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

:where(h1, h2, h3, p, figure) {
  margin: 0;
}

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

button, input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1220px, calc(100% - 2 * clamp(24px, 5vw, 76px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--brand);
  transform: translateY(-150%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.publisher {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .045em;
  line-height: 1.65;
}

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.header-links a {
  padding-block: 12px;
}

.header-links a:hover, .text-button:hover {
  color: var(--text);
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 70px);
  padding-block: clamp(38px, 6vw, 86px) clamp(40px, 5.5vw, 76px);
}

.product-mark {
  display: block;
  margin: 0 0 8px -7px;
}

h1 {
  font-size: clamp(54px, 6.2vw, 86px);
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.hero-description {
  margin-top: 18px;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.65;
}

.downloads {
  display: grid;
  gap: 10px;
  max-width: 370px;
  margin-top: 27px;
  scroll-margin-top: 24px;
}

.download {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: background-color .18s ease, border-color .18s ease;
}

.download:hover {
  border-color: var(--brand-light);
  background: var(--hover);
}

.download-label {
  display: grid;
  gap: 4px;
}

.download-label strong {
  font-size: 16px;
  font-weight: 650;
}

.download-label span {
  color: var(--muted);
  font-size: 12px;
}

.download-arrow {
  font-size: 24px;
  line-height: 1;
  color: var(--brand-light);
}

:root[data-platform="mac"] .download[data-platform="mac"],
:root[data-platform="windows"] .download[data-platform="windows"] {
  border-color: var(--brand);
  background: var(--brand);
}

:root[data-platform="mac"] .download[data-platform="mac"]:hover,
:root[data-platform="windows"] .download[data-platform="windows"]:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

:root[data-platform="mac"] .download[data-platform="mac"] :where(.download-arrow, .download-label span),
:root[data-platform="windows"] .download[data-platform="windows"] :where(.download-arrow, .download-label span) {
  color: #F5ECFF;
}

.release-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.share-link {
  display: none;
  justify-items: start;
  gap: 8px;
  margin-top: 10px;
}

.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--brand-light);
  font-size: 13px;
  text-underline-offset: 4px;
}

.text-button:hover {
  text-decoration: underline;
}

.share-link input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.share-link p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.share-link p:empty {
  display: none;
}

.product-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color .18s ease;
}

.preview-button:hover {
  border-color: var(--brand-light);
}

.product-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.install, .trial-notes {
  padding-block: 36px 50px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.install h2, .trial-notes h2 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.install-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  margin-top: 22px;
}

.install-platforms h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 650;
}

.install p, .trial-notes p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.install code {
  color: var(--text);
  font-size: .91em;
}

.install-next {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.fallback-link {
  color: var(--brand-light);
  font-size: 14px;
}

.fallback-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trial-intro {
  margin-block: 13px 16px;
}

.trial-detail {
  border-top: 1px solid var(--line);
}

.trial-detail summary {
  padding-block: 13px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
}

.trial-detail summary:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 4px;
}

.trial-detail-body {
  display: grid;
  gap: 8px;
  max-width: 82ch;
  padding-bottom: 16px;
}

.trial-detail-body a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trial-checksums {
  display: grid;
  gap: 10px;
  margin-block: 5px 0;
}

.trial-checksums dt {
  font-size: 13px;
  font-weight: 620;
}

.trial-checksums dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.image-dialog {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
}

.image-dialog::backdrop {
  background: rgb(8 8 11 / 84%);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  font-size: 15px;
}

.close-button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 13px;
}

.close-button:hover {
  border-color: var(--brand-light);
}

.image-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 86px);
  object-fit: contain;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .share-link {
    display: grid;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0 16px;
    padding-block: 10px;
  }

  .publisher, .header-links {
    font-size: 12px;
  }

  .header-links a {
    padding-block: 6px;
  }

  .hero-description {
    max-width: none;
    margin-top: 13px;
  }

  .install-platforms {
    grid-template-columns: 1fr;
    gap: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0s !important;
  }
}

.website-links {
  flex-wrap: wrap;
  gap: 0 clamp(12px, 1.6vw, 22px);
}

.website-links a[aria-current="page"] {
  color: var(--brand-light);
  box-shadow: inset 0 -2px var(--brand);
}

.section-links {
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 1150px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 16px;
    padding-block: 10px;
  }

  .website-links a {
    padding-block: 8px;
  }
}
