/* ==========================================================================
   download.css — TypeAero Download Page Styles  v2.0.0
   Design: Multi-platform selector, dark/light split layout
   ========================================================================== */

/* ── Download Hero ─────────────────────────────────────────────────────────── */
.dl-hero {
  background: var(--bg-dark);
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.dl-hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(0, 113, 227, 0.16) 0%,
    rgba(0, 113, 227, 0.04) 45%,
    transparent 70%);
  pointer-events: none;
  animation: dl-glow-pulse 5s ease-in-out infinite;
}

@keyframes dl-glow-pulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1);    }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.07); }
}

.dl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.dl-title {
  font-size: 4rem;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.04em;
  line-height: 1.07;
  margin-bottom: 0.9rem;
}

.dl-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 2.75rem;
}

/* ── Platform Selector Cards ─────────────────────────────────────────────── */
.dl-platform-selector {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.dl-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 2rem;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.2s ease, box-shadow 0.22s ease;
  font-family: var(--font-family);
  color: rgba(245, 245, 247, 0.65);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.dl-platform-card:hover:not(.is-coming-soon) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  color: rgba(245, 245, 247, 0.9);
}

.dl-platform-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Active (selected) state */
.dl-platform-card.is-active {
  background: rgba(0, 113, 227, 0.15);
  border-color: rgba(0, 113, 227, 0.55);
  color: #f5f5f7;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15),
              0 8px 32px rgba(0, 113, 227, 0.2);
}

/* Coming soon: dimmed, non-interactive */
.dl-platform-card.is-coming-soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none; /* fully disabled */
}

/* Allow hover on coming soon to show tooltip-like cursor still blocked */
.dl-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.2s ease;
}

.dl-platform-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dl-platform-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
}

.dl-badge-available {
  background: rgba(52, 210, 130, 0.18);
  color: #30d275;
  border: 1px solid rgba(52, 210, 130, 0.3);
}

.dl-badge-soon {
  background: rgba(134, 134, 139, 0.15);
  color: rgba(134, 134, 139, 0.8);
  border: 1px solid rgba(134, 134, 139, 0.2);
}

/* ── Platform Panels ─────────────────────────────────────────────────────── */
.dl-platform-panel {
  animation: dl-panel-in 0.3s ease;
}

.dl-platform-panel[hidden] {
  display: none;
}

@keyframes dl-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Primary Download Button ─────────────────────────────────────────────── */
.dl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent-blue);
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 24px rgba(0, 113, 227, 0.38);
  position: relative;
  overflow: hidden;
}

.dl-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.dl-btn-primary:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.5);
}

.dl-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 113, 227, 0.3);
}

.dl-btn-large {
  padding: 1rem 2.8rem;
  font-size: 1.125rem;
}

/* ── Panel note chips (below download button) ─────────────────────────────── */
.dl-panel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.dl-chip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid transparent;
}

.dl-chip-win {
  color: rgba(0, 175, 255, 0.85);
  border-color: rgba(0, 175, 255, 0.2);
  background: rgba(0, 175, 255, 0.07);
}

.dl-chip-arch {
  color: rgba(255, 200, 80, 0.85);
  border-color: rgba(255, 200, 80, 0.2);
  background: rgba(255, 200, 80, 0.07);
}

.dl-chip-free {
  color: rgba(52, 210, 130, 0.85);
  border-color: rgba(52, 210, 130, 0.2);
  background: rgba(52, 210, 130, 0.07);
}

/* ── Coming Soon Box ─────────────────────────────────────────────────────── */
.dl-coming-soon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.25rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.dl-coming-soon-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.dl-coming-soon-box h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f5f5f7;
  margin: 0;
}

.dl-coming-soon-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── Common Section Layout ───────────────────────────────────────────────── */
.dl-section {
  padding: 5rem 2rem;
}

.dl-section-light {
  background: var(--bg-gray);
}

.dl-section-dark {
  background: #0a0a0a;
}

.dl-container {
  max-width: 1600px;
  margin: 0 auto;
}

.dl-section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.6rem;
}

.dl-section-title-light {
  color: #f5f5f7;
}

.dl-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

.dl-section-desc-dim {
  color: rgba(134, 134, 139, 0.75);
}

/* ── System Requirements Grid ────────────────────────────────────────────── */
.dl-req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dl-req-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dl-req-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dl-req-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent-blue);
}

.dl-req-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.dl-req-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dl-req-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ── Steps (How to Install) ──────────────────────────────────────────────── */
.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.dl-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.dl-step-divider {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 113, 227, 0.4), rgba(0, 113, 227, 0.08));
  margin-left: calc(1.75rem + 1.375rem - 1px); /* center under step circle */
}

.dl-step-num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.12);
  border: 1.5px solid rgba(0, 113, 227, 0.35);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-step-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 0.4rem;
  line-height: 2.75rem;
}

.dl-step-body p {
  font-size: 0.9375rem;
  color: rgba(245, 245, 247, 0.6);
  line-height: 1.6;
  margin-top: -0.75rem;
}

.dl-step-body code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  color: rgba(245, 245, 247, 0.9);
}

/* ── Trust Items ─────────────────────────────────────────────────────────── */
.dl-trust-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 801px) {
  .dl-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.dl-trust-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.dl-trust-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dl-trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-trust-icon-blue   { background: rgba(0, 113, 227, 0.1);  color: #0071e3; }
.dl-trust-icon-green  { background: rgba(52, 210, 130, 0.12); color: #30b86c; }
.dl-trust-icon-orange { background: rgba(255, 149, 0, 0.1);   color: #f58400; }

.dl-trust-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.dl-trust-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Bottom CTA ──────────────────────────────────────────────────────────── */
.dl-cta-section {
  background: var(--bg-dark);
  padding: 6rem 2rem;
  text-align: center;
}

.dl-cta-inner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.dl-cta-inner > p:not(.dl-cta-note) {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.dl-cta-note {
  font-size: 0.8125rem;
  color: rgba(134, 134, 139, 0.55);
  margin-top: 1.25rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dl-req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dl-title {
    font-size: 2.5rem;
  }

  .dl-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .dl-platform-selector {
    gap: 0.65rem;
  }

  .dl-platform-card {
    padding: 1.1rem 1.4rem;
    min-width: 110px;
  }

  .dl-platform-name {
    font-size: 0.9rem;
  }

  .dl-req-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .dl-req-card {
    padding: 1.25rem 1rem;
  }

  .dl-section {
    padding: 3.5rem 1.25rem;
  }

  .dl-section-title {
    font-size: 1.75rem;
  }

  .dl-cta-inner h2 {
    font-size: 1.85rem;
  }

  .dl-hero {
    padding: 7rem 1.25rem 4rem;
  }
}

@media (max-width: 420px) {
  .dl-req-grid {
    grid-template-columns: 1fr;
  }

  .dl-platform-selector {
    flex-direction: row;
    justify-content: center;
  }
}
