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

:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: #121319;
  --panel-strong: #171922;
  --text: #f7f8fb;
  --muted: #a9afbd;
  --subtle: #747b8d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --purple: #7c3cff;
  --purple-soft: rgba(124, 60, 255, 0.16);
  --blue: #48b8ff;
  --green: #35d16f;
  --radius: 8px;
  --max: 980px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #0b0b10 0%, var(--bg) 620px, #090a0d 100%);
  background-size: auto, 48px 48px, 100% 100%;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

img, svg {
  display: block;
}

a {
  color: var(--text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

strong {
  color: var(--text);
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 56px;
  isolation: isolate;
}

.nav,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}

.eyebrow,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--purple-soft);
  color: #d9ccff;
  font-size: 13px;
  font-weight: 760;
}

.eyebrow {
  padding: 8px 12px;
}

.status {
  padding: 0;
  background: transparent;
  color: #d8ffdf;
}

.hero,
.section,
.panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 19, 25, 0.88);
  box-shadow: var(--shadow);
}

.section,
.panel.grid {
  box-shadow: none;
}

h1,
h2 {
  margin: 0;
  color: #fff;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
}

h2 {
  font-size: 24px;
  line-height: 1.12;
}

h1 + p,
h2 + p,
p + .meta {
  margin-top: 14px;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 0;
  max-width: 68ch;
  font-size: 16px;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.card p + ul {
  margin-top: 12px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--subtle);
  font-size: 14px;
}

.anchor {
  scroll-margin-top: 24px;
}

footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.center-page main {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 19, 25, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.download-redirect main {
  width: min(680px, 100%);
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.top img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.top .brand {
  display: block;
  font-size: 15px;
}

.body,
.downloads-body {
  padding: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn {
  border: 1px solid #884dff;
  background: linear-gradient(180deg, #884dff, #6828dc);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 60, 255, 0.25);
}

.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #f2f4f8;
}

.btn:hover,
.ghost:hover,
.download-link:hover {
  transform: translateY(-1px);
}

.meta.download-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.download-meta div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.download-meta strong,
.download-meta span {
  display: block;
}

.download-meta strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
}

.download-meta span {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.25;
}

.downloads-list .brand {
  margin: 30px 30px 0;
}

.downloads-list h1 {
  margin-top: 26px;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.download-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-link:hover,
.download-link:focus-visible {
  border-color: rgba(72, 184, 255, 0.5);
  background: rgba(72, 184, 255, 0.06);
  outline: none;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--purple-soft);
  color: #d9ccff;
}

.download-link strong,
.download-link span span {
  display: block;
}

.download-link strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.download-link span span {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.25;
}

.arrow {
  color: var(--subtle);
}

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

  .btn,
  .ghost,
  .download-link {
    transition: none;
  }
}

@media (max-width: 560px) {
  body {
    background-size: auto, 36px 36px, 100% 100%;
  }

  body.center-page {
    padding: 16px;
  }

  .shell {
    width: min(100% - 32px, var(--max));
    padding-top: 22px;
  }

  .hero,
  .section,
  .panel {
    padding: 22px;
  }

  .body,
  .downloads-body {
    padding: 24px;
  }

  .downloads-list .brand {
    margin: 24px 24px 0;
  }

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

  .btn,
  .ghost {
    width: 100%;
  }

  .download-link {
    grid-template-columns: 44px 1fr;
  }

  .arrow {
    display: none;
  }
}
