:root {
  color-scheme: light;
  --primary: #8a4ed1;
  --primary-deep: #4b2db5;
  --primary-soft: #e9e6ff;
  --accent: #b35be8;
  --success: #4c9a72;
  --canvas: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #f0f1f5;
  --text: #181a23;
  --muted: #646977;
  --border: rgba(37, 39, 52, 0.12);
  --border-strong: rgba(37, 39, 52, 0.2);
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --display: "Aptos Display", "Avenir Next", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--text);
  color: var(--panel);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 250, 0.92);
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 174px;
  height: auto;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.hero-grid {
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 72px 70px 0;
}

.release-label,
.section-kicker {
  margin: 0 0 18px;
  color: var(--primary-deep);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.release-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 5.15vw, 4.75rem);
  font-weight: 690;
  line-height: 0.99;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.hero-download {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 17px;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero-download:hover {
  background: var(--primary-deep);
}

.hero-download:active {
  transform: translateY(1px);
}

.hero-download svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-actions > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.format-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
}

.product-stage {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
  isolation: isolate;
}

.product-stage::before {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--primary-soft);
  content: "";
}

.product-stage__rule {
  position: absolute;
  top: 64px;
  right: -80px;
  left: 64px;
  height: 1px;
  background: var(--border-strong);
}

.product-stage__rule::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.product-stage__icon {
  width: min(72%, 360px);
  height: auto;
  filter: drop-shadow(0 28px 38px rgba(44, 31, 92, 0.18));
  transform: translateY(-12px);
}

.product-stage__caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.product-stage__caption strong {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

.download-section {
  padding: 100px 0 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading .section-kicker,
.capabilities .section-kicker {
  margin-bottom: 10px;
}

.section-heading h2,
.capabilities h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 680;
  line-height: 1.08;
}

.device-status {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(33, 30, 48, 0.055);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 78, 209, 0.34);
  box-shadow: 0 24px 54px rgba(44, 31, 92, 0.09);
}

.download-card.is-recommended {
  border-color: rgba(138, 78, 209, 0.5);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 24px 54px rgba(44, 31, 92, 0.1);
}

.download-card__topline {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.platform-mark {
  width: 34px;
  height: 34px;
  color: var(--text);
}

.platform-mark--windows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 5px;
}

.platform-mark--windows span {
  background: currentColor;
}

.platform-mark--mac svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.recommendation {
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.recommendation:not([hidden]) {
  display: inline-flex;
}

.download-card__eyebrow {
  margin: 0 0 4px;
  color: var(--primary-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-card h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.2;
}

.download-card__body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.package-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.package-meta div {
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--border);
}

.package-meta div:first-child {
  padding-left: 0;
}

.package-meta div:last-child {
  padding-right: 0;
  border-right: 0;
}

.package-meta dt,
.package-meta dd {
  margin: 0;
}

.package-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.package-meta dd {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 650;
}

.download-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.download-button:hover {
  background: var(--primary-deep);
}

.download-button:active {
  transform: translateY(1px);
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.file-details {
  margin-top: 18px;
}

.file-details summary {
  min-height: 44px;
  display: flex;
  cursor: pointer;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.file-details > dl {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--panel-2);
}

.file-details > dl > div + div {
  margin-top: 14px;
}

.file-details dt,
.file-details dd {
  margin: 0;
}

.file-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.file-details dd {
  overflow-wrap: anywhere;
}

.file-details code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.download-feedback {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--success);
  font-size: 14px;
  text-align: center;
}

.capabilities {
  padding: 110px 0;
  border-top: 1px solid var(--border);
  background: var(--text);
  color: #f5f3f8;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 80px;
  align-items: start;
}

.capabilities .section-kicker {
  color: #c9aaf0;
}

.capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-list strong {
  color: #c9aaf0;
  font-family: var(--mono);
  font-size: 13px;
}

.capability-list span {
  color: rgba(245, 243, 248, 0.72);
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.footer-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(138, 78, 209, 0.5);
  outline-offset: 3px;
}

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

  .hero-copy {
    padding: 72px 0 56px;
  }

  .product-stage {
    min-height: 360px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .product-stage__icon {
    width: min(46%, 250px);
  }

  .download-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: 148px;
  }

  .hero-copy {
    padding: 56px 0 48px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 16px;
  }

  .product-stage {
    min-height: 300px;
  }

  .product-stage::before {
    width: 260px;
    height: 260px;
  }

  .product-stage__rule {
    top: 40px;
    left: 24px;
  }

  .product-stage__caption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .download-section,
  .capabilities {
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .device-status {
    margin-top: 14px;
    text-align: left;
  }

  .download-card {
    padding: 22px;
  }

  .package-meta div {
    padding-right: 8px;
    padding-left: 8px;
  }

  .package-meta dd {
    font-size: 12px;
  }

  .capability-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
