/* Download page redesign */
.dl-hero {
  background: linear-gradient(135deg, #ef3340 0%, #be2035 55%, #7a1424 100%);
  padding: 60px 0 70px;
  position: relative; overflow: hidden;
}
.dl-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,211,45,.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(47,191,113,.15), transparent 40%);
}
.dl-hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.dl-hero-copy h1 { font-size: 52px; margin: 8px 0 14px; color: #fff; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; }
.dl-version { font-size: 22px; color: #ffd32d; font-weight: 700; vertical-align: middle; margin-left: 8px; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); color: #fff; padding: 6px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; border: 1px solid rgba(255,255,255,.15);
}
.dl-hero-copy p { color: rgba(255,255,255,.9); font-size: 17px; margin: 0 0 24px; max-width: 520px; line-height: 1.5; }

.dl-cta { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.dl-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: #be2035; padding: 14px 22px 14px 18px;
  border-radius: 14px; text-decoration: none;
  font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .15s, box-shadow .15s;
  border: 3px solid #ffd32d;
}
.dl-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.dl-primary-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #be2035; color: #fff; display: grid; place-items: center;
  font-size: 22px; font-weight: 900;
}
.dl-primary-text b { display: block; font-size: 16px; letter-spacing: .3px; }
.dl-primary-text small { color: #888; font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.dl-secondary {
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .15s;
}
.dl-secondary:hover { background: rgba(255,255,255,.1); }

.dl-meta { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; }

/* Fake app-window visual */
.dl-hero-visual { display: flex; justify-content: center; }
.dl-window {
  width: 100%; max-width: 380px; background: #1a1a1a;
  border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.5);
  overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  transform: rotate(-2deg);
}
.dl-window-bar {
  background: #2a2a2a; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  color: #888; font-size: 12px; font-weight: 600;
}
.dl-window-bar i {
  width: 12px; height: 12px; border-radius: 50%; background: #666;
}
.dl-window-bar i:nth-child(1) { background: #ff5f57; }
.dl-window-bar i:nth-child(2) { background: #ffbd2e; }
.dl-window-bar i:nth-child(3) { background: #28c840; }
.dl-window-bar span { margin-left: auto; }
.dl-window-body {
  background: radial-gradient(ellipse at center, #1a5a3b, #062718);
  padding: 40px 20px; display: flex; gap: -14px; justify-content: center;
}
.dl-mini-card {
  width: 54px; height: 80px; border-radius: 8px; border: 3px solid #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 20px;
  color: #fff; margin-left: -18px;
  box-shadow: 0 6px 12px rgba(0,0,0,.4);
  font-family: 'Arial Black', system-ui, sans-serif;
  transform: rotate(var(--r, 0deg));
}
.dl-mini-card:nth-child(1) { --r: -12deg; margin-left: 0; }
.dl-mini-card:nth-child(2) { --r: -6deg; }
.dl-mini-card:nth-child(3) { --r: 0deg; }
.dl-mini-card:nth-child(4) { --r: 6deg; }
.dl-mini-card:nth-child(5) { --r: 12deg; }
.dl-mini-card.red    { background: #d7263d; }
.dl-mini-card.yellow { background: #f9c80e; color: #222; }
.dl-mini-card.green  { background: #2fbf71; }
.dl-mini-card.blue   { background: #2b8ee6; }
.dl-mini-card.wild   { background: linear-gradient(135deg, #d7263d 25%, #f9c80e 25% 50%, #2fbf71 50% 75%, #2b8ee6 75%); }

/* Grid of info panels */
.dl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: -40px; position: relative; z-index: 3;
}
.dl-panel {
  background: #fff; border-radius: 16px; padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
}
.dl-panel h3 { margin: 0 0 16px; font-size: 18px; color: #222; }
.dl-panel ul, .dl-panel ol { list-style: none; padding: 0; margin: 0; }
.dl-panel-req li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.08);
  font-size: 14px;
}
.dl-panel-req li:last-child { border-bottom: none; }
.dl-panel-req li b { color: #be2035; font-weight: 700; }
.dl-panel-req li span { color: #555; text-align: right; }

.dl-panel-safe ol {
  counter-reset: step;
}
.dl-panel-safe ol li {
  counter-increment: step;
  padding: 8px 0 8px 34px; position: relative;
  font-size: 14px; color: #444; line-height: 1.5;
}
.dl-panel-safe ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #ffd32d; color: #222; display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
}
.dl-hash {
  margin-top: 14px; padding: 10px 12px;
  background: #f7f7f9; border-radius: 8px;
  font-size: 11px; color: #666;
}
.dl-hash span { display: block; font-weight: 700; margin-bottom: 4px; color: #333; letter-spacing: 1px; }
.dl-hash code { font-family: 'Courier New', monospace; word-break: break-all; color: #999; }

.dl-panel-notes { grid-column: span 1; }
.dl-changelog li {
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px; color: #444;
}
.dl-changelog li:last-child { border-bottom: none; }

.dl-faq-wrap h2 { margin-bottom: 20px; font-size: 24px; }
.dl-faq details {
  background: #fff; border-radius: 12px; padding: 16px 20px;
  margin-bottom: 10px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.dl-faq summary {
  cursor: pointer; font-weight: 700; color: #222; font-size: 15px;
  list-style: none; position: relative; padding-right: 24px;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 22px; color: #be2035; font-weight: 300; line-height: 1;
}
.dl-faq details[open] summary::after { content: "−"; }
.dl-faq p { margin: 10px 0 0; color: #555; font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
  .dl-hero-inner { grid-template-columns: 1fr; }
  .dl-hero-copy h1 { font-size: 38px; }
  .dl-grid { grid-template-columns: 1fr; margin-top: -20px; }
  .dl-hero { padding: 40px 0 50px; }
}
