/**
 * Download page — protocol site visual layer
 */
.page-download.page-protocol {
  --dl-accent: var(--proto-blue);
  --dl-accent-2: var(--proto-cyan);
}

/* Hero */
.page-download .download-hero-section {
  padding: 40px 0 56px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

@media (min-width: 969px) {
  .page-download .download-hero-section {
    padding: 120px 0 80px;
  }
}

.page-download .download-hero-section::before {
  display: none;
}

.page-download .download-hero-section .hero-content {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  grid-template-columns: none !important;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.page-download .download-hero-section .hero-left,
.page-download .download-hero-section .hero-info {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download .download-hero-section .hero-title {
  font-family: var(--proto-font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--proto-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.page-download .download-hero-section .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--proto-text);
  margin-bottom: 16px;
}

.page-download .download-hero-section .hero-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--proto-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.page-download .download-title {
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--proto-cyan);
  margin-bottom: 16px;
}

.page-download .download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.page-download .download-btn {
  padding: 12px 20px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border-strong);
  border-radius: 999px;
  color: var(--proto-text);
  font-size: 14px;
  font-weight: 600;
  min-width: 150px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-download .download-btn:hover {
  background: var(--proto-surface-hover);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.15);
}

.page-download .apk-download {
  background: linear-gradient(135deg, var(--proto-blue) 0%, var(--proto-blue-dark) 100%);
  color: #fff;
  border: none;
  width: 100%;
  max-width: 312px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px var(--proto-glow-blue);
}

.page-download .apk-download:hover {
  background: linear-gradient(135deg, #60a5fa 0%, var(--proto-blue) 100%);
  box-shadow: 0 8px 28px var(--proto-glow-blue);
}

.page-download .architecture-downloads {
  margin-top: 28px;
  padding: 20px;
  width: 100%;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  backdrop-filter: blur(8px);
}

.page-download .architecture-title {
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proto-text-muted);
  margin-bottom: 14px;
  text-align: center;
}

.page-download .architecture-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-download .arch-download-btn {
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--proto-border);
  border-radius: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-download .arch-download-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.page-download .arch-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--proto-text);
}

.page-download .arch-desc {
  font-size: 11px;
  color: var(--proto-text-muted);
}

/* Features */
.page-download .download-features-section {
  padding: 96px 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4), transparent);
  position: relative;
}

.page-download .download-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proto-border-strong), transparent);
}

.page-download .download-features-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-download .download-features-section .section-title {
  font-family: var(--proto-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--proto-text);
  margin-bottom: 12px;
}

.page-download .download-features-section .section-subtitle {
  font-size: 15px;
  color: var(--proto-text-muted);
}

.page-download .download-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}

.page-download .download-features-section .feature-card {
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  padding: 28px 24px;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-download .download-features-section .feature-card::before {
  display: none;
}

.page-download .download-features-section .feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--proto-border-strong);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.1);
}

.page-download .download-features-section .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-download .download-features-section .feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--proto-text);
  margin-bottom: 8px;
  text-align: left;
}

.page-download .download-features-section .feature-description {
  font-size: 13px;
  line-height: 1.65;
  color: var(--proto-text-muted);
  text-align: left;
}

/* Screenshots */
.page-download .screenshots-section {
  padding: 96px 0;
  background: transparent;
}

.page-download .screenshots-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-download .screenshots-section .section-title {
  font-family: var(--proto-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--proto-text);
}

.page-download .screenshots-section .section-subtitle {
  color: var(--proto-text-muted);
  font-size: 15px;
}

.page-download .screenshots-slider-container {
  margin-top: 0;
}

.page-download .screenshot-item {
  width: 260px;
  padding: 20px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-download .screenshot-item:hover {
  border-color: var(--proto-border-strong);
  transform: translateY(-4px);
}

.page-download .screenshot-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-text);
}

.page-download .screenshot-description {
  font-size: 12px;
  color: var(--proto-text-muted);
}

.page-download .screenshot-image {
  border-radius: 16px;
  border: 1px solid var(--proto-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* QR */
.page-download .qr-download-section {
  padding: 96px 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4), transparent);
}

.page-download .qr-content {
  padding: 36px 40px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  backdrop-filter: blur(12px);
  max-width: 720px;
}

.page-download .qr-code {
  width: 180px;
  height: 180px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-download .qr-title {
  font-family: var(--proto-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--proto-text);
  margin-bottom: 12px;
}

.page-download .qr-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--proto-text-muted);
}

.page-download .qr-support {
  font-family: var(--proto-font-mono);
  font-size: 12px;
  color: var(--proto-cyan);
}

.page-download .section-eyebrow {
  display: inline-block;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--proto-cyan);
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .page-download .download-features-section .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-download .download-hero-section {
    padding: 96px 0 48px;
  }

  .page-download .download-hero-section .hero-content {
    max-width: none;
    gap: 0;
    text-align: center;
  }

  .page-download .download-hero-section .hero-left,
  .page-download .download-hero-section .hero-info {
    align-items: stretch;
  }

  .page-download .download-hero-section .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .page-download .download-hero-section .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .page-download .download-hero-section .hero-description {
    font-size: 14px;
    margin-bottom: 28px;
    max-width: none;
  }

  .page-download .download-methods {
    width: 100%;
  }

  .page-download .download-title {
    margin-bottom: 12px;
  }

  .page-download .download-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
  }

  .page-download .download-btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    padding: 14px 20px;
  }

  .page-download .apk-download {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 20px;
  }

  .page-download .architecture-downloads {
    margin-top: 20px;
    padding: 16px;
  }

  .page-download .architecture-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .page-download .arch-download-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 10px;
    min-height: 60px;
    text-align: left;
  }

  .page-download .download-features-section {
    padding: 64px 0;
  }

  .page-download .download-features-section .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-download .screenshots-section,
  .page-download .qr-download-section {
    padding: 64px 0;
  }

  .page-download .qr-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 24px 20px;
    max-width: none;
  }

  .page-download .qr-code {
    margin: 0 auto;
  }
}
