:root {
  color-scheme: dark;
  --bg: #050b18;
  --panel: rgba(13, 28, 58, 0.76);
  --panel-solid: #0d1c3a;
  --line: rgba(147, 178, 231, 0.14);
  --text: #f5f8ff;
  --muted: #91a4c8;
  --cyan: #62ddff;
  --blue: #4b80ff;
  --violet: #8b5cf6;
  --green: #52d9a1;
  --amber: #ffc964;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% -10%, rgba(75, 128, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 10% 38%, rgba(139, 92, 246, 0.11), transparent 29rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 24, 0.78);
  backdrop-filter: blur(22px);
}

.topbar__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  color: var(--cyan);
  font-weight: 450;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.topbar nav a:hover {
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(82, 217, 161, 0.2);
  border-radius: 999px;
  background: rgba(82, 217, 161, 0.08);
  color: #a9f4d2;
  font-size: 13px;
  font-weight: 650;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(82, 217, 161, 0.1);
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 11, 24, 0.88) 30%, rgba(5, 11, 24, 0.08) 72%),
    linear-gradient(0deg, var(--bg), transparent 35%);
  content: "";
}

.hero__media {
  position: absolute;
  inset: 0 0 0 26%;
  width: 74%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 112px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  background: linear-gradient(90deg, #ffffff 8%, #7be2ff 55%, #a889ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 555px;
  margin: 0 0 32px;
  color: #b5c3dc;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 720;
  transition: 160ms ease;
}

.button:hover {
  border-color: rgba(120, 211, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(110deg, var(--blue), var(--violet));
  box-shadow: 0 16px 44px rgba(75, 128, 255, 0.28);
}

.button svg {
  width: 18px;
  height: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

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

main {
  padding: 74px 0 110px;
}

.section + .section {
  margin-top: 78px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--muted);
}

.release-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.release-card > div {
  min-height: 128px;
  padding: 26px;
  background: var(--panel-solid);
}

.release-card__version {
  display: flex;
  align-items: center;
  gap: 18px;
}

.release-card__version .app-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
}

.release-card h3 {
  margin: 0 0 5px;
  font-size: 23px;
}

.release-card p,
.release-card small {
  margin: 0;
  color: var(--muted);
}

.release-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-value {
  font-size: 20px;
  font-weight: 760;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.platform-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 36, 75, 0.86), rgba(9, 20, 43, 0.92));
}

.platform-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--glow, rgba(75, 128, 255, 0.17));
  filter: blur(6px);
  content: "";
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 22px;
  font-weight: 820;
}

.platform-card h3 {
  margin: 28px 0 5px;
  font-size: 21px;
}

.platform-card p {
  min-height: 44px;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 14px;
}

.platform-card a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9ebff;
  font-weight: 720;
}

.platform-card a:hover {
  color: white;
}

.files-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 20, 44, 0.8);
}

.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search {
  display: flex;
  width: min(100%, 420px);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search input::placeholder {
  color: #7183a8;
}

.file-count {
  color: var(--muted);
  font-size: 13px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 120px 130px 48px;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover {
  background: rgba(94, 156, 255, 0.045);
}

.file-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(75, 128, 255, 0.13);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.file-name {
  overflow: hidden;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-path {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  color: var(--muted);
  font-size: 13px;
}

.download-link {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cyan);
}

.download-link:hover {
  background: rgba(98, 221, 255, 0.1);
}

.empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.docs-preview,
.docs-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.docs-preview {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  min-height: 360px;
}

.docs-preview__copy {
  padding: 34px;
}

.docs-preview__copy h3 {
  margin: 0 0 13px;
  font-size: 27px;
}

.docs-preview__copy p {
  margin: 0 0 26px;
  color: var(--muted);
}

.docs-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.docs-list {
  padding: 12px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 15px;
}

.doc-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.doc-item__icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 104, 124, 0.12);
  color: #ff8798;
  font-size: 12px;
  font-weight: 850;
}

.doc-item strong,
.doc-item small {
  display: block;
}

.doc-item small {
  margin-top: 2px;
  color: var(--muted);
}

.doc-item__arrow {
  margin-left: auto;
  color: var(--cyan);
}

.api-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(98, 221, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(75, 128, 255, 0.16), rgba(139, 92, 246, 0.11)),
    var(--panel-solid);
}

.api-banner h3 {
  margin: 0 0 7px;
  font-size: 25px;
}

.api-banner p {
  margin: 0;
  color: var(--muted);
}

footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner img {
  width: 34px;
  height: 34px;
  opacity: 0.84;
}

.footer-meta {
  text-align: right;
}

.footer-meta strong {
  display: block;
  color: #c7d4eb;
  font-size: 12px;
}

@media (max-width: 900px) {
  .topbar nav a:not(.status-pill) {
    display: none;
  }

  .release-card {
    grid-template-columns: 1fr 1fr;
  }

  .release-card > div:first-child {
    grid-column: 1 / -1;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .docs-grid,
  .docs-preview {
    grid-template-columns: 1fr;
  }

  .docs-preview img {
    max-height: 320px;
  }
}

@media (max-width: 650px) {
  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .topbar__inner {
    min-height: 66px;
  }

  .status-pill {
    padding: 7px 9px;
    font-size: 11px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__media {
    inset: 0;
    width: 100%;
    opacity: 0.6;
  }

  .hero::after {
    background:
      linear-gradient(90deg, var(--bg), rgba(5, 11, 24, 0.38)),
      linear-gradient(0deg, var(--bg) 5%, transparent 65%, rgba(5, 11, 24, 0.52));
  }

  .hero__content {
    padding: 90px 0 68px;
  }

  .hero h1 {
    font-size: 50px;
  }

  main {
    padding: 52px 0 80px;
  }

  .section + .section {
    margin-top: 58px;
  }

  .release-card,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .release-card > div:first-child {
    grid-column: auto;
  }

  .file-row {
    grid-template-columns: 1fr 38px;
  }

  .file-row .file-meta {
    display: none;
  }

  .files-toolbar,
  .section-heading,
  .api-banner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}
