/* ============================================================
   ARCHETYPE A — "Fortress" (Bastion) — Features Page
   Content-only styles (shared styles loaded via style.css)
   ============================================================ */

/* ---- Page-specific Keyframe Animations ---- */
@keyframes prt-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes prt-counter-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === FEATURES HERO === */
.prt-features-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  text-align: center;
  overflow: hidden;
}
.prt-features-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.prt-features-hero-heading {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prt-fade-up 0.8s ease both;
}
.prt-features-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
  animation: prt-fade-up 0.8s ease 0.15s both;
}
.prt-features-hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
  animation: prt-glow-pulse 6s ease-in-out infinite;
}

/* === FEATURE CARDS GRID (2-column, 6 cards) === */
.prt-features-grid-section {
  padding: 40px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.prt-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.prt-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform var(--transition-base), border-color var(--transition-base),
    box-shadow var(--transition-base);
  animation: prt-scale-in 0.6s ease both;
}
.prt-feature-card:nth-child(1) { animation-delay: 0.1s; }
.prt-feature-card:nth-child(2) { animation-delay: 0.15s; }
.prt-feature-card:nth-child(3) { animation-delay: 0.2s; }
.prt-feature-card:nth-child(4) { animation-delay: 0.25s; }
.prt-feature-card:nth-child(5) { animation-delay: 0.3s; }
.prt-feature-card:nth-child(6) { animation-delay: 0.35s; }
.prt-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(109, 74, 255, 0.12);
}
.prt-feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.15), rgba(0, 212, 170, 0.08));
  color: var(--primary-color);
  margin-bottom: 20px;
}
.prt-feature-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.prt-feature-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === STATS BAR === */
.prt-features-stats {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 24px;
}
.prt-features-stats-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}
.prt-features-stat {
  text-align: center;
  animation: prt-counter-rise 0.7s ease both;
}
.prt-features-stat:nth-child(1) { animation-delay: 0.1s; }
.prt-features-stat:nth-child(2) { animation-delay: 0.2s; }
.prt-features-stat:nth-child(3) { animation-delay: 0.3s; }
.prt-features-stat:nth-child(4) { animation-delay: 0.4s; }
.prt-features-stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}
.prt-features-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === CTA SECTION === */
.prt-features-cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}
.prt-features-cta-inner {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.prt-features-cta-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
  animation: prt-fade-up 0.7s ease both;
}
.prt-features-cta-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  animation: prt-fade-up 0.7s ease 0.12s both;
}
.prt-features-cta .prt-btn {
  animation: prt-fade-up 0.7s ease 0.24s both;
}
.prt-features-cta-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  animation: prt-glow-pulse 7s ease-in-out infinite;
}

/* === CONTENT RESPONSIVE === */
@media (max-width: 768px) {
  .prt-features-hero {
    padding: calc(var(--nav-height) + 48px) 20px 60px;
  }
  .prt-features-hero-heading {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .prt-features-hero-glow {
    width: 400px;
    height: 400px;
  }
  .prt-features-grid-section {
    padding: 24px 20px 64px;
  }
  .prt-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .prt-feature-card {
    padding: 28px 24px;
  }
  .prt-features-stats-list {
    gap: 24px;
  }
  .prt-features-stat {
    flex: 0 0 calc(50% - 12px);
  }
  .prt-features-stat-number {
    font-size: 1.6rem;
  }
  .prt-features-cta {
    padding: 64px 20px;
  }
  .prt-features-cta-glow {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .prt-features-hero-heading {
    font-size: 1.7rem;
  }
  .prt-features-hero-desc {
    font-size: 0.95rem;
  }
  .prt-features-stats-list {
    gap: 16px;
  }
  .prt-features-stat {
    flex: 0 0 calc(50% - 8px);
  }
  .prt-features-stat-number {
    font-size: 1.35rem;
  }
  .prt-features-stat-label {
    font-size: 0.75rem;
  }
}
