.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  background-color: #000000; /* Main background color */
  color: #FFFFFF; /* White text for dark background */
  padding: var(--header-offset, 120px) 20px 60px; /* Adjust padding for fixed header */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__about-section,
.page-index__features-section,
.page-index__promo-section,
.page-index__guide-section,
.page-index__app-download {
  padding: 80px 0;
  text-align: center;
  background-color: #FFFFFF; /* Light background for content sections */
}

.page-index__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: #000000;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #333333;
}

.page-index__section-text--small {
  font-size: 0.95em;
  margin-top: 40px;
}

.page-index__section-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__section-text a:hover {
  text-decoration: underline;
}

.page-index__button--learn-more,
.page-index__button--start-now {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--learn-more:hover,
.page-index__button--start-now:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

.page-index__features-grid,
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__feature-card,
.page-index__promo-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__feature-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-image,
.page-index__promo-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide in cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-index__feature-title,
.page-index__promo-title,
.page-index__step-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__feature-text,
.page-index__promo-text,
.page-index__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1; /* Ensures text takes available space */
  margin-bottom: 20px;
}

.page-index__button--feature,
.page-index__button--promo {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 25px;
  font-size: 1em;
  margin-top: auto; /* Pushes button to bottom of card */
}

.page-index__button--feature:hover,
.page-index__button--promo:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

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

.page-index__step-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-index__step-card:nth-child(odd) {
  background-color: #e8e8e8;
}

.page-index__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-index__app-text-wrapper {
  flex: 1;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__button--download-app {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 30px;
}

.page-index__button--download-app:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text-wrapper {
    margin-bottom: 30px;
  }
  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure padding top is applied */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__button {
    width: 95%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__features-grid, .page-index__promo-grid, .page-index__guide-steps {
    gap: 20px;
  }
  .page-index__feature-card, .page-index__promo-card, .page-index__step-card {
    padding: 20px;
  }
}