/* -------------------------------------------------------------------------- */
/* === Hero Section (Modified for HTML Background Layer) === */
/* -------------------------------------------------------------------------- */
section.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 100px 0;

  /* CRITICAL: Set position relative for absolute children */
  position: relative;
  /* Original background properties removed */
}

.hero-bg-layer:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 45%);
}

/* NEW: Background Layer for Hero */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Puts the layer behind the content */

  /* Reapply original background properties */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ensure the container content is visible above the background layer */
.hero-container {
  position: relative; /* Necessary for z-index context */
  z-index: 1; /* Place content above the z-index -1 layer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* === Stats Section (Modified for HTML Background Layer) === */
/* -------------------------------------------------------------------------- */
section.stats {
  /* CRITICAL: Set position relative for absolute children */
  position: relative;
  padding: 80px 0;
  text-align: center;
  /* Original background properties removed */
}

/* NEW: Background Layer for Stats */
.stats-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  /* Reapply original background properties */
  background-position: left;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ensure the container content is visible above the background layer */
.container {
  position: relative; /* Necessary for z-index context */
  z-index: 1; /* Place content above the z-index -1 layer */
  /* Assuming .container has global max-width/margin set */
}

/* === Remaining General Styles (Left as is) === */

.hero-content {
  display: flex;
  max-width: 500px;
  gap: 20px;
  flex-direction: column;
  max-width: 500px;
}

.hero-content h1 {
  color: white;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  color: #ffffff;
  font-size: 1.1rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-form input {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ff4b2b;
  border-radius: 5px;
  outline: none;
  width: 100%;
}

.hero-form input::placeholder {
  color: #aaa;
}

.error-text {
  color: #fff;
  background: #ff4b2b;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 3px;
  width: fit-content;
  margin-top: 10px;
}

.btn {
  background-color: #ff4b2b;
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ff6a4b;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 800px;
  width: 100%;
  height: auto;
}

/* Stats related styles */

h2 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #0b1220;
}

.lead {
  color: #6b7785;
  margin-bottom: 44px;
  font-size: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 42px;
  padding: 20px 10px;
}

.stat-item {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.stat-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 8px;
}

.stat-caption {
  color: #6b7785;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  padding: 14px 34px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .stats-bg-layer {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    margin-top: 40px;
    border-radius: 10px;
  }

  .hero-form input {
    width: 100%;
  }

  .stats-grid {
    flex-direction: column;
    gap: 28px;
  }

  .stat-item {
    max-width: 100%;
  }

  .image-grid {
    flex-direction: column;
  }

  .image-grid img {
    width: 100% !important;
    max-height: none !important;
  }

}

section.fitness-software {
  padding: 80px 0;
}

.image-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.image-grid img {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
}

section.features {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.features-grid {
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px 40px;
  justify-items: center;
}

.feature-item {
  max-width: 300px;
  border: 2px dotted #e5e7eb;
  border-radius: 15px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #ff4b2b;
}

.feature-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.favorite-apps-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
}

.favorite-apps-grid img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .favorite-apps-grid {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

.favorite-apps {
  background: #ffff;
  padding: 80px 0;
  text-align: center;
}

.pricing {
  background: #e2e8f0;
  padding: 80px 0 0 0;
  overflow: hidden;
}

.pricing-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.pricing-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
}

.pricing-content {
  text-align: left;
}

@media (max-width: 900px) {
  .pricing-grid {
    flex-direction: column;
    gap: 40px;
  }

  .pricing-content,
  .fitness-journey-heading {
    text-align: center;
  }
}

.coach {
  background: #ffff;
  padding: 80px 0;
}

.cta-section {
  background: #f7f59a;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #0b1220;
  margin-bottom: 16px;
}

.cta-section .lead {
  color: #6b7785;
  margin-bottom: 40px;
}

.cta-section .cta-btn {
  margin-bottom: 20px;
}

.cta-disclaimer {
  color: #6b7785;
  font-size: 0.9rem;
}

.gym-app-features {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.gym-app-grid {
  /* width: 90%;
  max-width: 1200px; */
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.gym-app-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gym-app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-section {
  padding: 80px 0;
  background: #fff;
}

.feature-section:nth-child(even) {
  background: #f9fafb;
}

.feature-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-layout.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  text-align: left;
}

.feature-content h2 {
  margin-bottom: 30px;
}

.feature-list {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.feature-list li::before {
  content: "✓";
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.feature-list h4 {
  font-weight: 600;
  margin-bottom: 5px;
  color: #0b1220;
}

.feature-list p {
  color: #6b7280;
  font-size: 0.9rem;
}

.feature-image {
  flex: 1;
}

.feature-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
}

@media (max-width: 900px) {
  .feature-layout,
  .feature-layout.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .feature-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.management-section {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.management-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

.management-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.management-item img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
  border-radius: 15px;
}

.management-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0b1220;
}

.management-item ul {
  list-style: none;
  text-align: left;
}

.management-item li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #6b7280;
}

.management-item li::before {
  content: "✓";
  color: #ff4b2b;
  margin-right: 12px;
  font-weight: bold;
}

.coaching-experience {
  background: #1a1a1a;
  color: white;
  padding: 80px 0 0 0;
  text-align: center;
  overflow: hidden;
}

.coaching-experience h2 {
  color: white;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.coaching-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.coaching-feature {
  display: flex;
  align-items: center;
  text-align: left;
}

.coaching-feature::before {
  content: "✓";
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.coaching-mockup {
  margin-top: 40px;
}

.coaching-mockup img {
  width: 100%;
  max-width: 1000px;
  border-radius: 15px;
  position: relative;
  bottom: -10px;
}

@media (max-width: 900px) {
  .coaching-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .management-grid {
    flex-direction: column;
    gap: 40px;
  }
}

.gym-app-card img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.gym-app-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0b1220;
}

.gym-app-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.fitness-journey-heading {
  text-align: left;
  max-width: 500px;
}

.image-text-feature-block .feature-layout.reverse {
    flex-direction: row;
}

@media (max-width: 900px) {
  .image-text-feature-block .feature-layout.reverse{
  flex-direction: column;
}
}

.new-home-cta a, .features a {
    border: 2px solid #535353;
    background-color: #000;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 80px;
}
.feature-content-list a{
    display: inline-block;
    background: #0b0b0b;
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    text-align: left;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}