/* ============================================================================
   ASTRUBIA — Download / cliente para Windows
   ========================================================================== */

/* ---- hero ---------------------------------------------------------------- */
.dl-hero {
  position: relative;
  isolation: isolate;
  min-height: min(43rem, 78svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: clamp(7rem, 11vw, 9rem);
  padding-bottom: 0;
}

.dl-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #2d1a09;
  background-image: url('/img/art/download-hero.jpg');
  background-size: cover;
  background-position: center 43%;
  filter: saturate(1.22) contrast(1.05);
  transform: scale(1.015);
}

.dl-hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 28rem at 75% 46%, rgba(255, 180, 51, .12), transparent 70%),
    linear-gradient(90deg, rgba(3, 24, 20, .94) 0%, rgba(4, 32, 27, .76) 43%, rgba(34, 18, 5, .13) 80%),
    linear-gradient(0deg, #061a17 0%, rgba(6, 26, 23, .12) 47%, rgba(4, 15, 13, .44) 100%);
}

.dl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(32rem 23rem at 22% 58%, rgba(15, 131, 109, .2), transparent 72%),
    linear-gradient(115deg, rgba(1, 39, 32, .23), transparent 54%);
}

.dl-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 11rem;
  pointer-events: none;
  background: linear-gradient(to top, #061a17, transparent);
}

.dl-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .56fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
  padding-bottom: clamp(7rem, 11vw, 9rem);
}

.dl-hero-content::before { content: none; }

.dl-hero-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 48rem;
}

.dl-title {
  max-width: 11ch;
  font-size: clamp(3.8rem, 7.2vw, 6.9rem);
  line-height: .87;
  letter-spacing: -.035em;
  text-shadow: 0 8px 38px rgba(0, 0, 0, .58);
}

.dl-sub {
  max-width: 42rem;
  color: rgba(248, 242, 222, .84);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.58;
  text-wrap: balance;
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: .25rem;
}

.dl-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .2rem;
}

.dl-hero-badges .badge,
.dl-hero-badges .status-pill {
  min-height: 1.85rem;
  display: inline-flex;
  align-items: center;
  background: rgba(3, 17, 15, .58);
  backdrop-filter: blur(8px);
}

.dl-hero-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 1.5rem 1.3rem 1.6rem;
  border: 1px solid rgba(255, 212, 90, .48);
  border-radius: 26px 6px 26px 6px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 198, 58, .17), transparent 56%),
    linear-gradient(145deg, rgba(59, 39, 13, .84), rgba(5, 43, 36, .88));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38), inset 0 0 40px rgba(255, 201, 55, .04);
  backdrop-filter: blur(12px);
  text-align: center;
  transform: rotate(1.2deg);
}

.dl-hero-mark::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 212, 90, .15);
  border-radius: 18px 3px 18px 3px;
  pointer-events: none;
}

.dl-hero-mark > span,
.dl-hero-mark > small {
  position: relative;
  color: var(--gold-400);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dl-hero-mark > strong {
  position: relative;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dl-hero-mark > small {
  color: rgba(247, 241, 220, .58);
  letter-spacing: .11em;
}

.dl-hero-mark-icon {
  position: relative;
  width: 6rem;
  height: 6rem;
  display: grid;
  place-items: center;
  margin: .2rem 0;
  border: 1px solid rgba(255, 212, 90, .42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 221, 113, .16), transparent 58%),
    rgba(3, 24, 20, .54);
  box-shadow: 0 0 0 6px rgba(255, 212, 90, .06), 0 0 30px rgba(255, 191, 32, .14);
}

.dl-hero-mark-icon svg {
  width: 3.4rem;
  height: 3.4rem;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 194, 40, .24));
}

/* ---- área principal ------------------------------------------------------- */
.dl-main {
  position: relative;
  z-index: 3;
  margin-top: -5.2rem;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.dl-main-inner {
  display: grid;
  gap: 1.2rem;
  max-width: none;
  margin-inline: auto;
}

.dl-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 212, 90, .3);
  border-radius: 18px 5px 18px 5px;
  background: rgba(8, 39, 33, .94);
  box-shadow: 0 26px 58px -30px rgba(0, 0, 0, .85), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

