/* ===== Download Page Styles ===== */
/* Pixel-perfect from Figma */

/* ===== Hero ===== */
.dl-hero {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding-top: 64px;
}
.dl-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.dl-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(2,8,23,0.18) 0%, rgba(2,8,23,0.82) 50%, #020817 100%);
}
.dl-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 0;
}

/* Badge — Figma: Noto Sans SC Bold 12px, #f87171 */
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(30,41,59,0.6);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 9999px;
  backdrop-filter: blur(24px);
  margin-bottom: 19px;
  white-space: nowrap;
}
.dl-badge-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #ef4444;
  flex-shrink: 0;
}
.dl-badge-text {
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
}

/* Heading — matching features page hero gradient style */
.dl-heading {
  font-size: 74px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -3px;
  font-family: 'Noto Sans SC', sans-serif;
  margin-bottom: 19px;
  background: linear-gradient(to right, #fff 25%, #fca5a5 45%, #ef4444 70%, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle — Figma: Noto Sans SC 24px (using Medium weight), #94a3b8 */
.dl-subtitle {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.6;
  color: #94a3b8;
  font-family: 'Noto Sans SC', sans-serif;
  max-width: 700px;
  margin-bottom: 45px;
}

/* Hero CTA Buttons */
.dl-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 77px;
}

/* Download Button Tooltip */
.dl-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-hero-content {
  position: relative;
}

.dl-tooltip-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  min-height: 80px;
}

.dl-tooltip {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: rgba(20, 20, 28, 0.1) !important;
  border: 1px dashed rgba(239, 68, 68, 0.6) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  z-index: 9999 !important;
  min-width: 520px !important;
  max-width: 620px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.28s ease-out, transform 0.28s ease-out, visibility 0.28s ease-out !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.dl-tooltip.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.dl-tooltip-content {
  padding: 24px 32px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px !important;
}
.dl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 38px;
  min-width: 250px;
  justify-content: center;
  background: rgba(220,38,38,0.95);
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.dl-btn-primary:hover {
  background: #dc2626;
  box-shadow: 0 20px 60px rgba(220,38,38,0.6);
  transform: translateY(-5px);
}
.dl-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 38px;
  min-width: 250px;
  justify-content: center;
  background: rgba(30,41,59,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(7px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.dl-btn-secondary:hover {
  background: rgba(255,255,255,0.02);
  transform: translateY(-5px);
}

/* Mini Stats — Figma: value 24px/32px Black, label 10px Bold letterSpacing 1px */
.dl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 896px;
  width: 100%;
}
.dl-stat-card {
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.dl-stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
}
.dl-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64748b;
  margin-top: 4px;
}

/* ===== Section Common ===== */
.dl-section {
  padding: 85px 48px 128px;
  max-width: 1280px;
  margin: 0 auto;
}
.dl-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
}
/* Section title — Figma: Noto Sans SC Black 36px */
.dl-section-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
}
.dl-section-underline {
  width: 40px;
  height: 4px;
  background: #dc2626;
  border-radius: 9999px;
}

/* ===== Spotlight Card Glow (mouse-follow) ===== */
.card-spotlight {
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.07);
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.card-spotlight:hover::before {
  opacity: 1;
}

.card-spotlight > * {
  position: relative;
  z-index: 2;
}

/* ===== Quick Deployment (3 Steps) ===== */
.dl-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dl-step-card {
  position: relative;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 40px;
  padding: 40px;
  backdrop-filter: blur(32px);
  overflow: hidden;
}
.dl-step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2) 0%, rgba(248,113,113,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-step-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: #ef4444;
}
/* Step title — Figma: Noto Sans SC Bold 24px */
.dl-step-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-top: 24px;
}
/* Step desc — Figma: Noto Sans SC Regular 16px, lineHeight 26px */
.dl-step-desc {
  font-size: 16px;
  line-height: 26px;
  color: #94a3b8;
  margin-top: 8px;
}
/* Step number — Figma: Noto Sans SC Black 96px, opacity 0.05 */
.dl-step-number {
  position: absolute;
  right: 32px;
  bottom: 0;
  font-size: 96px;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'Noto Sans SC', sans-serif;
}
.dl-step-keyboard {
  display: inline-flex;
  padding: 2px 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #f87171;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Technical Features ===== */
.dl-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dl-feature-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 40px;
  backdrop-filter: blur(32px);
}
.dl-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(239,68,68,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-feature-icon svg {
  width: 28px;
  height: 28px;
  color: #ef4444;
}
.dl-feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
}
.dl-feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 16px;
}
.dl-feature-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-feature-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
}
.dl-feature-list-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #22c55e;
}

