/* base.css запрещает прокрутку страницы (у приложения своя), а здесь обычная
   длинная страница — без этого её нельзя было пролистать до кнопок и инструкций. */
html,
body {
  height: auto;
}
body {
  overflow-x: hidden;
  overflow-y: auto;
}

.dl-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px 20px 64px;
}

.dl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.dl-orb-1 {
  top: -140px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: var(--color-accent);
}
.dl-orb-2 {
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  background: #2e56d9;
  opacity: 0.35;
}
.dl-orb-3 {
  top: 40%;
  right: 20%;
  width: 280px;
  height: 280px;
  background: #1c9bd9;
  opacity: 0.25;
}

.dl-shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

.dl-hero {
  text-align: center;
  margin-bottom: 36px;
}
.dl-logo {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-accent) 45%, transparent);
}
.dl-logo svg {
  width: 30px;
  height: 30px;
}
.dl-title {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dl-tagline {
  max-width: 460px;
  margin: 10px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}
.dl-version {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}
.dl-version:empty {
  display: none;
}

.dl-web {
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
  padding: 22px 24px;
}
.dl-web-text h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.dl-web-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}
.dl-web-btn {
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-accent);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dl-web-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.dl-section-title {
  margin: 40px 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.dl-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
a.dl-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.dl-card-icon {
  display: flex;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.dl-card-icon svg {
  width: 26px;
  height: 26px;
}
.dl-card-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.dl-card-name {
  font-size: 15px;
  font-weight: 600;
}
.dl-card-note {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--color-muted);
}
.dl-card-meta {
  align-self: flex-start;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--color-muted);
}
.dl-card-match {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.dl-card-soon {
  opacity: 0.55;
}

.dl-help {
  margin-top: 32px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 4px 18px;
}
.dl-help details {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.dl-help details:last-child {
  border-bottom: none;
}
.dl-help summary {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.dl-help summary::-webkit-details-marker {
  display: none;
}
.dl-help summary::after {
  content: "＋";
  float: right;
  color: var(--color-muted);
}
.dl-help details[open] summary::after {
  content: "－";
}
.dl-help p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-muted);
}
.dl-help code {
  border-radius: 4px;
  background: var(--color-surface-alt);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--color-text);
}

.dl-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--color-muted);
}
.dl-footer a {
  color: var(--color-accent);
  text-decoration: none;
}
.dl-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .dl-page {
    padding: 32px 16px 48px;
  }
  .dl-title {
    font-size: 32px;
  }
  .dl-web {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: left;
  }
  .dl-web-btn {
    text-align: center;
  }
}

.dl-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.12);
  overflow-x: auto;
}
.dl-cmd code {
  flex: 1;
  white-space: nowrap;
  font-size: 13px;
  background: none;
}
.dl-cmd-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #3390ec;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
