/* =========================================================
   GMZ STUDIOS — Download-Seite (Hacker-Terminal)
   ========================================================= */

.dl { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 80px; overflow: hidden; }
.dl-rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }
.dl::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 20%, rgba(0,0,0,.85) 75%);
}
/* Scanlines */
.dl::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .25;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
}
.dl-wrap { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 28px; }
.dl-wrap .eyebrow { margin: 0; color: var(--ok); }
.dl-title { font-size: clamp(48px, 9vw, 120px); line-height: .9; letter-spacing: .04em; margin: 0; }
.dl-title .solid { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 40px rgba(255,255,255,.35); }
.dl-lead { max-width: 56ch; margin: 0; }

/* Nav: nur Zurück-Link + Sprachumschalter, auch mobil sichtbar */
.nav .dl-links { position: static; flex-direction: row; opacity: 1; pointer-events: auto; background: none; gap: 6px; }
.nav .dl-links a { font-family: var(--font-body); font-size: 14px; }

/* Terminal */
.dl-term {
  width: min(720px, 100%); text-align: left;
  border: 1px solid rgba(125,255,178,.3); border-radius: var(--radius); overflow: hidden;
  background: rgba(3, 6, 5, .88); backdrop-filter: blur(6px);
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 60px rgba(125,255,178,.08);
}
.dl-term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(125,255,178,.18); }
.dl-term__bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(125,255,178,.4); }
.dl-term__bar span { margin: 0 auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(125,255,178,.6); }
.dl-term__body {
  margin: 0; padding: 20px 22px; min-height: 250px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: rgba(125,255,178,.75);
  white-space: pre-wrap; word-break: break-word;
}
.dl-term__body .ok { color: var(--ok); text-shadow: 0 0 8px rgba(125,255,178,.6); }
.dl-term__body .hi { color: #fff; }
.dl-term__body .caret { display: inline-block; width: 8px; height: 15px; background: var(--ok); vertical-align: -2px; animation: blink 1s steps(1) infinite; box-shadow: 0 0 8px var(--ok); }

/* Download-Bereich (erscheint nach dem Boot) */
.dl-panel { width: min(720px, 100%); display: grid; gap: 14px; justify-items: center; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.dl-panel.is-ready { opacity: 1; transform: none; pointer-events: auto; }
.dl-granted {
  margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .5em; color: var(--ok);
  text-shadow: 0 0 12px rgba(125,255,178,.8);
}
.dl-panel.is-ready .dl-granted { animation: grantedFlicker 1.2s steps(2) 1; }
@keyframes grantedFlicker { 0%, 20%, 40% { opacity: 0; } 10%, 30%, 50%, 100% { opacity: 1; } }

.dl-btn {
  position: relative; overflow: hidden; isolation: isolate; width: 100%;
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; text-align: left;
  border: 1px solid var(--ok); border-radius: var(--radius); background: rgba(125,255,178,.06);
  color: #fff; box-shadow: 0 0 0 0 rgba(125,255,178,.4), inset 0 0 30px rgba(125,255,178,.06);
  transition: background .35s, box-shadow .35s, transform .3s var(--ease);
  animation: dlPulse 2.4s var(--ease) infinite;
}
@keyframes dlPulse { 0% { box-shadow: 0 0 0 0 rgba(125,255,178,.35), inset 0 0 30px rgba(125,255,178,.06); } 100% { box-shadow: 0 0 0 18px rgba(125,255,178,0), inset 0 0 30px rgba(125,255,178,.06); } }
.dl-btn:hover { background: rgba(125,255,178,.14); }
.dl-btn:active { transform: scale(.99); }
.dl-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(125,255,178,.25), transparent);
  transform: translateX(-100%); animation: dlSweep 3s linear infinite;
}
@keyframes dlSweep { to { transform: translateX(100%); } }
.dl-btn__icon { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--ok); color: #000; }
.dl-btn__icon svg { width: 24px; height: 24px; }
.dl-btn__text { flex: 1; display: grid; gap: 4px; }
.dl-btn__text b { font-family: var(--font-mono); font-size: clamp(15px, 2.2vw, 20px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.dl-btn__text small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(125,255,178,.8); text-transform: uppercase; }
.dl-btn__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ok); box-shadow: 0 0 10px var(--ok); transform-origin: 0 50%; transform: scaleX(0); }
.dl-btn.is-loading .dl-btn__bar { animation: dlLoad 1.4s var(--ease) forwards; }
.dl-btn.is-loading, .dl-btn.is-done { animation: none; }
.dl-btn.is-done { background: rgba(125,255,178,.16); }
.dl-btn.is-done .dl-btn__bar { transform: scaleX(1); }
@keyframes dlLoad { to { transform: scaleX(.9); } }
.dl-status { margin: 0; min-height: 1.5em; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.dl-status a { color: var(--ok); text-decoration: underline; text-underline-offset: 3px; }
.dl-os { margin: 0; padding: 12px 16px; border: 1px dashed var(--warn); border-radius: 10px; color: var(--warn); font-size: 14px; }

/* Schritte */
.dl-steps { width: min(960px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; text-align: left; }
.dl-step { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,13,17,.75); backdrop-filter: blur(6px); }
.dl-step span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--ok); }
.dl-step h3 { font-size: 18px; margin: 10px 0 6px; }
.dl-step p { margin: 0; font-size: 14px; }
.dl-step a { color: var(--ok); text-decoration: underline; text-underline-offset: 3px; }
.dl-hint { max-width: 640px; margin: 0; padding: 12px 18px; border-radius: 12px; background: rgba(0,0,0,.72); font-size: 13px; color: var(--muted); }
.nav .dl-links a { white-space: nowrap; }
.dl-foot {
  width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 12px 22px; border-radius: 999px; background: rgba(0,0,0,.72);
  position: relative; z-index: 2; margin-top: 56px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.dl-foot a:hover { color: #fff; }

@media (max-width: 860px) {
  .dl-steps { grid-template-columns: 1fr 1fr; }
  .nav .dl-links { flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 520px) {
  .nav:has(.dl-links) .nav__brand span { display: none; }
  .nav .dl-links a { padding: 10px 8px; font-size: 13px; }
  .dl-foot { border-radius: 16px; gap: 10px 18px; }
  .dl-steps { grid-template-columns: 1fr; }
  .dl-btn { padding: 18px; gap: 14px; }
  .dl-btn__icon { width: 44px; height: 44px; }
  .dl-term__body { font-size: 12px; min-height: 230px; }
}