.dl-benefit {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem clamp(.9rem, 2.4vw, 1.5rem);
}

.dl-benefit + .dl-benefit {
  border-left: 1px solid rgba(240, 228, 200, .1);
}

.dl-benefit > span {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 90, .38);
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(255, 212, 90, .06);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
}

.dl-benefit > span svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-benefit > div {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.dl-benefit strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .035em;
}

.dl-benefit small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: .79rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.5rem, 10.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 4.5vw, 3.4rem);
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 212, 90, .3);
  border-radius: 22px 7px 22px 7px;
  background:
    radial-gradient(32rem 18rem at 100% 100%, rgba(255, 177, 43, .09), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 44%),
    linear-gradient(120deg, #0e3a30, #09251f 62%, #152b21);
  box-shadow: 0 32px 70px -34px rgba(0, 0, 0, .88), inset 0 1px rgba(255, 255, 255, .04);
}

.dl-card::after {
  content: 'PC';
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  z-index: -1;
  transform: translateY(-50%);
  color: rgba(255, 212, 90, .035);
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 1;
}

.dl-card-icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 90, .48);
  border-radius: 22px 6px 22px 6px;
  color: var(--gold-300);
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 215, 92, .11), transparent 42%),
    linear-gradient(145deg, #164a3c, #081f1b);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, .3), 0 18px 36px -20px rgba(255, 184, 31, .4);
}

.dl-card-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 212, 90, .12);
  border-radius: 14px 3px 14px 3px;
}

.dl-card-icon svg { width: 46%; }

.dl-card-body {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.dl-card-title {
  color: var(--text-strong);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: .045em;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin: 0;
}

.dl-meta-item {
  display: grid;
  gap: .06rem;
  align-content: start;
  padding-left: .8rem;
  border-left: 2px solid rgba(255, 212, 90, .38);
}

.dl-meta-item dt {
  color: var(--text-faint);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dl-meta-item dd {
  margin: 0;
  color: var(--gold-200);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: .15rem;
}

.dl-btn-main {
  min-width: min(100%, 18rem);
  justify-content: center;
}

.dl-note {
  flex-basis: 100%;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: .94rem;
}

.dl-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  padding-top: .15rem;
}

.dl-alt-label {
  color: var(--text-faint);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dl-fineprint {
  color: var(--text-faint);
  font-size: .9rem;
  text-align: center;
}

/* ---- instalação ----------------------------------------------------------- */
.dl-how {
  position: relative;
  overflow: hidden;
}

.dl-how-body {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(38rem 24rem at 50% 0%, rgba(255, 181, 43, .08), transparent 72%),
    linear-gradient(to bottom, #112d24, #061a17);
}

.dl-how-body::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 90, .42), transparent);
}

.dl-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.3rem);
  margin: 0;
  padding: 0;
}

.dl-step {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .65rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(240, 228, 200, .11);
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .032), transparent 50%),
    rgba(7, 31, 27, .72);
  box-shadow: 0 18px 38px -28px rgba(0, 0, 0, .9);
  text-align: left;
}

.dl-step + .dl-step::before { content: none; }

.dl-step::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: .55;
}

.dl-step-marker {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: .35rem;
}

.dl-step-marker::before {
  content: '';
  position: absolute;
  inset: .35rem;
  transform: rotate(45deg);
  border: 1px solid var(--gold-500);
  border-radius: 5px;
  background: linear-gradient(145deg, #19483a, #09241f);
  box-shadow: 0 0 18px rgba(255, 191, 33, .14);
}

.dl-step-marker span {
  position: relative;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 800;
}

.dl-step-title {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.dl-step-text {
  color: var(--text-muted);
  line-height: 1.5;
}

.dl-step-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .35rem;
  color: var(--gold-400);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dl-step-link:hover { color: var(--gold-200); }
.dl-step-link svg { transition: transform .2s ease; }
.dl-step-link:hover svg { transform: translateX(4px); }

/* ---- requisitos ----------------------------------------------------------- */
.dl-req {
  position: relative;
  isolation: isolate;
}

.dl-req::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44rem 28rem at 10% 25%, rgba(121, 202, 71, .08), transparent 70%),
    radial-gradient(40rem 25rem at 90% 80%, rgba(24, 184, 207, .07), transparent 70%);
}

