/* ==========================================================================
   AFTERPATH — FEATURE & AVATAR PAGE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FEATURE PAGE HERO
   -------------------------------------------------------------------------- */
.fp-hero {
  background: #11111d;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(78,205,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.fp-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4ecdc4;
  margin: 0 0 16px;
}

.fp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.fp-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #8b8d97;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. ANIMATED DEMO BOX (larger, 400x300)
   -------------------------------------------------------------------------- */
.fp-demo-section {
  background: #11111d;
  padding: 0 24px 80px;
}

.fp-demo-wrap {
  max-width: 500px;
  margin: 0 auto;
}

.fp-demo-box {
  font-family: 'Outfit', sans-serif;
  width: 100%;
  max-width: 480px;
  height: 340px;
  border-radius: 16px;
  padding: 2px;
  margin: 0 auto;
  background: rgba(78,205,196,0.25);
  box-shadow: 0 0 40px rgba(78,205,196,0.1), 0 0 80px rgba(78,205,196,0.05);
}

.fp-demo-inner {
  background: #1a1a2e;
  border-radius: 14px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.fp-demo-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #11111d;
  padding: 24px;
  font-family: 'Outfit', sans-serif;
}

/* --------------------------------------------------------------------------
   3. BENEFIT CARDS GRID
   -------------------------------------------------------------------------- */
.fp-benefits {
  background: #11111d;
  padding: 80px 24px;
}

.fp-benefits-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.fp-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -0.3px;
}

.fp-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fp-benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, background 0.3s;
}

.fp-benefit-card:hover {
  border-color: rgba(78,205,196,0.3);
  background: rgba(255,255,255,0.06);
}

.fp-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(78,205,196,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #4ecdc4;
}

.fp-benefit-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.fp-benefit-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #8b8d97;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. HOW IT WORKS — 3-STEP FLOW
   -------------------------------------------------------------------------- */
.fp-how {
  background: #11111d;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.fp-how-steps {
  display: flex;
  gap: 32px;
  position: relative;
}

.fp-how-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.fp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(78,205,196,0.15);
  border: 2px solid #4ecdc4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #4ecdc4;
}

.fp-how-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.fp-how-step p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #8b8d97;
  line-height: 1.6;
  margin: 0;
}

/* Connector line between steps */
.fp-how-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: rgba(78,205,196,0.2);
}

/* --------------------------------------------------------------------------
   5. INTEGRATION / FEATURE LINKS SECTION
   -------------------------------------------------------------------------- */
.fp-integrations {
  background: #11111d;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-integrations-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.fp-integration-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.fp-integration-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 80px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8b8d97;
  text-decoration: none;
  transition: all 0.2s;
}

.fp-integration-link:hover {
  color: #4ecdc4;
  border-color: rgba(78,205,196,0.3);
  background: rgba(78,205,196,0.08);
}

/* --------------------------------------------------------------------------
   6. FAQ SECTION (feature pages)
   -------------------------------------------------------------------------- */
.fp-faq {
  background: #11111d;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-faq-inner {
  max-width: 700px;
  margin: 0 auto;
}

.fp-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.fp-faq-item:last-child {
  border-bottom: none;
}

.fp-faq-q {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fp-faq-q::after {
  content: "+";
  font-size: 20px;
  color: #4ecdc4;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.fp-faq-item.open .fp-faq-q::after {
  transform: rotate(45deg);
}

.fp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fp-faq-item.open .fp-faq-a {
  max-height: 300px;
}

.fp-faq-a p {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #8b8d97;
  line-height: 1.7;
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   7. CTA SECTION
   -------------------------------------------------------------------------- */
.fp-cta {
  background: #11111d;
  padding: 80px 24px 100px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.fp-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 16px;
}

.fp-cta p {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #8b8d97;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* Rainbow-border CTA — replicates .hero_button-wrap / .button.hero from webflow.css */
.fp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #11111d;
  padding: 16px 57px;
  border-radius: 80px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

/* Gradient border wrapper via pseudo-element */
.fp-cta-btn-wrap {
  display: inline-block;
  background-image: linear-gradient(110deg, #ce4a5e, #7b6dce 25%, #43b9e6 50%, #49e8af 75%, #f29161);
  background-size: 200% 200%;
  animation: rainbow-spin 12s linear infinite;
  border-radius: 80px;
  padding: 2px;
  position: relative;
  transition: transform 0.4s;
}

@keyframes rainbow-spin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Blurred glow underneath — matches .button-overlay.hero */
.fp-cta-btn-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #bf4e6e, #7b6dce 25%, #43b9e6 50%, #49e8af 75%, #d99c6a);
  filter: blur(40px);
  border-radius: 80px;
  z-index: -1;
  opacity: 0.5;
}

.fp-cta-btn-wrap:hover {
  transform: scale(1.05);
}


/* --------------------------------------------------------------------------
   8. AVATAR PAGE — PAIN POINTS
   -------------------------------------------------------------------------- */
.fp-pain {
  background: #11111d;
  padding: 80px 24px;
}

.fp-pain-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.fp-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fp-pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  border-top: 3px solid rgba(245,158,11,0.4);
}

.fp-pain-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.fp-pain-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #8b8d97;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. AVATAR PAGE — SOLUTION MAPPING
   -------------------------------------------------------------------------- */
.fp-solution {
  background: #11111d;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-solution-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.fp-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fp-solution-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  border-top: 3px solid rgba(78,205,196,0.4);
}

.fp-solution-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.fp-solution-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #8b8d97;
  line-height: 1.6;
  margin: 0;
}

.fp-solution-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4ecdc4;
  text-decoration: none;
  transition: color 0.2s;
}

.fp-solution-link:hover {
  color: #5fd6ce;
}

/* --------------------------------------------------------------------------
   10. SOCIAL PROOF / TESTIMONIAL SECTION
   -------------------------------------------------------------------------- */
.fp-proof {
  background: #11111d;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-proof-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.fp-proof-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 24px;
}

.fp-proof-attr {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8b8d97;
  margin: 0;
}

.fp-proof-stat {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.fp-stat {
  text-align: center;
}

.fp-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #4ecdc4;
  display: block;
}

.fp-stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #8b8d97;
  margin-top: 4px;
  display: block;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .fp-title {
    font-size: 36px;
  }

  .fp-how-steps {
    flex-direction: column;
    gap: 40px;
  }

  .fp-how-steps::before {
    display: none;
  }

  .fp-pain-grid,
  .fp-solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fp-proof-stat {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .fp-hero {
    padding: 80px 20px 60px;
  }

  .fp-title {
    font-size: 28px;
  }

  .fp-subtitle {
    font-size: 16px;
  }

  .fp-benefits-grid {
    grid-template-columns: 1fr;
  }

  .fp-pain-grid,
  .fp-solution-grid {
    grid-template-columns: 1fr;
  }

  .fp-demo-box {
    height: 280px;
  }

  .fp-section-title {
    font-size: 26px;
  }

  .fp-proof-stat {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 479px) {
  .fp-hero {
    padding: 70px 16px 50px;
  }

  .fp-title {
    font-size: 24px;
  }

  .fp-demo-box {
    height: 240px;
  }

  .fp-benefit-card,
  .fp-pain-card,
  .fp-solution-card {
    padding: 24px;
  }
}
