/* Features Page Styles */

/* Features Hero Section */
.features-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3.5rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Background gradient ellipse for hero */
.features-hero::before {
  content: '';
  position: absolute;
  top: -470px;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 1440px;
  border-radius: 1440px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(199, 129, 190, 0.15) 0%, rgba(176, 157, 249, 0.15) 33%, rgba(118, 200, 236, 0.15) 66%, rgba(255, 255, 255, 0.15) 100%);
  z-index: -1;
  pointer-events: none;
}

.features-hero h1 {
  font-size: 3rem; /* 48px - Figma spec */
  font-weight: 700; /* Bold - Figma spec */
  line-height: normal;
  letter-spacing: -0.03rem; /* -0.48px */
  text-align: center;
  color: var(--primary-text);
  margin-bottom: 0;
}

.features-hero .section-subtitle {
  font-size: 1.5rem; /* 24px - Figma spec */
  font-weight: 500; /* Medium - Figma spec */
  line-height: 2.25rem; /* 36px */
  letter-spacing: -0.015rem; /* -0.24px */
  text-align: center;
  color: var(--primary-text);
  max-width: 800px;
  margin: 0 auto;
}

.features-hero .hero-cta-wrapper {
  margin-top: 0.5rem;
}

.features-hero .cta-button {
  display: inline-block;
  padding: 0.875rem 3rem;
  background: var(--accent-color);
  color: white;
  font-size: 1.25rem; /* 20px - Figma spec */
  font-weight: 700; /* Bold - Figma spec */
  border-radius: var(--radius-md);
  letter-spacing: -0.0125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(1, 113, 228, 0.25);
  min-width: 300px;
  text-align: center;
}

.features-hero .cta-button:hover {
  background: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 113, 228, 0.3);
}

/* Feature Sections */
.feature-section {
  padding: 4rem 2rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.feature-section-white {
  background: white;
}

.feature-section-gray {
  background: #f5f5f5;
}

.feature-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.feature-section h2 {
  font-size: 3rem; /* 48px - Figma spec */
  font-weight: 700; /* Bold - Figma spec */
  margin: 0;
  letter-spacing: -0.03rem;
  line-height: normal;
  color: var(--primary-text);
}

/* Feature Navigation Arrows */
.feature-nav-arrows {
  display: flex;
  gap: 1rem;
}

.feature-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: white;
  border: 3px solid #1F1E1D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1F1E1D;
  box-sizing: border-box;
  padding: 0;
}

.feature-nav-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.feature-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

/* Feature Card Container */
.feature-card-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Feature Card */
.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: white;
  padding: 3rem 3rem 3rem 4rem;
  border-radius: 60px;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
}

.feature-card-content {
  flex: 1;
  max-width: 355px;
  text-align: left;
}

.feature-card-content h3 {
  font-size: 2.25rem; /* 36px - Figma spec */
  font-weight: 800; /* Extra Bold - Figma spec */
  line-height: normal;
  margin-bottom: 1.5rem;
  color: var(--primary-text);
  letter-spacing: -0.0225rem;
}

.feature-card-content p {
  font-size: 1.25rem; /* 20px - Figma spec */
  line-height: normal;
  color: var(--primary-text);
  font-weight: 500; /* Medium - Figma spec */
  letter-spacing: -0.0125rem;
}

.feature-card-demo {
  flex-shrink: 0;
}

/* Phone Mockup for Features Page */
.feature-card .phone-mockup {
  width: 350px;
  height: 700px;
  position: relative;
  border-radius: 55px;
  background: #1C1C1E;
  padding: 24px 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.1),
    0 30px 60px -12px rgba(31, 30, 29, 0.15);
  box-sizing: border-box;
  overflow: hidden;
}

.feature-card .phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 45px;
  background: white;
  display: block;
}

/* Active Navigation Link Indicator */
.nav-active {
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
  .feature-card {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 40px;
  }

  .feature-card-content {
    max-width: 100%;
    text-align: center;
  }

  .feature-card .phone-mockup {
    transform: scale(0.85);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .features-hero {
    padding: 3rem 1rem 2rem;
    gap: 1rem;
    margin-top: 40px;
  }

  .features-hero h1 {
    font-size: 1.5rem; /* 24px - Figma Mobile spec */
    letter-spacing: -0.015rem;
    max-width: 362px;
  }

  .features-hero .section-subtitle {
    font-size: 1rem; /* 16px - Figma Mobile spec */
    line-height: 1.375rem; /* 22px */
    letter-spacing: -0.01rem;
    max-width: 362px;
  }

  .features-hero .cta-button {
    width: 100%;
    max-width: 362px;
    padding: 0.875rem 2rem;
  }

  .feature-section {
    padding: 2rem 1rem;
  }

  .feature-section-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .feature-section h2 {
    font-size: 1.5rem; /* 24px - Figma Mobile spec */
    flex: 1;
  }

  .feature-nav-arrows {
    gap: 0.5rem;
  }

  .feature-nav-btn {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .feature-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .feature-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .feature-card-content {
    text-align: center;
  }

  .feature-card-content h3 {
    font-size: 1.25rem; /* 20px - Figma Mobile spec */
    margin-bottom: 0.75rem;
  }

  .feature-card-content p {
    font-size: 1rem; /* 16px - Figma Mobile spec */
    line-height: 1.375rem; /* 22px */
  }

  .feature-card .phone-mockup {
    width: 162px;
    height: 320px;
    border-radius: 30px;
    padding: 12px 6px;
    transform: none;
  }

  .feature-card .phone-mockup img {
    border-radius: 24px;
  }

  /* Final CTA Mobile */
  .final-cta {
    padding: 3rem 1rem;
  }

  .final-cta h2 {
    font-size: 1.5rem; /* 24px - Figma Mobile spec */
    max-width: 362px;
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta .cta-subtitle {
    font-size: 1rem; /* 16px - Figma Mobile spec */
    line-height: 1.375rem;
    max-width: 362px;
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta .cta-button-large {
    width: 100%;
    max-width: 362px;
  }

  .final-cta .pricing-guarantee {
    font-size: 0.875rem; /* 14px - Figma Mobile spec */
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .features-hero h1,
  .features-hero .section-subtitle,
  .features-hero .cta-button,
  .final-cta h2,
  .final-cta .cta-subtitle,
  .final-cta .cta-button-large {
    max-width: 100%;
  }
}
