/* ==========================================================================
   DOWNLOADS PAGE
   ========================================================================== */

:root {
  --downloads-text: #f4f1ec;
  --downloads-accent: #c9ff00;
}

.downloads-body {
  min-height: 100vh;
  background: #111211;
  color: var(--downloads-text);
}

.downloads-page {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #050505 0%, #080909 48%, #111211 100%);
}

.downloads-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: #020303;
  color: var(--downloads-text);
}

.downloads-hero__background,
.downloads-hero__overlay,
.downloads-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.downloads-hero__background {
  z-index: -5;
  background: url("../assets/img/downhero.webp") center top / cover no-repeat;
  transform: scale(0.7);
}

.downloads-hero__overlay {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(2, 3, 3, 0.96) 0%, rgba(2, 3, 3, 0.70) 28%, rgba(2, 3, 3, 0.08) 53%, rgba(2, 3, 3, 0.52) 77%, rgba(2, 3, 3, 0.92) 100%),
    linear-gradient(180deg, rgba(2, 3, 3, 0.22) 0%, rgba(2, 3, 3, 0.02) 48%, #020303 100%);
}

.downloads-hero__noise {
  z-index: -3;
  opacity: 0.035;
  background: url("../assets/img/noise.png") center / 280px 280px repeat;
}

.downloads-header {
  color: var(--downloads-text);
}

.downloads-header .logo__image {
  filter: none;
}

.downloads-header .nav__link,
.downloads-header .language-btn,
.downloads-header .join-link {
  color: var(--downloads-text);
}

.downloads-header .nav__link::after {
  background: var(--downloads-accent);
}

.downloads-header .menu-btn {
  border-color: rgba(244, 241, 236, 0.62);
}

.downloads-header .menu-btn span {
  background: var(--downloads-text);
}

.downloads-header .menu-btn:hover {
  border-color: var(--downloads-accent);
}

.downloads-body .mobile-menu {
  background: rgba(2, 3, 3, 0.96);
}

.downloads-body .mobile-menu a[aria-current="page"] {
  color: var(--downloads-accent);
}

.downloads-hero__shell {
  position: relative;
  z-index: 10;
  min-height: calc(720px - var(--header-height));
  padding: clamp(74px, 7vw, 128px) clamp(56px, 6.45vw, 124px) 48px clamp(110px, 9.7vw, 186px);
  display: grid;
  grid-template-columns: minmax(470px, 0.92fr) minmax(320px, 1fr) minmax(220px, 0.48fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  column-gap: clamp(28px, 3vw, 58px);
}

.downloads-hero__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: clamp(20px, 2.8vw, 54px);
}

