/* ---------- Download page ---------- */

/* Hero (reusa .hero / .hero-logo da home) */

.download-hero {
  min-height: 0;
  margin: 0 0 8px;
  padding: 28px 0 8px;
}

.download-hero .hero-logo {
  width: min(100%, 420px);
  margin-bottom: 12px;
}

.download-hero p {
  margin-top: 10px;
  max-width: none;
}

.download-page {
  padding-bottom: 40px;
}

/* Layout */

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.download-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.download-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tabs */

.download-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(4, 8, 14, 0.72);
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.download-tab {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.download-tab:hover {
  color: var(--text);
}

.download-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(123, 60, 255, 0.55), rgba(90, 31, 224, 0.75));
  box-shadow: 0 0 16px rgba(123, 60, 255, 0.35);
}

/* Pack panel */

.download-pack-panel {
  padding: 24px;
  overflow: hidden;
}

.download-pack {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

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

.download-pack-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.download-crystal-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 60, 255, 0.45), transparent 70%);
  filter: blur(8px);
  animation: download-pulse 3.2s ease-in-out infinite;
}

.download-crystal {
  position: relative;
  width: 120px;
  filter: drop-shadow(0 12px 24px rgba(123, 60, 255, 0.45));
  animation: download-float 4s ease-in-out infinite;
}

.download-crystal svg {
  width: 120px;
  height: auto;
  display: block;
}

@keyframes download-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes download-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.download-pack-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4a0ff;
  margin-bottom: 10px;
}

.download-pack-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.download-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.download-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.82rem;
}

.download-feature-icon {
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.download-feature-icon svg {
  width: 16px;
  height: 16px;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(0, 0, 0, 0.28);
}

.download-meta dt {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.download-meta dd {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.download-cta-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.download-cta-icon svg {
  width: 18px;
  height: 18px;
}

.download-mirror {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: rgba(196, 160, 255, 0.9);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-mirror:hover {
  color: #fff;
}

/* Sidebar info */

.download-info,
.download-links {
  padding: 20px;
}

.download-info h2,
.download-links h2,
.download-requirements h2,
.download-install h2,
.download-trailer h2,
.download-verify h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.download-info ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.download-info-icon {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.download-info-icon svg {
  width: 16px;
  height: 16px;
}

.download-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 4px;
}

.download-info p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.download-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-links a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.download-links a:hover {
  border-color: rgba(123, 60, 255, 0.45);
  background: rgba(123, 60, 255, 0.12);
  box-shadow: 0 0 14px rgba(123, 60, 255, 0.18);
}

.download-link-icon,
.download-link-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
}

.download-link-icon svg,
.download-link-arrow svg {
  width: 16px;
  height: 16px;
}

.download-link-arrow {
  color: var(--muted);
}

/* Requirements */

.download-requirements {
  padding: 24px;
}

.download-reqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.download-reqs-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-reqs-col--min h3 {
  color: var(--gold-bright);
}

.download-reqs-col--rec h3 {
  color: #c4a0ff;
}

.download-reqs-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.25);
}

.download-reqs-badge svg {
  width: 15px;
  height: 15px;
}

.download-reqs-col dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-reqs-col dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.download-reqs-col dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.download-reqs-col dd {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}

/* Bottom grid */

.download-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.download-install,
.download-trailer,
.download-verify {
  padding: 22px 20px;
  min-height: 100%;
}

.download-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.download-steps li {
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.download-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.download-step-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #c4a0ff;
}

.download-step-icon svg {
  width: 18px;
  height: 18px;
}

.download-steps strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 4px;
}

.download-steps p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.download-trailer-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 6, 20, 0.35), rgba(2, 2, 10, 0.72)),
    url("../assets/background.png") center / cover no-repeat;
  box-shadow: inset 0 0 40px rgba(123, 60, 255, 0.18);
}

.download-trailer-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.download-trailer-play svg {
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, rgba(123, 60, 255, 0.85), rgba(90, 31, 224, 0.95));
  box-shadow: 0 0 28px rgba(123, 60, 255, 0.55);
  transition: transform 0.2s, filter 0.2s;
}

.download-trailer-media:hover .download-trailer-play svg {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.download-trailer p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.download-verify {
  text-align: center;
}

.download-verify-text {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.download-verify-art {
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.download-verify-shield {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #c4a0ff;
  background:
    radial-gradient(circle at 40% 30%, rgba(196, 160, 255, 0.25), transparent 55%),
    rgba(123, 60, 255, 0.14);
  border: 1px solid rgba(123, 60, 255, 0.45);
  box-shadow: 0 0 28px rgba(123, 60, 255, 0.28);
}

.download-verify-shield svg {
  width: 42px;
  height: 42px;
}

.download-verify-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.download-verify-btn.is-done {
  background: linear-gradient(180deg, rgba(60, 180, 120, 0.55), rgba(28, 120, 80, 0.85));
  border-color: rgba(90, 200, 140, 0.5);
}

.download-verify-status {
  margin-top: 12px;
  color: #8dffc0;
  font-size: 0.8rem;
  font-weight: 600;
}

.download-verify-last {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

/* Help banner */

.download-help {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, rgba(123, 60, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(88, 48, 150, 0.16), transparent 50%),
    radial-gradient(ellipse 85% 70% at 50% 45%, #0d1320 0%, #080c14 55%, #04060c 100%);
}

.download-help-glow {
  position: absolute;
  inset: auto -10% -50% 40%;
  height: 120%;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, rgba(123, 60, 255, 0.28), transparent 60%);
}

.download-help-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.download-help h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.download-help p {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-help-btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid rgba(123, 60, 255, 0.7);
  background: linear-gradient(180deg, rgba(123, 60, 255, 0.5), rgba(90, 31, 224, 0.8));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(123, 60, 255, 0.35);
  transition: filter 0.2s, box-shadow 0.2s;
}

.download-help-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(123, 60, 255, 0.5);
}

.download-help-btn-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.download-help-btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Responsive */

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

  .download-sidebar {
    order: 2;
  }

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

  .download-help {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .download-help-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .download-hero {
    padding: 20px 0 4px;
  }

  .download-hero .hero-logo {
    width: min(100%, 300px);
  }

  .download-pack {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-features {
    grid-template-columns: 1fr;
    text-align: left;
  }

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

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

  .download-reqs-col dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .download-tabs {
    width: 100%;
  }

  .download-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}