.dl-req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 1.8rem);
  align-items: stretch;
  max-width: 68rem;
  margin-inline: auto;
}

.dl-req-panel {
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .028), transparent 50%),
    linear-gradient(180deg, rgba(14, 54, 44, .88), rgba(7, 29, 25, .94));
}

.dl-req-panel--rec {
  border-color: rgba(255, 212, 90, .5);
  box-shadow: 0 24px 56px -34px rgba(255, 181, 31, .35), var(--shadow-panel);
}

.dl-req-head {
  display: grid;
  gap: .15rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(240, 228, 200, .12);
}

.dl-req-title {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dl-req-panel--rec .dl-req-title { color: var(--gold-300); }

.dl-req-hint {
  color: var(--text-faint);
  font-size: .88rem;
  font-style: italic;
}

.dl-spec {
  display: grid;
  margin: 0;
}

.dl-spec-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .65rem;
  border-bottom: 1px solid rgba(240, 228, 200, .08);
}

.dl-spec-row:last-child { border-bottom: 0; padding-bottom: 0; }

.dl-spec-row dt {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-faint);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dl-spec-row dt svg {
  flex: none;
  color: var(--gold-500);
}

.dl-spec-row dd {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin: 0;
  color: var(--parch-100);
  font-size: .94rem;
  font-weight: 500;
  text-align: right;
}

.dl-spec-row dd::before {
  content: '';
  flex: 1 0 1.5rem;
  border-top: 1px dotted rgba(255, 212, 90, .26);
}

/* ---- chamada final -------------------------------------------------------- */
.dl-call {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.dl-call-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ink-850);
  background-image: url('/img/art/universo-dungeon.jpg');
  background-size: cover;
  background-position: center 45%;
  filter: saturate(1.15);
}

.dl-call-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 27, 22, .92), rgba(5, 30, 25, .62), rgba(34, 18, 6, .45)),
    linear-gradient(to bottom, var(--ink-900), transparent 30%, transparent 70%, var(--ink-900));
}

.dl-call-inner {
  display: grid;
  justify-items: start;
  gap: .85rem;
  text-align: left;
}

.dl-call-inner .lead { max-width: 44rem; }

.dl-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .55rem;
}

#baixar,
#como-instalar,
#requisitos { scroll-margin-top: 90px; }

/* ---- responsivo ----------------------------------------------------------- */
@media (max-width: 900px) {
  .dl-hero-content {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 2rem;
  }

  .dl-hero-mark { padding-inline: 1rem; }
  .dl-benefit small { white-space: normal; }
}

