/* ==========================================================================
   rs9 — download.css
   Install hero with large animated mockup, numbered steps, device matrix,
   QR block, safety notes.
   ========================================================================== */

.dhero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(30px, 5vw, 58px));
  padding-bottom: clamp(34px, 4.4vw, 66px);
  overflow: hidden;
}
.dhero__aurora {
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 44% at 74% 18%, rgba(224, 26, 60, .34), transparent 62%),
    radial-gradient(38% 42% at 22% 30%, rgba(231, 199, 122, .16), transparent 64%),
    radial-gradient(46% 48% at 56% 92%, rgba(142, 11, 34, .28), transparent 66%);
  filter: blur(26px);
  animation: auroraDrift 22s var(--ease-in-out) infinite alternate;
}
.dhero__inner { display: grid; gap: clamp(34px, 5vw, 58px); align-items: center; }
@media (min-width: 1024px) {
  .dhero__inner { grid-template-columns: 1.02fr .98fr; }
  .dhero__device { order: 2; }
}

.dhero__version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(43, 217, 124, .08);
  border: 1px solid rgba(43, 217, 124, .3);
  font-size: var(--fs-xs);
  color: #7EE8AE;
  margin-bottom: var(--s-5);
}
.dhero__version b { color: #B7F5D2; font-family: var(--f-display); }

/* file facts strip */
.dfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: var(--s-6);
  background: var(--a-white-hair);
  border: 1px solid var(--a-gold-hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .dfacts { grid-template-columns: repeat(4, 1fr); } }
.dfact { padding: clamp(14px, 1.8vw, 20px); background: rgba(7, 8, 13, .8); text-align: center; }
.dfact__k { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-faint); }
.dfact__v { margin-top: 6px; font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 700; color: var(--c-gold); }

/* ---- install steps ---- */
.isteps { display: grid; gap: clamp(16px, 2vw, 22px); counter-reset: ist; }
@media (min-width: 768px) { .isteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .isteps { grid-template-columns: repeat(3, 1fr); } }

.istep {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--g-panel);
  border: 1px solid var(--a-white-hair);
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
}
.istep:hover { border-color: var(--a-gold-line); transform: translateY(-5px); box-shadow: var(--sh-md), var(--glow-gold-sm); }
.istep__n {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--f-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 199, 122, .18);
  pointer-events: none;
}
.istep__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: var(--s-4);
  color: var(--c-gold);
  background: linear-gradient(150deg, rgba(224, 26, 60, .2), rgba(231, 199, 122, .1));
  border: 1px solid var(--a-gold-hair);
}
.istep__icon svg { width: 24px; height: 24px; }
.istep__title { font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 700; }
.istep__text { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.74; }
.istep__tip {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--a-white-hair);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  line-height: 1.6;
}
.istep__tip b { color: var(--c-gold); }

/* ---- compatibility matrix ---- */
.compat {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
@media (min-width: 768px) { .compat { grid-template-columns: repeat(2, 1fr); } }

.compat__card {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--g-panel);
  border: 1px solid var(--a-white-hair);
}
.compat__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.compat__head svg { width: 26px; height: 26px; color: var(--c-gold); flex: none; }
.compat__head h3 { font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 700; }
.compat__rows { display: grid; gap: 1px; background: var(--a-white-hair); border-radius: var(--r-sm); overflow: hidden; }
.compat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px 15px;
  background: rgba(5, 6, 10, .6);
  font-size: var(--fs-sm);
}
.compat__row span { color: var(--c-text-muted); }
.compat__row b { font-family: var(--f-display); color: var(--c-text); font-weight: 650; text-align: right; }

/* ---- QR block ---- */
.qrblock {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--a-gold-hair);
  background:
    radial-gradient(80% 110% at 8% 0%, rgba(231, 199, 122, .14), transparent 58%),
    linear-gradient(155deg, rgba(29, 33, 44, .92), rgba(7, 8, 13, .97));
}
@media (min-width: 768px) { .qrblock { grid-template-columns: auto 1fr; } }
.qrblock__code {
  position: relative;
  width: 178px;
  height: 178px;
  margin-inline: auto;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--c-text);
  box-shadow: var(--glow-gold-sm);
}
.qrblock__code::before {
  content: '';
  position: absolute;
  inset: 14px;
  background:
    repeating-conic-gradient(var(--c-void) 0% 25%, var(--c-text) 0% 50%) 0 0 / 15px 15px;
}
.qrblock__code::after {
  content: 'rs9';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--c-void);
  border: 3px solid var(--c-text);
  color: var(--c-gold);
  font-family: var(--f-display);
  font-size: .84rem;
  font-weight: 800;
}
.qrblock__scan {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
}
.qrblock__scan::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(224, 26, 60, .55), transparent);
  animation: qrScan 2.6s var(--ease-in-out) infinite;
}
@keyframes qrScan {
  0%, 100% { transform: translateY(-40%); }
  50% { transform: translateY(230%); }
}

/* ---- safety strip ---- */
.safety {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
}
@media (min-width: 768px) { .safety { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .safety { grid-template-columns: repeat(4, 1fr); } }
.safety__item {
  display: flex;
  gap: var(--s-3);
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--r-md);
  background: rgba(13, 15, 22, .8);
  border: 1px solid var(--a-white-hair);
  transition: border-color var(--t-med) var(--ease-out);
}
.safety__item:hover { border-color: var(--a-gold-line); }
.safety__item svg { width: 22px; height: 22px; color: var(--c-gold); flex: none; margin-top: 2px; }
.safety__item h3 { font-family: var(--f-display); font-size: var(--fs-sm); font-weight: 650; }
.safety__item p { margin-top: 6px; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.68; }

@media (prefers-reduced-motion: reduce) {
  .qrblock__scan::after { animation: none; opacity: 0; }
}
