.downloads-hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background:
    linear-gradient(100deg, rgba(6, 8, 13, 0.94) 0%, rgba(10, 14, 22, 0.74) 44%, rgba(12, 15, 21, 0.84) 100%),
    url("/assets/img/hero-home-bg.webp") center top / cover no-repeat;
}

.downloads-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 139, 77, 0.24), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(85, 216, 139, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.downloads-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(12, 15, 21, 0), rgba(12, 15, 21, 0.95));
  pointer-events: none;
}

.downloads-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.downloads-hero-copy h1 {
  margin-bottom: 18px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1.06;
}

.downloads-lead {
  max-width: 760px;
  color: rgba(238, 242, 251, 0.84);
  font-size: 1.05rem;
}

.downloads-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.downloads-chip {
  padding: 10px 14px;
  border: 1px solid rgba(200, 139, 77, 0.18);
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.72);
  color: rgba(238, 242, 251, 0.84);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.downloads-hero-panel,
.download-card,
.downloads-note-card,
.downloads-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 139, 77, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.96), rgba(11, 15, 23, 0.92));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.downloads-hero-panel,
.download-card,
.downloads-note-card {
  padding: 28px;
}

.downloads-hero-panel::before,
.download-card::before,
.downloads-note-card::before,
.downloads-faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 139, 77, 0.84), transparent);
  opacity: 0.8;
}

.downloads-order-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: install-order;
  color: var(--color-text-soft);
}

.downloads-order-list li {
  position: relative;
  min-height: 38px;
  padding-left: 52px;
}

.downloads-order-list li::before {
  counter-increment: install-order;
  content: counter(install-order);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(200, 139, 77, 0.14);
  border: 1px solid rgba(200, 139, 77, 0.2);
  color: #f5d9bf;
  font-weight: 700;
}

.downloads-sequence {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.downloads-sequence-grid,
.downloads-notes-grid {
  display: grid;
  gap: 24px;
}

.downloads-sequence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
  align-items: stretch;
}

.downloads-notes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.download-card::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  color: rgba(200, 139, 77, 0.78);
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 18px rgba(200, 139, 77, 0.18);
}

.download-card:last-child::after {
  display: none;
}

.downloads-requirements-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(200, 139, 77, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(200, 139, 77, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.96), rgba(11, 15, 23, 0.92));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.downloads-requirements-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 139, 77, 0.84), transparent);
  opacity: 0.8;
}

.downloads-requirements-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 22px;
}

.downloads-requirements-head h3 {
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
}

.downloads-requirements-head p {
  color: var(--color-text-soft);
}

.downloads-requirements-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.downloads-requirements-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.downloads-requirements-table thead th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(200, 139, 77, 0.2);
  color: #f5d9bf;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.downloads-requirements-table tbody th,
.downloads-requirements-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.downloads-requirements-table tbody th {
  color: #f7ead9;
  font-weight: 600;
  white-space: nowrap;
}

.downloads-requirements-table tbody td {
  color: var(--color-text-soft);
}

.downloads-requirements-table tbody tr:last-child th,
.downloads-requirements-table tbody tr:last-child td {
  border-bottom: 0;
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.download-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(200, 139, 77, 0.12);
  border: 1px solid rgba(200, 139, 77, 0.18);
  color: #f5d9bf;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.download-step-badge {
  padding: 7px 12px;
  border: 1px solid rgba(85, 216, 139, 0.2);
  border-radius: 999px;
  background: rgba(85, 216, 139, 0.08);
  color: #b6f3cc;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-step-badge.is-optional {
  border-color: rgba(200, 139, 77, 0.2);
  background: rgba(200, 139, 77, 0.08);
  color: #f5d9bf;
}

.download-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(12, 16, 24, 0.62);
  color: var(--color-primary-strong);
  box-shadow: 0 0 24px rgba(200, 139, 77, 0.14);
  align-self: center;
}

.download-card-icon .icon {
  width: 28px;
  height: 28px;
}

.download-card h3,
.downloads-note-card h3 {
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
}

.download-card p,
.downloads-note-card p {
  color: var(--color-text-soft);
}

.download-card-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-soft);
  text-align: left;
}

.download-card-list li {
  position: relative;
  padding-left: 18px;
}

.download-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary-strong);
  box-shadow: 0 0 12px rgba(200, 139, 77, 0.42);
}

.download-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.download-card-actions-stacked {
  flex-direction: column;
}

.download-card-button {
  min-height: 56px;
  padding: 0 22px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card-button-primary {
  color: #fff7ef;
  background:
    linear-gradient(135deg, #b46830 0%, #d88443 42%, #7e441f 100%);
  box-shadow:
    0 18px 40px rgba(110, 60, 26, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 28px rgba(200, 139, 77, 0.3);
}

.download-card-button-secondary {
  color: #f5d9bf;
  background:
    linear-gradient(135deg, rgba(184, 116, 55, 0.16), rgba(66, 39, 18, 0.74)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(200, 139, 77, 0.2);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.download-card-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
  filter: saturate(0.7);
}

.download-card-footnote {
  min-height: 22px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.downloads-note-card {
  min-height: 100%;
}

.downloads-faq {
  background:
    radial-gradient(circle at top right, rgba(200, 139, 77, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.downloads-faq-list {
  display: grid;
  gap: 16px;
}

.downloads-faq-item {
  padding: 0;
}

.downloads-faq-item summary {
  position: relative;
  display: block;
  padding: 24px 58px 24px 26px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  list-style: none;
}

.downloads-faq-item summary::-webkit-details-marker {
  display: none;
}

.downloads-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--color-primary-strong);
  font-size: 1.4rem;
  font-weight: 700;
}

.downloads-faq-item[open] summary::after {
  content: "−";
}

.downloads-faq-answer {
  padding: 0 26px 24px;
  color: var(--color-text-soft);
}

.downloads-faq-answer p {
  margin: 0;
}

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

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

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

  .download-card::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .downloads-hero,
  .downloads-sequence,
  .downloads-notes,
  .downloads-faq {
    padding-top: 54px;
  }

  .downloads-sequence-grid,
  .downloads-notes-grid {
    grid-template-columns: 1fr;
  }

  .downloads-hero-panel,
  .download-card,
  .downloads-note-card,
  .downloads-requirements-card {
    padding: 22px;
  }

  .downloads-faq-item summary {
    padding: 22px 50px 22px 22px;
    font-size: 0.96rem;
  }

  .downloads-faq-answer {
    padding: 0 22px 22px;
  }
}
