/* style/app-features.css */

/* Variables */
:root {
  --page-app-features-primary-color: #11A84E;
  --page-app-features-secondary-color: #22C768;
  --page-app-features-background-color: #08160F;
  --page-app-features-card-bg-color: #11271B;
  --page-app-features-text-main-color: #F2FFF6;
  --page-app-features-text-secondary-color: #A7D9B8;
  --page-app-features-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-app-features-border-color: #2E7A4E;
  --page-app-features-glow-color: #57E38D;
  --page-app-features-gold-color: #F2C14E;
  --page-app-features-divider-color: #1E3A2A;
  --page-app-features-deep-green-color: #0A4B2C;
}

.page-app-features {
  font-family: 'Arial', sans-serif;
  color: var(--page-app-features-text-main-color); /* Light text for dark background */
  background-color: var(--page-app-features-background-color);
  line-height: 1.6;
}

.page-app-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content below */
  text-align: center;
  overflow: hidden;
}

.page-app-features__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-app-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-app-features__hero-content {
  position: relative; /* Ensure content is above image but in normal flow */
  z-index: 10; /* Ensure text is above dimming filter */
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly */
  padding: 30px;
  background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for text block */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-app-features__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-app-features-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-app-features__hero-description {
  font-size: 1.15rem;
  color: var(--page-app-features-text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-app-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-app-features__btn-primary,
.page-app-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.page-app-features__btn-primary {
  background: var(--page-app-features-button-gradient);
  color: var(--page-app-features-text-main-color);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-app-features__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-app-features__btn-secondary {
  background: var(--page-app-features-card-bg-color);
  color: var(--page-app-features-primary-color);
  border: 2px solid var(--page-app-features-primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.page-app-features__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--page-app-features-primary-color);
  color: var(--page-app-features-text-main-color);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.5);
}

.page-app-features__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-app-features-background-color);
  text-align: center;
}

.page-app-features__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-app-features__video-container {
  width: 100%; /* Desktop must have width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-app-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.page-app-features__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--page-app-features-background-color);
}

.page-app-features__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-app-features__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--page-app-features-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-app-features__section-description {
  font-size: 1.05rem;
  color: var(--page-app-features-text-secondary-color);
  max-width: 800px;
  margin: 0 auto;
}

.page-app-features__text-block {
  margin-bottom: 60px;
  text-align: justify;
}

.page-app-features__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--page-app-features-text-main-color);
}

.page-app-features__text-block h2 {
  margin-bottom: 25px;
}

.page-app-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-app-features__feature-card {
  background-color: var(--page-app-features-card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-app-features-border-color);
}

.page-app-features__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--page-app-features-glow-color);
}

.page-app-features__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

.page-app-features__feature-title {
  font-size: 1.5rem;
  color: var(--page-app-features-primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-app-features__feature-title a {
  color: inherit;
  text-decoration: none;
}

.page-app-features__feature-title a:hover {
  text-decoration: underline;
}

.page-app-features__feature-description {
  font-size: 0.95rem;
  color: var(--page-app-features-text-secondary-color);
}

.page-app-features__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-app-features__benefits-list li {
  background-color: var(--page-app-features-card-bg-color);
  border-left: 5px solid var(--page-app-features-primary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.page-app-features__benefit-title {
  font-size: 1.4rem;
  color: var(--page-app-features-primary-color);
  margin-bottom: 10px;
}

.page-app-features__benefit-title + p {
  font-size: 1rem;
  color: var(--page-app-features-text-secondary-color);
}

.page-app-features__download-section {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.page-app-features__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-app-features__step-card {
  background-color: var(--page-app-features-card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-app-features-border-color);
}

.page-app-features__step-image {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Keep full image visible */
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-app-features__step-title {
  font-size: 1.3rem;
  color: var(--page-app-features-primary-color);
  margin-bottom: 10px;
}

.page-app-features__step-title + p {
  font-size: 0.95rem;
  color: var(--page-app-features-text-secondary-color);
}

.page-app-features__cta-buttons--center {
  margin-top: 40px;
}

.page-app-features__faq-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.page-app-features__faq-item {
  background-color: var(--page-app-features-card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border: 1px solid var(--page-app-features-border-color);
}

.page-app-features__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-app-features-text-main-color);
  position: relative;
}

.page-app-features__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-app-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-app-features__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-app-features__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-app-features-primary-color);
  transition: transform 0.3s ease;
}

.page-app-features__faq-item[open] .page-app-features__faq-toggle {
  transform: rotate(45deg);
}

.page-app-features__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-app-features-text-secondary-color);
  line-height: 1.7;
  text-align: justify;
}

.page-app-features__faq-answer p {
  margin-bottom: 10px;
}

.page-app-features__faq-answer a {
  color: var(--page-app-features-primary-color);
  text-decoration: underline;
}

.page-app-features__conclusion-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--page-app-features-deep-green-color);
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.page-app-features__conclusion-section .page-app-features__section-title {
  color: var(--page-app-features-gold-color);
}

.page-app-features__conclusion-section .page-app-features__section-description {
  margin-bottom: 30px;
}

.page-app-features__copyright-info {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--page-app-features-deep-green-color);
  color: var(--page-app-features-text-secondary-color);
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid var(--page-app-features-divider-color);
}

/* --- Responsive Styles --- */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
  .page-app-features__hero-content {
    margin-top: -100px;
    padding: 25px;
  }

  .page-app-features__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-app-features__hero-description {
    font-size: 1.1rem;
  }

  .page-app-features__btn-primary,
  .page-app-features__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-app-features__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }

  .page-app-features__feature-card,
  .page-app-features__step-card {
    padding: 25px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-app-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-app-features__hero-section {
    padding: 10px 15px 40px;
  }

  .page-app-features__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 20px;
    width: calc(100% - 30px); /* Add padding to sides */
  }

  .page-app-features__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-app-features__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-app-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-app-features__btn-primary,
  .page-app-features__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-app-features__cta-buttons,
  .page-app-features__button-group,
  .page-app-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-app-features__video-section {
    padding: 10px 15px;
  }

  .page-app-features__video-wrapper {
    margin-top: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-app-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-app-features__content-area {
    padding: 40px 15px;
  }

  .page-app-features__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-app-features__section-description,
  .page-app-features p,
  .page-app-features li p {
    font-size: 0.95rem;
  }

  .page-app-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-app-features__section,
  .page-app-features__card,
  .page-app-features__container,
  .page-app-features__feature-card,
  .page-app-features__step-card,
  .page-app-features__download-section,
  .page-app-features__faq-section,
  .page-app-features__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-app-features__feature-card,
  .page-app-features__step-card {
    padding: 20px;
  }

  .page-app-features__feature-image,
  .page-app-features__step-image {
    height: auto; /* Allow height to adjust */
    max-height: 250px; /* Cap max height for mobile */
  }

  .page-app-features__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-app-features__faq-answer {
    padding: 0 20px 15px;
  }

  .page-app-features__copyright-info {
    padding: 20px 15px;
  }
}