/* ─── Download Page ─── */
.dl-page {
  min-height: 100vh;
  padding: 80px 24px 40px;
}
.dl-container {
  max-width: 900px;
  margin: 0 auto;
}
.dl-hero {
  text-align: center;
  padding: 40px 0 48px;
}
.dl-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.dl-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Sections */
.dl-section {
  margin-bottom: 56px;
}
.dl-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.dl-section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Download Cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.download-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}
.download-card.dl-detected {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(108, 92, 231, 0.2);
}
.dl-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.download-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.download-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.dl-size {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}
.dl-releases {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.dl-version {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6C5CE7, #0A84FF);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
  color: #fff;
}
.btn-icon { font-size: 0.9em; }
.dl-btn {
  width: 100%;
  justify-content: center;
}

/* CLI Install */
.cli-install {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.9rem;
  gap: 12px;
  max-width: 520px;
}
.cli-install code {
  flex: 1;
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  word-break: break-all;
}
.cli-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cli-copy-btn:hover {
  background: var(--bg-card-hover);
}
.dl-or {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Editor Table */
.editor-table-wrap {
  overflow-x: auto;
}
.editor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.editor-table th,
.editor-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.editor-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.editor-table td {
  color: var(--text-primary);
}

/* CTA Section */
.dl-cta {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.dl-cta h2 {
  margin-bottom: 8px;
}
.dl-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .download-cards {
    grid-template-columns: 1fr;
  }
  .cli-install {
    flex-wrap: wrap;
  }
}
