/* ==========================================================================
   3RR Game — pages/download.css
   Launch-pad hero, QR sign panel, ascending flight-path stepper and the
   requirements table.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Launch-pad hero
   -------------------------------------------------------------------------- */
.pad-hero {
  position: relative;
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(4.5rem, 10vw, 7rem);
  overflow: hidden;
}

.pad-hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: start;
}

.pad-hero__title {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h1);
  line-height: 1.1;
}

.pad-hero__actions { margin: var(--space-md) 0; }

.pad-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
}

@media (min-width: 1200px) {
  .pad-hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* --------------------------------------------------------------------------
   QR sign — an illuminated panel bolted to the terrace wall
   -------------------------------------------------------------------------- */
.qr-sign {
  position: relative;
  display: grid;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border: 1px solid rgba(36, 235, 255, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(17, 33, 63, 0.92), rgba(5, 7, 15, 0.94));
  box-shadow: var(--shadow-card), 0 0 40px rgba(36, 235, 255, 0.12);
}

.qr-sign__panel {
  position: relative;
  flex: none;
  justify-self: start;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  box-shadow: 0 0 34px rgba(36, 235, 255, 0.4);
}

/* Neon tube framing the code. */
.qr-sign__panel::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(36, 235, 255, 0.6);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(36, 235, 255, 0.45), inset 0 0 12px rgba(36, 235, 255, 0.28);
  pointer-events: none;
  animation: qr-glow 4.2s var(--ease-in-out) infinite;
}

@keyframes qr-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.qr-sign__code {
  display: block;
  width: 118px;
  height: 118px;
}

.qr-sign__title {
  margin-bottom: 0.35rem;
  font-size: var(--fs-h4);
}

.qr-sign__text p {
  margin: 0 0 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.qr-sign__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.qr-sign__meta li { display: flex; align-items: center; gap: 0.35rem; }
.qr-sign__meta svg { width: 0.9rem; height: 0.9rem; fill: var(--color-cyan-neon); }

@media (min-width: 768px) {
  .qr-sign { grid-template-columns: auto 1fr; }
  .qr-sign__code { width: 138px; height: 138px; }
}

/* --------------------------------------------------------------------------
   Flight-path route — stops climbing the tower
   -------------------------------------------------------------------------- */
.route {
  position: relative;
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0 0 0 2.75rem;
  list-style: none;
  counter-reset: stop;
}

/* The route line itself. */
.route::before {
  content: '';
  position: absolute;
  left: 0.92rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(36, 235, 255, 0.65) 0%, rgba(30, 79, 208, 0.4) 55%, rgba(255, 196, 81, 0.55) 100%);
}

.route__stop { position: relative; }

.route__dot {
  position: absolute;
  left: -2.75rem;
  top: 1.35rem;
  z-index: 2;
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.35rem;
  border: 2px solid rgba(147, 166, 204, 0.45);
  border-radius: 50%;
  background: var(--color-night-sky);
  transition:
    border-color var(--dur-slow) var(--ease-out),
    background-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

/* Stops light up as they scroll into view. */
.route__stop.is-visible .route__dot {
  border-color: var(--color-cyan-neon);
  background: var(--color-cyan-neon);
  box-shadow: 0 0 16px var(--color-cyan-neon), 0 0 34px rgba(36, 235, 255, 0.5);
}

.route__stop:last-child.is-visible .route__dot {
  border-color: var(--color-gold);
  background: var(--color-gold);
  box-shadow: 0 0 16px var(--color-gold), 0 0 34px rgba(255, 196, 81, 0.5);
}

.route__card {
  position: relative;
  padding: var(--space-md);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(17, 33, 63, 0.86), rgba(7, 14, 32, 0.9));
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-slow) var(--ease-out);
}

.route__stop.is-visible .route__card { border-color: rgba(36, 235, 255, 0.28); }

.route__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 0.55rem;
}

.route__level {
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(36, 235, 255, 0.32);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan-soft);
}

.route__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: rgba(147, 166, 204, 0.5);
  transition: fill var(--dur-slow) var(--ease-out);
}

.route__stop.is-visible .route__icon svg { fill: var(--color-cyan-neon); }

.route__title {
  margin-bottom: 0.35rem;
  font-size: var(--fs-h4);
}

.route__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.72;
}

@media (min-width: 768px) {
  .route { padding-left: 3.5rem; }
  .route::before { left: 1.3rem; }
  .route__dot { left: -3.5rem; margin-left: 0.78rem; }
}

/* One continuous climb on wide screens too: the cards go horizontal so the
   route line stays unbroken from the ground floor to the terrace. */
@media (min-width: 992px) {
  .route__card {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    column-gap: var(--space-md);
    align-items: start;
  }

  .route__head {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
  }

  .route__title { grid-column: 2; grid-row: 1; }
  .route__text { grid-column: 2; grid-row: 2; }
}

/* --------------------------------------------------------------------------
   Requirements
   -------------------------------------------------------------------------- */
.req { display: grid; gap: var(--space-md); }

.req__table-wrap { padding: 0.35rem; overflow-x: auto; }

.req__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.req__table th,
.req__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.req__table tr:last-child th,
.req__table tr:last-child td { border-bottom: 0; }

.req__table th {
  width: 42%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-cyan-soft);
}

.req__table td { color: var(--color-text-secondary); }

@media (min-width: 1200px) {
  .req { grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-sign__panel::before { animation: none; }
  .route__dot,
  .route__icon svg,
  .route__card { transition: none; }
}
