/* ══════════════════════════════════════════════════════════════
   LANDING PAGE: ARTIFACT & DOWNLOAD SHOWCASE SECTION
   
   Complex showcase section featuring:
   - Aurora backdrop with animated glow effects
   - Ornamental frame with decorative corners
   - Badge grid for platform downloads
   - Trust signals and platform tags
   - Interactive hover effects with keyframe animations
   
   Keyframes used:
   - vs-aurora-pulse (12s infinite)
   - vs-aurora-shimmer (infinite)
   - vs-fade-in (0.8-1.1s staggered)
   
   Depends on:
   - design-system.css (CSS custom properties)
   - animations.css (vs-fade-in keyframe)
   ══════════════════════════════════════════════════════════════ */

/* Aurora Background Animation */
@keyframes vs-aurora-pulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

@keyframes vs-aurora-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.vs-download-artifact {
  position: relative;
  text-align: center;
  margin: 0 auto var(--vs-space-4xl);
  padding: var(--vs-space-4xl) var(--vs-space-xl);
  overflow: hidden;
}

/* Aurora Backdrop - Animated Glow */
.vs-download-aurora {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background:
    radial-gradient(ellipse 800px 300px at center, rgba(230, 154, 71, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 600px 250px at 30% 40%, rgba(212, 165, 116, 0.12) 0%, transparent 50%);
  filter: blur(80px);
  animation: vs-aurora-pulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.vs-download-artifact__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-3xl);
  max-width: 900px;
  margin: 0 auto;
}

/* Header Section */
.vs-download-artifact__header {
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-lg);
  align-items: center;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle);
}

.vs-download-artifact__rune {
  font-size: 2.5rem;
  display: inline-block;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.1s backwards;
}

/* Monumental Title - Artifact Showcase */
.vs-download-artifact__title {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg,
      var(--vs-text) 0%,
      var(--vs-text-secondary) 50%,
      var(--vs-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 2px 30px rgba(212, 165, 116, 0.15),
    0 8px 60px rgba(230, 154, 71, 0.1);
  animation: vs-fade-in 0.9s var(--vs-transition-gentle) 0.2s backwards;
}

.vs-download-artifact__title-line {
  display: block;
}

.vs-download-artifact__title-line--accent {
  background: linear-gradient(135deg,
      var(--vs-accent) 0%,
      var(--vs-accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description Text */
.vs-download-artifact__description {
  font-size: var(--vs-text-lg);
  color: var(--vs-text-secondary);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.3s backwards;
}

/* Trust Signals - Glassmorphism Bar */
.vs-download-artifact__trust {
  display: flex;
  justify-content: center;
  gap: var(--vs-space-xl);
  padding: var(--vs-space-xl);
  background:
    rgba(45, 41, 38, 0.4);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: var(--vs-radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.4s backwards;
  flex-wrap: wrap;
}

.vs-download-trust-item {
  display: flex;
  align-items: center;
  gap: var(--vs-space-sm);
  font-size: var(--vs-text-sm);
  color: var(--vs-text-secondary);
}

.vs-download-trust-icon {
  font-size: 1.25rem;
  display: inline-block;
}

.vs-download-trust-label {
  font-weight: 500;
}

/* Showcase Frame - Ornamental Display */
.vs-download-artifact__showcase {
  position: relative;
  padding: var(--vs-space-3xl);
  background:
    linear-gradient(160deg,
      rgba(45, 41, 38, 0.5) 0%,
      rgba(33, 30, 27, 0.3) 100%);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: var(--vs-radius-2xl);
  box-shadow:
    0 0 0 1px rgba(230, 154, 71, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(245, 240, 232, 0.05);
  animation: vs-fade-in 0.9s var(--vs-transition-gentle) 0.5s backwards;
}

/* Decorative Frame Corners */
.vs-download-frame-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--vs-accent);
  pointer-events: none;
  transition: all var(--vs-transition-slow);
  will-change: border-color, box-shadow;
}

.vs-download-frame-corner--tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.6s backwards;
}

.vs-download-frame-corner--tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.65s backwards;
}

.vs-download-frame-corner--bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.7s backwards;
}

.vs-download-frame-corner--br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 0.75s backwards;
}

.vs-download-artifact__showcase:hover .vs-download-frame-corner {
  border-color: var(--vs-accent-bright);
  box-shadow: 0 0 12px var(--vs-accent-glow);
}

/* Badges Grid - Display Case */
.vs-download-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--vs-space-2xl);
  justify-items: center;
}

.vs-download-badge-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--vs-space-md);
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) backwards;
}

.vs-download-badge-frame:nth-child(1) {
  animation-delay: 0.7s;
}

.vs-download-badge-frame:nth-child(2) {
  animation-delay: 0.9s;
}

.vs-download-badge-label {
  font-size: var(--vs-text-sm);
  font-weight: 600;
  color: var(--vs-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: all var(--vs-transition);
}

.vs-download-badge-frame:hover .vs-download-badge-label {
  opacity: 1;
  color: var(--vs-accent-bright);
  letter-spacing: 0.08em;
}

/* Download Badge — Enhanced Interactive Style */
.vs-download-badge {
  display: inline-block;
  position: relative;
  transition: all var(--vs-transition-slow);
  filter: brightness(0.95);
}

.vs-download-badge img {
  display: block;
  width: 220px;
  height: auto;
  transition: all var(--vs-transition-slow);
}

.vs-download-badge:focus-visible {
  outline: 2px solid var(--vs-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.vs-download-badge:hover {
  transform: translateY(-12px) scale(1.08);
  filter: brightness(1.15);
}

.vs-download-badge:hover img {
  filter: drop-shadow(0 16px 36px var(--vs-accent-glow));
}

.vs-download-badge:active {
  transform: translateY(-4px) scale(1.03);
}

/* Artifact Badge Modifier - Enhanced transitions */
.vs-download-badge--artifact {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, filter;
}

.vs-download-badge--artifact img {
  filter: drop-shadow(0 8px 20px rgba(230, 154, 71, 0.2));
}

/* Supported Platforms Section */
.vs-download-artifact__platforms {
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-md);
  align-items: center;
  padding: var(--vs-space-xl) 0;
  animation: vs-fade-in 0.8s var(--vs-transition-gentle) 1.1s backwards;
}

.vs-download-platforms-label {
  font-size: var(--vs-text-sm);
  font-weight: 600;
  color: var(--vs-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.vs-download-platforms-list {
  display: flex;
  justify-content: center;
  gap: var(--vs-space-md);
  flex-wrap: wrap;
}

.vs-download-platform-tag {
  display: inline-block;
  padding: var(--vs-space-xs) var(--vs-space-md);
  background: rgba(212, 165, 116, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: var(--vs-radius-full);
  font-size: var(--vs-text-xs);
  color: var(--vs-accent);
  font-weight: 500;
  transition: all var(--vs-transition);
}

.vs-download-platform-tag:hover {
  background: rgba(212, 165, 116, 0.12);
  border-color: rgba(212, 165, 116, 0.25);
  transform: translateY(-2px);
}

/* Final CTA Badges Container */
.vs-final-cta__badges {
  display: flex;
  justify-content: center;
  gap: var(--vs-space-lg);
  margin-top: var(--vs-space-xl);
  flex-wrap: wrap;
}