.downloads-hero__title {
  margin: 0;
  max-width: 710px;
  font-family: var(--font-display);
  font-size: clamp(66px, 5.9vw, 114px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

.downloads-hero__title span {
  color: var(--downloads-accent);
}

.downloads-hero__subtitle {
  margin-top: 26px;
  color: rgba(244, 241, 236, 0.90);
  font-size: clamp(18px, 1.32vw, 25px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.downloads-hero__stats {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  align-self: start;
  margin-top: 0;
  border-left: 1px solid rgba(244, 241, 236, 0.14);
}

.downloads-stat {
  min-height: 92px;
  padding: 15px 10px 15px 24px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 241, 236, 0.16);
}

.downloads-stat__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--downloads-accent);
  font-size: 19px;
}

.downloads-stat div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.downloads-stat small {
  color: rgba(244, 241, 236, 0.66);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.downloads-stat strong {
  margin-top: 7px;
  color: var(--downloads-text);
  font-size: clamp(30px, 2vw, 38px);
  line-height: 0.85;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.downloads-categories {
  grid-column: 1 / 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.downloads-categories button {
  min-width: 86px;
  height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 236, 0.82);
  border: 1px solid rgba(244, 241, 236, 0.18);
  border-radius: 4px;
  background: rgba(2, 3, 3, 0.56);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.downloads-categories button:hover {
  color: var(--downloads-text);
  border-color: rgba(201, 255, 0, 0.54);
}

.downloads-categories button.is-active {
  color: #050505;
  border-color: var(--downloads-accent);
  background: var(--downloads-accent);
}

html.downloads-motion-ready .downloads-hero__copy,
html.downloads-motion-ready .downloads-hero__stats,
html.downloads-motion-ready .downloads-categories {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

html.downloads-motion-ready.downloads-hero-visible .downloads-hero__copy,
html.downloads-motion-ready.downloads-hero-visible .downloads-hero__stats,
html.downloads-motion-ready.downloads-hero-visible .downloads-categories {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.85s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

html.downloads-motion-ready.downloads-hero-visible .downloads-hero__copy,
html.downloads-motion-ready.downloads-hero-visible .downloads-hero__stats,
html.downloads-motion-ready.downloads-hero-visible .downloads-categories {
  will-change: auto;
}

html.downloads-motion-ready.downloads-hero-visible .downloads-hero__stats { transition-delay: 0.15s; }
html.downloads-motion-ready.downloads-hero-visible .downloads-categories { transition-delay: 0.22s; }

@media (max-width: 1500px) {
  .downloads-header {
    grid-template-columns: 280px 1fr 230px;
  }

  .downloads-header .nav {
    gap: 22px;
  }

  .downloads-header .nav__link {
    font-size: 10px;
  }

  .downloads-hero__shell {
    grid-template-columns: minmax(420px, 0.95fr) minmax(220px, 0.8fr) minmax(205px, 0.45fr);
    padding-left: 124px;
    padding-right: 54px;
  }
}

@media (max-width: 1180px) {
  .downloads-hero {
    min-height: 820px;
  }

  .downloads-header .nav {
    display: none;
  }

  .downloads-header {
    grid-template-columns: 1fr auto;
  }

  .downloads-hero__shell {
    min-height: calc(820px - var(--header-height));
    padding: 66px 40px 42px 108px;
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-rows: 1fr auto;
  }

  .downloads-hero__copy { grid-column: 1; }
  .downloads-hero__stats { grid-column: 2; }
  .downloads-categories { grid-column: 1 / 3; }

  .downloads-hero__title {
    white-space: normal;
  }
}

@media (max-width: 780px) {
  .downloads-hero {
    min-height: 980px;
  }

  .downloads-header {
    padding: 0 18px;
  }

  .downloads-header .logo__symbol {
    width: 58px;
    height: 58px;
  }

  .downloads-header .logo__copy strong {
    font-size: 22px;
    letter-spacing: 6px;
  }

  .downloads-header .logo__copy small {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  .downloads-header .join-link,
  .downloads-header .language-btn {
    display: none;
  }

  .downloads-hero__shell {
    min-height: calc(980px - var(--header-height));
    padding: 56px 20px 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .downloads-hero__copy {
    padding-top: 18px;
  }

  .downloads-hero__title {
    font-size: clamp(54px, 16vw, 82px);
  }

  .downloads-hero__subtitle {
    font-size: 18px;
  }

  .downloads-hero__stats {
    width: min(100%, 430px);
    margin-left: auto;
    border-top: 1px solid rgba(244, 241, 236, 0.16);
  }

  .downloads-stat {
    min-height: 76px;
  }

  .downloads-categories {
    margin-top: auto;
    gap: 8px;
  }

  .downloads-categories button {
    min-width: calc(50% - 4px);
    height: 46px;
    padding: 0 12px;
  }
}

@media (max-width: 430px) {
  .downloads-header .logo__copy {
    display: none;
  }

  .downloads-header .header__right {
    gap: 10px;
  }

  .downloads-hero__shell {
    padding-top: 38px;
  }

  .downloads-hero__title {
    font-size: 52px;
  }
}

/* =========================================================
   FEATURED DOWNLOADS
========================================================= */

.downloads-featured {
  position: relative;
  z-index: 5;
  padding: clamp(28px, 2.4vw, 46px) clamp(22px, 5.5vw, 106px) clamp(34px, 3.1vw, 60px);
  background: transparent;
  color: var(--downloads-text);
}

.downloads-featured__shell {
  width: min(100%, 1710px);
  margin: 0 auto;
}

.downloads-toolbar {
  min-height: 58px;
  margin-bottom: clamp(24px, 2vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.downloads-search {
  position: relative;
  width: min(100%, 530px);
  height: 56px;
  display: block;
}

.downloads-search input {
  width: 100%;
  height: 100%;
  padding: 0 58px 0 22px;
  color: var(--downloads-text);
  border: 1px solid rgba(244, 241, 236, 0.15);
  border-radius: 5px;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  font: 600 12px/1 var(--font-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.downloads-search input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.downloads-search input::placeholder { color: rgba(244, 241, 236, 0.48); }
.downloads-search input:focus { border-color: rgba(201, 255, 0, 0.58); background: rgba(201, 255, 0, 0.025); }

.downloads-search__icon {
  position: absolute;
  right: 20px;
  top: 50%;
  color: rgba(244, 241, 236, 0.78);
  font-size: 17px;
  transform: translateY(-50%);
  transition: opacity 0.22s ease, transform 0.3s ease, color 0.25s ease;
  pointer-events: none;
}

.downloads-search.has-value .downloads-search__icon {
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}

.downloads-search__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.2);
  border-radius: 50%;
  color: var(--downloads-text);
  background: rgba(5, 6, 7, 0.74);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.downloads-search__clear[hidden] { display: none; }

.downloads-search__clear span {
  position: absolute;
  width: 11px;
  height: 1px;
  border-radius: 99px;
  background: currentColor;
}

.downloads-search__clear span:first-child { transform: rotate(45deg); }
.downloads-search__clear span:last-child { transform: rotate(-45deg); }

.downloads-search__clear:hover,
.downloads-search__clear:focus-visible {
  color: #080908;
  border-color: var(--downloads-accent);
  background: var(--downloads-accent);
  box-shadow: 0 0 18px rgba(201, 255, 0, 0.22);
  transform: translateY(-50%) rotate(90deg);
  outline: none;
}

.downloads-toolbar__right { display: flex; align-items: center; gap: 26px; }

.downloads-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 241, 236, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.downloads-sort__caption { white-space: nowrap; }

.downloads-sort__trigger {
  position: relative;
  min-width: 168px;
  min-height: 44px;
  padding: 0 42px 0 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--downloads-text);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.014);
  font-family: var(--font-main);
  line-height: 1;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.downloads-sort__trigger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 99px;
  background: var(--downloads-accent);
  box-shadow: 0 0 9px rgba(201, 255, 0, 0.34);
  opacity: 0.72;
}

.downloads-sort__trigger strong {
  font-size: 11px;
  font-weight: 700;
}

.downloads-sort__trigger > i {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--downloads-accent);
  font-size: 9px;
  transform: translateY(-50%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.downloads-sort__trigger:hover,
.downloads-sort__trigger:focus-visible,
.downloads-sort.is-open .downloads-sort__trigger {
  border-color: rgba(201, 255, 0, 0.52);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.022);
  box-shadow: 0 0 0 3px rgba(201, 255, 0, 0.035), 0 12px 35px rgba(0, 0, 0, 0.18);
  outline: none;
}

.downloads-sort.is-open .downloads-sort__trigger > i {
  transform: translateY(-50%) rotate(180deg);
}

.downloads-sort__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  width: 100%;
  min-width: 190px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 255, 0, 0.22);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 255, 0, 0.08), transparent 38%),
    rgba(7, 8, 9, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.downloads-sort__menu button {
  position: relative;
  width: 100%;
  min-height: 39px;
  padding: 0 34px 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(244, 241, 236, 0.58);
  background: transparent;
  font: 700 10px/1 var(--font-main);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.downloads-sort__menu button:hover,
.downloads-sort__menu button:focus-visible {
  color: var(--downloads-text);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
  outline: none;
}

.downloads-sort__menu button.is-selected {
  color: var(--downloads-accent);
  background: rgba(201, 255, 0, 0.06);
}

.downloads-sort__menu button > i {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 241, 236, 0.24);
  transform: translateY(-50%) rotate(45deg);
}

.downloads-sort__menu button.is-selected > i {
  border-color: var(--downloads-accent);
  background: var(--downloads-accent);
  box-shadow: 0 0 10px rgba(201, 255, 0, 0.32);
}

.downloads-view { display: flex; border: 1px solid rgba(244, 241, 236, 0.14); border-radius: 5px; overflow: hidden; }
.downloads-view button { width: 58px; height: 54px; display: grid; place-items: center; color: rgba(244, 241, 236, 0.52); border: 0; border-right: 1px solid rgba(244, 241, 236, 0.10); background: rgba(255, 255, 255, 0.012); cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.downloads-view button:last-child { border-right: 0; }
.downloads-view button.is-active { color: var(--downloads-accent); background: rgba(201, 255, 0, 0.055); }

.downloads-featured__header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.downloads-featured__header h2 {
  margin: 0;
  font: 600 clamp(18px, 1.18vw, 23px)/1 var(--font-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.downloads-featured__header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.downloads-featured__header-actions > span {
  color: rgba(244, 241, 236, 0.42);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.downloads-featured__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.downloads-featured__controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(244, 241, 236, 0.3);
  border-radius: 50%;
  color: rgba(244, 241, 236, 0.86);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.downloads-featured__controls button:hover:not(:disabled),
.downloads-featured__controls button:focus-visible:not(:disabled) {
  color: var(--downloads-accent);
  border-color: var(--downloads-accent);
  background: transparent;
  outline: none;
  transform: translateY(-2px);
}

.downloads-featured__controls button:disabled {
  opacity: 0.28;
  cursor: default;
  transform: none;
}

.downloads-featured__grid {
  --featured-columns: 4;
  --featured-gap: clamp(12px, 0.9vw, 18px);
  display: flex;
  gap: var(--featured-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  overflow-anchor: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  outline: none;
}

.downloads-featured__grid::-webkit-scrollbar { display: none; }

.downloads-featured__grid:focus-visible {
  outline: 1px solid rgba(201, 255, 0, 0.38);
  outline-offset: 7px;
}

.download-card {
  min-width: 0;
  min-height: 500px;
  flex: 0 0 calc((100% - (var(--featured-columns) - 1) * var(--featured-gap)) / var(--featured-columns));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 236, 0.14);
  border-radius: 6px;
  background: rgba(5, 6, 6, 0.96);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transform: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.download-card:hover,
.download-card:focus-within {
  border-color: rgba(201, 255, 0, 0.92);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.055), transparent 68%),
    rgba(5, 6, 6, 0.96);
  box-shadow:
    0 0 0 1px rgba(201, 255, 0, 0.08),
    0 0 22px rgba(201, 255, 0, 0.07);
  transform: none;
}

.download-card[hidden] { display: none !important; }

.download-card__media {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background: #080909;
}

.download-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(3, 4, 4, 0.72) 100%); pointer-events: none; }

.download-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  transform-origin: center center;
  filter: grayscale(0.72) contrast(1.08) brightness(0.76);
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.download-card:hover .download-card__media img,
.download-card:focus-within .download-card__media img {
  transform: scale(1.075) translateZ(0);
  filter: grayscale(0.18) contrast(1.12) brightness(1.04);
}
.download-card__badge { position: absolute; top: 13px; left: 13px; z-index: 3; padding: 6px 8px 5px; color: #050606; border-radius: 2px; background: var(--downloads-accent); font-size: 11px; line-height: 1; font-weight: 800; text-transform: uppercase; }

.download-card__body { flex: 1; padding: 18px 18px 14px; display: flex; flex-direction: column; }
.download-card__heading h3 { margin: 0 0 3px; font: 600 clamp(18px, 1.17vw, 23px)/1 var(--font-main); letter-spacing: 0.055em; text-transform: uppercase; }
.download-card__heading p { margin: 0; color: rgba(244, 241, 236, 0.48); font-size: 11px; line-height: 1.1; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.download-card__description { margin: 18px 0 20px; color: rgba(244, 241, 236, 0.68); font-size: 13px; line-height: 1.5; }
.download-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: rgba(244, 241, 236, 0.62); }
.download-card__meta span { min-width: 20px; font-size: 16px; }
.download-card__meta small { padding: 5px 7px 4px; border: 1px solid rgba(244, 241, 236, 0.12); border-radius: 3px; color: rgba(244, 241, 236, 0.54); font-size: 8px; line-height: 1; text-transform: uppercase; }

.download-card__action { min-height: 54px; padding: 0 18px; display: flex; align-items: center; gap: 12px; color: var(--downloads-accent); border-top: 1px solid rgba(244, 241, 236, 0.12); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: gap 0.22s ease, background 0.22s ease; }
.download-card__action:hover { gap: 16px; background: rgba(201, 255, 0, 0.025); }
.download-card__action i { font-size: 11px; }

.downloads-featured__grid[data-view="list"] {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  scroll-snap-type: none;
}
.downloads-featured__grid[data-view="list"] .download-card { min-height: 150px; display: grid; grid-template-columns: 210px minmax(0, 1fr) 150px; }
.downloads-featured__grid[data-view="list"] .download-card__media { aspect-ratio: auto; height: 100%; }
.downloads-featured__grid[data-view="list"] .download-card__body { padding: 20px 24px; }
.downloads-featured__grid[data-view="list"] .download-card__description { margin: 12px 0 15px; }
.downloads-featured__grid[data-view="list"] .download-card__action { min-height: 100%; justify-content: center; border-top: 0; border-left: 1px solid rgba(244, 241, 236, 0.12); }

.downloads-featured__empty { margin: 0; padding: 50px 20px; color: rgba(244, 241, 236, 0.52); border: 1px solid rgba(244, 241, 236, 0.12); text-align: center; text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 1380px) {
  .downloads-featured__grid { --featured-columns: 3; }
}

@media (max-width: 900px) {
  .downloads-toolbar { align-items: stretch; flex-direction: column; }
  .downloads-search { width: 100%; }
  .downloads-toolbar__right { justify-content: space-between; }
  .downloads-featured__grid { --featured-columns: 2; }
}

@media (max-width: 620px) {
  .downloads-featured { padding-left: 14px; padding-right: 14px; }
  .downloads-toolbar__right { align-items: flex-start; gap: 14px; }
  .downloads-sort { padding-top: 18px; }
  .downloads-view button { width: 50px; height: 48px; }
  .downloads-featured__header { align-items: flex-end; }
  .downloads-featured__header-actions { gap: 10px; }
  .downloads-featured__header-actions > span { display: none; }
  .downloads-featured__grid { --featured-columns: 1; }
  .downloads-featured__grid[data-view="list"] .download-card { min-height: 0; display: flex; }
  .downloads-featured__grid[data-view="list"] .download-card__media { aspect-ratio: 1 / 0.86; }
  .downloads-featured__grid[data-view="list"] .download-card__action { min-height: 54px; justify-content: flex-start; border-left: 0; border-top: 1px solid rgba(244, 241, 236, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .download-card {
    transition-duration: 180ms;
  }

  .download-card__media img,
  .download-card__action {
    transition-duration: 220ms;
  }
}

/* =========================================================
   BROWSE CATEGORIES
========================================================= */

.downloads-browse {
  position: relative;
  z-index: 5;
  padding: 0 clamp(22px, 5.5vw, 106px) clamp(34px, 3.2vw, 62px);
  color: var(--downloads-text);
  background: transparent;
}

.downloads-browse__shell {
  width: min(100%, 1710px);
  margin: 0 auto;
}

.downloads-browse__header {
  margin-bottom: clamp(15px, 1.1vw, 21px);
}

.downloads-browse__header h2 {
  margin: 0;
  font: 600 clamp(18px, 1.18vw, 23px)/1 var(--font-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.downloads-browse__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 0.9vw, 18px);
}

.download-category-card {
  position: relative;
  min-width: 0;
  min-height: clamp(106px, 7.1vw, 136px);
  padding: clamp(18px, 1.25vw, 24px) clamp(20px, 1.45vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.45vw, 28px);
  overflow: hidden;
  color: var(--downloads-text);
  border: 1px solid rgba(244, 241, 236, 0.13);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    rgba(10, 11, 11, 0.86);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.download-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 18% 50%, rgba(201, 255, 0, 0.09), transparent 34%);
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.download-category-card:hover,
.download-category-card:focus-visible,
.download-category-card.is-active {
  border-color: rgba(201, 255, 0, 0.48);
  background:
    linear-gradient(180deg, rgba(201, 255, 0, 0.025), rgba(255, 255, 255, 0.006)),
    rgba(10, 11, 11, 0.9);
  transform: translate3d(0, -2px, 0);
}

.download-category-card:hover::after,
.download-category-card:focus-visible::after,
.download-category-card.is-active::after {
  opacity: 1;
}

.download-category-card__icon {
  position: relative;
  z-index: 1;
  width: clamp(50px, 3.3vw, 64px);
  height: clamp(50px, 3.3vw, 64px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--downloads-accent);
  font-size: clamp(27px, 1.9vw, 37px);
  filter: drop-shadow(0 0 10px rgba(201, 255, 0, 0.28));
}

.download-category-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.download-category-card__copy strong {
  color: rgba(244, 241, 236, 0.95);
  font: 500 clamp(16px, 1.04vw, 20px)/1 var(--font-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-category-card__copy small {
  color: rgba(244, 241, 236, 0.52);
  font-size: clamp(9px, 0.58vw, 11px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.downloads-motion-ready .downloads-browse__header,
html.downloads-motion-ready .download-category-card {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

html.downloads-motion-ready.downloads-browse-visible .downloads-browse__header {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

html.downloads-motion-ready.downloads-browse-visible .download-category-card {
  opacity: 1;
  transform: none;
  animation: downloadsBrowseCardReveal 0.72s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(1) { animation-delay: 0.04s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(2) { animation-delay: 0.08s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(3) { animation-delay: 0.12s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(4) { animation-delay: 0.16s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(5) { animation-delay: 0.20s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(6) { animation-delay: 0.24s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(7) { animation-delay: 0.28s; }
html.downloads-motion-ready.downloads-browse-visible .download-category-card:nth-child(8) { animation-delay: 0.32s; }

@keyframes downloadsBrowseCardReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1120px) {
  .downloads-browse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .downloads-browse { padding-left: 14px; padding-right: 14px; }
  .downloads-browse__grid { grid-template-columns: 1fr; }
  .download-category-card { min-height: 98px; }
}

@media (prefers-reduced-motion: reduce) {
  html.downloads-motion-ready .downloads-browse__header,
  html.downloads-motion-ready .download-category-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   LATEST DOWNLOADS + POPULAR THIS MONTH
========================================================= */

.downloads-lists {
  position: relative;
  padding: clamp(12px, 1.1vw, 22px) clamp(28px, 5.45vw, 105px) clamp(30px, 2.8vw, 54px);
  color: var(--downloads-text);
  background: transparent;
}

.downloads-lists__shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 1fr);
  gap: clamp(12px, 0.85vw, 16px);
}

.downloads-list-panel {
  position: relative;
  min-width: 0;
  min-height: clamp(395px, 27vw, 50px);
  overflow: hidden;
  border: 1px solid rgba(244, 241, 236, 0.14);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%),
    rgba(5, 6, 6, 0.92);
}

.downloads-list-panel__header {
  padding: clamp(17px, 1.15vw, 22px) clamp(19px, 1.35vw, 26px) 12px;
}

.downloads-list-panel__header h2 {
  margin: 0;
  color: rgba(244, 241, 236, 0.95);
  font: 600 clamp(14px, 0.9vw, 17px)/1 var(--font-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.downloads-latest__table-wrap {
  padding: 0 clamp(17px, 1.25vw, 24px) 66px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 255, 0, 0.45) transparent;
}

.downloads-latest__table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  table-layout: fixed;
}

.downloads-latest__table th {
  padding: 6px 8px 11px;
  color: rgba(244, 241, 236, 0.46);
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.downloads-latest__table th:first-child { width: 45%; padding-left: 0; }
.downloads-latest__table th:nth-child(2) { width: 15%; }
.downloads-latest__table th:nth-child(3) { width: 12%; }
.downloads-latest__table th:nth-child(4) { width: 19%; }
.downloads-latest__table th:last-child { width: 9%; text-align: right; padding-right: 0; }

.downloads-latest__table td {
  padding: 10px 8px;
  color: rgba(244, 241, 236, 0.78);
  border-top: 1px solid rgba(244, 241, 236, 0.10);
  font-size: clamp(10px, 0.63vw, 12px);
  line-height: 1.2;
  white-space: nowrap;
}

.downloads-latest__table td:first-child { padding-left: 0; }
.downloads-latest__table td:last-child { padding-right: 0; text-align: right; }

.downloads-latest__item {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
}

.downloads-latest__item img {
  width: clamp(36px, 2.35vw, 45px);
  height: clamp(36px, 2.35vw, 45px);
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(244, 241, 236, 0.10);
  border-radius: 2px;
  filter: saturate(0.8) contrast(1.05);
}

.downloads-latest__item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.downloads-latest__item strong {
  overflow: hidden;
  color: rgba(244, 241, 236, 0.94);
  font-size: clamp(10px, 0.68vw, 13px);
  line-height: 1.1;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.downloads-latest__item small {
  color: rgba(244, 241, 236, 0.48);
  font-size: 9px;
  line-height: 1;
}

.downloads-latest__item:hover strong { color: var(--downloads-accent); }

.downloads-latest__download {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--downloads-accent);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.downloads-latest__download:hover {
  border-color: rgba(201, 255, 0, 0.35);
  background: rgba(201, 255, 0, 0.04);
}

.downloads-popular__list {
  margin: 0;
  padding: 0 clamp(17px, 1.25vw, 24px) 66px;
  list-style: none;
}

.downloads-popular__list li {
  min-height: clamp(52px, 3.7vw, 70px);
  display: grid;
  grid-template-columns: 30px clamp(38px, 2.5vw, 48px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 0.7vw, 13px);
  border-top: 1px solid rgba(244, 241, 236, 0.10);
}

.downloads-popular__rank {
  color: rgba(244, 241, 236, 0.38);
  font: 500 clamp(14px, 0.95vw, 18px)/1 var(--font-main);
  letter-spacing: 0.04em;
}

.downloads-popular__list img {
  width: clamp(38px, 2.5vw, 48px);
  height: clamp(38px, 2.5vw, 48px);
  display: block;
  object-fit: cover;
  border: 1px solid rgba(244, 241, 236, 0.10);
  border-radius: 2px;
  filter: saturate(0.82) contrast(1.05);
}

.downloads-popular__list button {
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
}

.downloads-popular__list strong {
  overflow: hidden;
  color: rgba(244, 241, 236, 0.93);
  font-size: clamp(10px, 0.68vw, 13px);
  line-height: 1.1;
  font-weight: 500;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.downloads-popular__list small {
  color: rgba(244, 241, 236, 0.46);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.downloads-popular__list button:hover strong { color: var(--downloads-accent); }

.downloads-popular__count {
  color: rgba(244, 241, 236, 0.88);
  font-size: clamp(10px, 0.67vw, 13px);
  line-height: 1;
  font-weight: 500;
}

.downloads-list-panel__link {
  position: absolute;
  left: clamp(18px, 1.3vw, 25px);
  bottom: clamp(16px, 1.1vw, 21px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--downloads-accent);
  font-size: clamp(9px, 0.56vw, 11px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: gap 0.22s ease, color 0.22s ease;
}

.downloads-list-panel__link:hover { gap: 18px; color: #dcff62; }
.downloads-list-panel__link i { font-size: 9px; }

html.downloads-motion-ready .downloads-list-panel {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

html.downloads-motion-ready.downloads-lists-visible .downloads-list-panel {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

html.downloads-motion-ready.downloads-lists-visible .downloads-list-panel:nth-child(2) {
  transition-delay: 0.08s;
}

@media (max-width: 1120px) {
  .downloads-lists__shell { grid-template-columns: 1fr; }
  .downloads-list-panel { min-height: 30px; }
}

@media (max-width: 680px) {
  .downloads-lists { padding-left: 14px; padding-right: 14px; }
  .downloads-latest__table-wrap { padding-left: 14px; padding-right: 14px; }
  .downloads-popular__list { padding-left: 14px; padding-right: 14px; }
  .downloads-list-panel { min-height: 420px; }
  .downloads-popular__list li { grid-template-columns: 27px 42px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html.downloads-motion-ready .downloads-list-panel,
  html.downloads-motion-ready.downloads-lists-visible .downloads-list-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   JOIN THE CREW
========================================================= */

.downloads-join {
  position: relative;
  z-index: 8;
  padding: clamp(16px, 1.15vw, 22px) clamp(18px, 3.45vw, 66px) clamp(24px, 1.8vw, 34px);
  color: var(--downloads-text);
  background: transparent;
}

.downloads-join__shell {
  position: relative;
  min-height: clamp(178px, 11.8vw, 226px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 1.06fr) minmax(230px, 0.82fr) auto;
  align-items: center;
  gap: clamp(26px, 3.1vw, 60px);
  padding: clamp(28px, 2.2vw, 42px) clamp(26px, 2.5vw, 48px);
  border: 1px solid rgba(201, 255, 0, 0.35);
  border-radius: 5px;
  background: rgba(6, 7, 7, 0.96);
  isolation: isolate;
}

.downloads-join__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.95) 0%, rgba(5, 6, 6, 0.72) 29%, rgba(5, 6, 6, 0.22) 54%, rgba(5, 6, 6, 0.76) 78%, rgba(5, 6, 6, 0.96) 100%),
    url("../assets/img/aboutline.webp") center 58% / cover no-repeat;
  filter: saturate(0.88) contrast(1.05);
}

.downloads-join__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 52%, rgba(201, 255, 0, 0.20), transparent 25%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.downloads-join__backdrop {
  position: absolute;
  left: 31%;
  bottom: -34%;
  z-index: -1;
  width: 42%;
  height: 118%;
  background: radial-gradient(ellipse at 50% 78%, rgba(201, 255, 0, 0.18), transparent 55%);
  pointer-events: none;
}

.downloads-join__copy {
  min-width: 0;
  max-width: 540px;
}

.downloads-join__copy h2 {
  margin: 0 0 clamp(12px, 1vw, 18px);
  color: rgba(244, 241, 236, 0.98);
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: clamp(36px, 3.1vw, 60px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.downloads-join__copy h2 span {
  color: var(--downloads-accent);
}

.downloads-join__copy p {
  max-width: 460px;
  margin: 0;
  color: rgba(244, 241, 236, 0.68);
  font-size: clamp(11px, 0.72vw, 14px);
  line-height: 1.65;
}

.downloads-join__benefits {
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 0.8vw, 15px);
  list-style: none;
}

.downloads-join__benefits li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(244, 241, 236, 0.76);
  font-size: clamp(15px, 0.64vw, 12px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.downloads-join__benefits i {
  color: var(--downloads-accent);
  font-size: 17px;
}

.downloads-join__button {
  min-width: clamp(150px, 9.2vw, 178px);
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #050606;
  border: 1px solid var(--downloads-accent);
  border-radius: 4px;
  background: var(--downloads-accent);
  box-shadow: 0 0 22px rgba(201, 255, 0, 0.13);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.downloads-join__button:hover,
.downloads-join__button:focus-visible {
  background: #dcff54;
  box-shadow: 0 0 28px rgba(201, 255, 0, 0.2);
  transform: translate3d(0, -2px, 0);
}

html.downloads-motion-ready .downloads-join__shell,
html.downloads-motion-ready .downloads-join__copy,
html.downloads-motion-ready .downloads-join__benefits li,
html.downloads-motion-ready .downloads-join__button {
  opacity: 0;
}

html.downloads-motion-ready .downloads-join__shell {
  transform: translate3d(0, 18px, 0);
}

html.downloads-motion-ready .downloads-join__copy,
html.downloads-motion-ready .downloads-join__benefits li,
html.downloads-motion-ready .downloads-join__button {
  transform: translate3d(0, 10px, 0);
}

html.downloads-motion-ready.downloads-join-visible .downloads-join__shell,
html.downloads-motion-ready.downloads-join-visible .downloads-join__copy,
html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li,
html.downloads-motion-ready.downloads-join-visible .downloads-join__button {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.52s ease,
    transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

html.downloads-motion-ready.downloads-join-visible .downloads-join__copy { transition-delay: 0.08s; }
html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li:nth-child(1) { transition-delay: 0.12s; }
html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li:nth-child(2) { transition-delay: 0.16s; }
html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li:nth-child(3) { transition-delay: 0.20s; }
html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li:nth-child(4) { transition-delay: 0.24s; }
html.downloads-motion-ready.downloads-join-visible .downloads-join__button { transition-delay: 0.18s; }

@media (max-width: 1080px) {
  .downloads-join__shell {
    grid-template-columns: minmax(250px, 1fr) minmax(200px, 0.8fr);
  }

  .downloads-join__button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .downloads-join {
    padding-left: 14px;
    padding-right: 14px;
  }

  .downloads-join__shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }

  .downloads-join__shell::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 6, 0.88), rgba(5, 6, 6, 0.82)),
      url("../assets/img/downhero.webp") center / cover no-repeat;
  }

  .downloads-join__button {
    grid-column: auto;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.downloads-motion-ready .downloads-join__shell,
  html.downloads-motion-ready .downloads-join__copy,
  html.downloads-motion-ready .downloads-join__benefits li,
  html.downloads-motion-ready .downloads-join__button,
  html.downloads-motion-ready.downloads-join-visible .downloads-join__shell,
  html.downloads-motion-ready.downloads-join-visible .downloads-join__copy,
  html.downloads-motion-ready.downloads-join-visible .downloads-join__benefits li,
  html.downloads-motion-ready.downloads-join-visible .downloads-join__button {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   DOWNLOAD FILE PREVIEW
========================================================= */

.download-card[data-download-preview] {
  cursor: pointer;
}

.download-card[data-download-preview]:focus-visible {
  outline: 1px solid var(--downloads-accent);
  outline-offset: 4px;
  border-color: rgba(201, 255, 0, 0.5);
}

.download-preview[hidden] {
  display: none !important;
}

body.download-preview-open {
  overflow: hidden;
}

.download-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 48px);
}

.download-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 3, 0.82);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.download-preview__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  overflow: auto;
  color: var(--downloads-text);
  border: 1px solid rgba(244, 241, 236, 0.16);
  border-radius: 7px;
  background: #080909;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 255, 0, 0.45) rgba(255, 255, 255, 0.04);
}

.download-preview.is-open .download-preview__backdrop,
.download-preview.is-open .download-preview__dialog {
  opacity: 1;
}

.download-preview.is-open .download-preview__dialog {
  transform: translate3d(0, 0, 0) scale(1);
}

.download-preview__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(244, 241, 236, 0.82);
  border: 1px solid rgba(244, 241, 236, 0.18);
  border-radius: 50%;
  background: rgba(5, 6, 6, 0.78);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-preview__close:hover,
.download-preview__close:focus-visible {
  color: #050606;
  border-color: var(--downloads-accent);
  background: var(--downloads-accent);
}

.download-preview__visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #050606;
}

.download-preview__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.download-preview__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5, 6, 6, 0.86) 100%),
    linear-gradient(90deg, transparent 70%, rgba(5, 6, 6, 0.38) 100%);
  pointer-events: none;
}

.download-preview__badge {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 3;
  padding: 7px 10px 6px;
  color: #050606;
  border-radius: 2px;
  background: var(--downloads-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.download-preview__content {
  min-width: 0;
  padding: clamp(34px, 3vw, 58px);
  display: flex;
  flex-direction: column;
}

.download-preview__header {
  padding-right: 48px;
}

.download-preview__header p {
  margin: 0 0 10px;
  color: var(--downloads-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-preview__header h2 {
  margin: 0;
  font: 700 clamp(34px, 3vw, 58px)/0.94 var(--font-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.download-preview__description {
  max-width: 650px;
  margin: 24px 0 28px;
  color: rgba(244, 241, 236, 0.7);
  font-size: 14px;
  line-height: 1.65;
}

.download-preview__facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 241, 236, 0.11);
  border-bottom: 1px solid rgba(244, 241, 236, 0.11);
}

.download-preview__facts > div {
  min-width: 0;
  padding: 17px 14px 16px;
  border-right: 1px solid rgba(244, 241, 236, 0.1);
}

.download-preview__facts > div:first-child {
  padding-left: 0;
}

.download-preview__facts > div:last-child {
  border-right: 0;
}

.download-preview__facts dt {
  margin-bottom: 8px;
  color: rgba(244, 241, 236, 0.38);
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.download-preview__facts dd {
  margin: 0;
  color: rgba(244, 241, 236, 0.9);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

.download-preview__columns {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.5vw, 44px);
}

.download-preview__columns h3 {
  margin: 0 0 15px;
  color: rgba(244, 241, 236, 0.92);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.download-preview__included ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.download-preview__included li {
  position: relative;
  padding-left: 17px;
  color: rgba(244, 241, 236, 0.64);
  font-size: 12px;
  line-height: 1.35;
}

.download-preview__included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--downloads-accent);
  box-shadow: 0 0 8px rgba(201, 255, 0, 0.28);
}

.download-preview__compatibility > p {
  margin: 0 0 17px;
  color: rgba(244, 241, 236, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.download-preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.download-preview__tags span {
  padding: 6px 8px 5px;
  color: rgba(244, 241, 236, 0.58);
  border: 1px solid rgba(244, 241, 236, 0.12);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.download-preview__footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.download-preview__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 241, 236, 0.42);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-preview__footer > span i {
  color: var(--downloads-accent);
}

.download-preview__download {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #050606;
  border: 1px solid var(--downloads-accent);
  border-radius: 3px;
  background: var(--downloads-accent);
  box-shadow: 0 0 22px rgba(201, 255, 0, 0.12);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.download-preview__download:hover,
.download-preview__download:focus-visible {
  background: #dcff54;
  box-shadow: 0 0 30px rgba(201, 255, 0, 0.2);
}

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

  .download-preview__visual {
    min-height: 300px;
    max-height: 360px;
  }

  .download-preview__visual-overlay {
    background: linear-gradient(180deg, transparent 46%, rgba(5, 6, 6, 0.86) 100%);
  }
}

@media (max-width: 620px) {
  .download-preview {
    padding: 10px;
  }

  .download-preview__dialog {
    max-height: calc(100vh - 20px);
  }

  .download-preview__visual {
    min-height: 230px;
    max-height: 260px;
  }

  .download-preview__content {
    padding: 28px 20px 24px;
  }

  .download-preview__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .download-preview__header h2 {
    font-size: clamp(31px, 12vw, 44px);
  }

  .download-preview__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-preview__facts > div:nth-child(2) {
    border-right: 0;
  }

  .download-preview__facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(244, 241, 236, 0.1);
  }

  .download-preview__facts > div:nth-child(3) {
    padding-left: 0;
  }

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

  .download-preview__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .download-preview__download {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-preview__backdrop,
  .download-preview__dialog {
    transition: none;
  }
}

[data-downloads-catalog] .download-card > .download-card__preview-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.download-card__preview-trigger:focus-visible {
  outline: 2px solid var(--downloads-accent, #c9ff00);
  outline-offset: -4px;
}

[data-downloads-catalog] .download-card > .download-card__action {
  position: relative;
  z-index: 5;
}

.download-card {
  position: relative;
}