/* ===== Requirements & Security ===== */
.dl-rs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dl-rs-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(32px);
}
.dl-rs-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
}
.dl-rs-heading-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(239,68,68,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-rs-heading-icon svg {
  width: 18px;
  height: 18px;
  color: #ef4444;
}
.dl-rs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.dl-rs-row + .dl-rs-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.dl-rs-label {
  color: #94a3b8;
  font-size: 14px;
}
.dl-rs-value {
  font-size: 14px;
  color: #fff;
}
.dl-rs-chip {
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
}
.dl-rs-chip-accent {
  padding: 9px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #f87171;
}
.dl-rs-chip-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* SHA-256 Hash blocks */
.dl-hash-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.dl-hash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}
.dl-hash-header svg {
  width: 16px;
  height: 16px;
  color: #f87171;
}
.dl-hash-filename {
  color: #f87171;
  font-size: 14px;
  font-weight: 500;
}
.dl-hash-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #64748b;
  word-break: break-all;
  line-height: 1.5;
}
.dl-verify-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
  margin-top: 32px;
}
.dl-verify-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Version History ===== */
.dl-version-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.dl-version-header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-version-subtitle {
  color: #94a3b8;
  font-size: 16px;
}
.dl-version-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 24px;
  white-space: nowrap;
}
.dl-version-link:hover {
  color: #f87171;
}
.dl-version-link svg {
  width: 16px;
  height: 16px;
}
.dl-version-table-wrap {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  overflow: hidden;
  backdrop-filter: blur(32px);
}
.dl-version-table {
  width: 100%;
  border-collapse: collapse;
}
.dl-version-table th {
  text-align: left;
  padding: 32px 40px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.03);
}
.dl-version-table td {
  padding: 40px 40px;
  color: #cbd5e1;
  font-size: 14px;
  vertical-align: middle;
}
.dl-version-table tr + tr td {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.dl-version-name {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.dl-version-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59,130,246,0.2);
  border-radius: 2px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 500;
  margin-left: 12px;
  vertical-align: middle;
}
.dl-version-date {
  color: #94a3b8;
  white-space: nowrap;
}
.dl-version-desc {
  max-width: 520px;
  line-height: 1.5;
}
.dl-version-dl {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}
.dl-version-dl a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ef4444;
  text-decoration: none;
  font-weight: 500;
}
.dl-version-dl a:hover {
  color: #f87171;
}
.dl-version-dl a.zip-link {
  color: #94a3b8;
}
.dl-version-dl a.zip-link:hover {
  color: #cbd5e1;
}
.dl-version-dl a svg {
  width: 16px;
  height: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .dl-heading { font-size: 52px; letter-spacing: -2px; }
}
@media (max-width: 1024px) {
  .dl-heading { font-size: 44px; letter-spacing: -2px; }
  .dl-subtitle { font-size: 16px; }
  .dl-section-title { font-size: 28px; }
  .dl-stats { grid-template-columns: repeat(2, 1fr); }
  .dl-steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .dl-features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .dl-rs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .dl-version-table th, .dl-version-table td { padding: 24px 20px; }
  .dl-version-table th:nth-child(2), .dl-version-table td:nth-child(2),
  .dl-version-table th:nth-child(4), .dl-version-table td:nth-child(4) { display: none; }
}
@media (max-width: 768px) {
  .dl-section { padding: 60px 20px 80px; }
  .dl-heading { font-size: 34px; letter-spacing: -1px; }
  .dl-subtitle { font-size: 15px; }
  .dl-section-title { font-size: 24px; }
  .dl-hero-buttons { flex-direction: column; align-items: center; }
  .dl-btn-primary, .dl-btn-secondary { min-width: 0; width: 100%; max-width: 360px; }
  .dl-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dl-stat-value { font-size: 20px; line-height: 28px; }
  .dl-version-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dl-version-table th:nth-child(2), .dl-version-table td:nth-child(2),
  .dl-version-table th:nth-child(3), .dl-version-table td:nth-child(3) { display: none; }
}