@media (max-width: 760px) {
  .dl-hero {
    min-height: 39rem;
    padding-top: 6.5rem;
  }

  .dl-hero-art { background-position: 57% center; }

  .dl-hero-art::after {
    background:
      linear-gradient(90deg, rgba(3, 24, 20, .92), rgba(4, 32, 27, .42)),
      linear-gradient(0deg, #061a17 0%, rgba(6, 26, 23, .14) 54%, rgba(4, 15, 13, .46) 100%);
  }

  .dl-hero-content {
    grid-template-columns: 1fr;
    padding-bottom: 7.4rem;
  }

  .dl-title { font-size: clamp(3.25rem, 14vw, 5rem); }
  .dl-hero-mark { display: none; }

  .dl-benefits { grid-template-columns: 1fr; }
  .dl-benefit + .dl-benefit {
    border-left: 0;
    border-top: 1px solid rgba(240, 228, 200, .1);
  }

  .dl-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dl-card-icon { width: 7.5rem; }
  .dl-card::after { right: 1rem; top: 3.5rem; transform: none; }
  .dl-req-grid { grid-template-columns: 1fr; max-width: 35rem; }
}

@media (max-width: 680px) {
  .dl-steps {
    grid-template-columns: 1fr;
    max-width: 35rem;
    margin-inline: auto;
  }

  .dl-step {
    grid-template-columns: 3rem 1fr;
    column-gap: 1rem;
  }

  .dl-step-marker { grid-column: 1; grid-row: 1 / span 3; }
  .dl-step-title,
  .dl-step-text,
  .dl-step-link { grid-column: 2; }
}

@media (max-width: 520px) {
  .dl-hero-copy { gap: .85rem; }
  .dl-title { font-size: clamp(3rem, 15.7vw, 4.15rem); }
  .dl-sub { font-size: .98rem; line-height: 1.48; }

  .dl-hero-actions,
  .dl-actions,
  .dl-alt,
  .dl-call-actions { width: 100%; }

  .dl-hero-actions .btn,
  .dl-actions .btn,
  .dl-actions .dl-btn-main,
  .dl-alt .btn,
  .dl-call-actions .btn { width: 100%; }

  .dl-card { padding: 1.35rem 1rem 1.55rem; }

  .dl-spec-row {
    display: grid;
    gap: .25rem;
    justify-items: start;
  }

  .dl-spec-row dd {
    justify-content: flex-start;
    padding-left: 1.55rem;
    text-align: left;
  }

  .dl-spec-row dd::before { display: none; }

  .dl-call-inner {
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-hero-art { transform: none; }
  .dl-step-link svg { transition: none; }
}

/* ---- refatoracao de densidade -------------------------------------------- */
.dl-hero {
  min-height: 14.625rem;
  align-items: end;
  padding: 4.625rem 0 0;
}
.dl-hero::after { height: 4rem; }
.dl-hero-content {
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  align-items: center;
  min-height: 10rem;
  gap: 0;
  padding-bottom: 0;
}
.dl-hero-copy { gap: var(--space-2); max-width: 46rem; }
.dl-title {
  max-width: none;
  font-size: var(--type-page-title);
  line-height: 1.02;
  letter-spacing: 0;
}
.dl-sub { font-size: var(--type-body); line-height: 1.55; }
.dl-hero-actions,
.dl-hero-badges { display: none; }
.dl-hero-mark {
  width: 17.5rem;
  min-height: 5rem;
  display: grid;
  align-content: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  box-shadow: none;
  transform: none;
}
.dl-hero-mark::before,
.dl-hero-mark-icon { display: none; }
.dl-hero-mark > strong { font-size: var(--type-card-title); }
.dl-main { margin-top: 0; padding: var(--space-4) 0 var(--space-16); }
.dl-main-inner { gap: var(--grid-gap); }
.dl-benefits { border-radius: var(--radius); box-shadow: none; }
.dl-benefit { gap: var(--space-2); padding: var(--space-2) var(--space-4); }
.dl-benefit > span { width: 1.5rem; height: 1.5rem; border: 0; background: none; }
.dl-benefit strong { font-family: var(--font-body); font-size: var(--type-body-small); }
.dl-benefit small { font-size: .75rem; }
.dl-card {
  width: 100%;
  padding: var(--card-space);
  border-radius: var(--radius);
  box-shadow: none;
}
.dl-card-icon { width: 4rem; height: 4rem; }
.dl-card-title { font-family: var(--font-body); font-size: var(--type-card-title); }
.dl-install,
.dl-req,
.dl-cta { padding-block: var(--section-space); }

@media (max-width: 760px) {
  .dl-hero { min-height: 13.625rem; padding-top: 4.625rem; }
  .dl-hero-content { grid-template-columns: 1fr; min-height: 9rem; padding-bottom: 0; }
  .dl-hero-mark { display: none; }
  .dl-title { font-size: clamp(2rem, 10vw, 2.5rem); }
  .dl-benefits { grid-template-columns: 1fr; }
  .dl-benefit + .dl-benefit { border-left: 0; border-top: 1px solid rgba(255, 212, 90, .12); }
}
