/* =========================================================
   Download Page Styles
   Modern cyber-nature design
========================================================= */
@font-face {
  font-family: "Geologica";
  src: url("../fonts/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../fonts/Geologica-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("../fonts/Geologica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Page container */
.page-download {
  min-height: 100vh;
  background: var(--color-bg-primary, #0a0f0a);
  color: var(--color-text-primary, #f0fdf4);
  position: relative;
  overflow: hidden;
  font-family: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Ambient background */
.page-download::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
.page-download::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main content wrapper */
.page-main--download {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

/* Hero Section */
.dl-hero {
  margin-bottom: 80px;
}

.dl-hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 1024px) {
  .dl-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.dl-hero__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Badge */
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 253, 244, 0.9);
  width: fit-content;
}

@media (max-width: 1024px) {
  .dl-badge {
    margin: 0 auto;
  }
}

.dl-badge__dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Typography */
.dl-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dl-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(240, 253, 244, 0.7);
  max-width: 540px;
  margin: 0;
}

@media (max-width: 1024px) {
  .dl-subtitle {
    margin: 0 auto;
  }
}

/* Actions */
.dl-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .dl-actions {
    justify-content: center;
  }
}

/* CTA Button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #07111f;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.cta--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.cta--primary:hover::before {
  transform: translateX(100%);
}

.cta--large {
  padding: 18px 32px;
  font-size: 16px;
}

.cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Meta grid */
.dl-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .dl-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta__k {
  font-size: 12px;
  color: rgba(240, 253, 244, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta__v {
  font-size: 15px;
  font-weight: 600;
  color: rgba(240, 253, 244, 0.9);
}

.meta__v--highlight {
  color: #22c55e;
  font-size: 18px;
}

.meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 9999px;
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
  width: fit-content;
}

/* Trust indicators */
.dl-trust {
  margin-top: 8px;
}

.trust-mini {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .trust-mini {
    justify-content: center;
  }
}

.trust-mini__item {
  font-size: 13px;
  color: rgba(240, 253, 244, 0.5);
}

/* Info Grid */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
}

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

/* Cards */
.dl-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-card:hover {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.dl-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dl-card__icon {
  font-size: 24px;
  line-height: 1;
}

.dl-card__title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(240, 253, 244, 0.95);
  margin: 0;
}

/* List */
.dl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dl-list__item:last-child {
  border-bottom: none;
}

.dl-list__label {
  font-size: 14px;
  color: rgba(240, 253, 244, 0.6);
}

.dl-list__value {
  font-size: 14px;
  color: rgba(240, 253, 244, 0.9);
  font-weight: 500;
  text-align: right;
}

/* Steps */
.dl-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: step;
}

.dl-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: rgba(240, 253, 244, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

.dl-steps__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #07111f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-right"].is-visible {
  transform: translateX(0);
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .dl-badge__dot {
    animation: none;
  }
}