.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(12px);
  opacity: 0;
  transform: scale(1);
  transition: 
    opacity 1.8s ease-in-out, 
    filter 1.8s ease-in-out, 
    transform 6s ease-in-out;
  z-index: -2;
}

#bg1 {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1.05);
}

/* Overlay for readability */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.178) 0%,
    rgba(255, 255, 255, 0.418) 100%
  );
  z-index: -1;
}

/* Scrollable content container */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Header */
.site-header {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  height: auto;
}

.header-logo {
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Hero section */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 1rem 0;
  text-shadow: none;
  animation: fadeInUp 1s ease-out;
}

.hero-title,
.section-title {
  letter-spacing: -0.02em;
}

.feature-title,
.step-content h3 {
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0 0 2rem 0;
  font-weight: 300;
  color: var(--text-secondary);
  text-shadow: none;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-accent)
  );
  box-shadow: 0 10px 30px rgba(67,176,179,0.35);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(67,176,179,0.45);
}

.content-box {
  padding: 4rem 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  animation: fadeInUp 1s ease-out;
}

.content-section {
  position: relative;
  overflow: hidden;

  background:
    url("/images/footsteps-backdrop.png") center / cover no-repeat,
    linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    );

  clip-path: polygon(
    0 5%,
    100% 0,
    100% 95%,
    0 100%
  );

  padding: 4rem 2.5rem;
}

.content-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  width: 16px;
  height: 70%;

  background: linear-gradient(
    to bottom,
    var(--brand-primary) 0%,
    var(--brand-primary) 25%,
    var(--brand-accent) 25%,
    var(--brand-accent) 50%,
    var(--brand-3) 50%,
    var(--brand-3) 75%,
    var(--brand-4) 75%,
    var(--brand-4) 100%
  );

  border-radius: 0 6px 6px 0;
}

@media (max-width: 768px) {
  .content-section {
    clip-path: polygon(
      0 1%,
      100% 0,
      100% 99%,
      0 100%
    );

    padding: 3rem 1.5rem;
  }

  .content-section::before {
    width: 8px;
  }
}

.content-section-info{
  background: rgba(255,255,255,0.75);
  padding: 4rem 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  animation: fadeInUp 1s ease-out;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 40px rgba(15,23,42,0.08);
  border-radius: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--brand-primary);
  text-align: center;
  margin: 0 0 1rem 0;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--brand-primary);
  text-align: center;
  margin: 0 0 3rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card-soft);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How it works section */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-primary);
  /*text-shadow: 2px 2px 8px rgba(0,0,0,0.5);*/
  min-width: 80px;
  text-align: center;
}

.step-content h3 {
  font-size: 1.8rem;
  color: var(--brand-primary);
  margin: 0 0 0.5rem 0;
}

.step-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(244,177,131,0.35),
    rgba(67,176,179,0.35)
  );
}

.cta-large {
  display: inline-block;
  padding: 1.5rem 4rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  /*background: linear-gradient(135deg, #7589d5, #43b0b3);*/
  background: var(--brand-primary);
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(67,176,179,0.5);
  transition: all 0.3s ease;
}

.cta-large:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(67,176,179,0.7);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: white;
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* Responsive */
@media (max-width: 768px) {
  .header-logo {
    max-width: 300px;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
  }

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

  .content-section-info {
    padding: 2rem 1rem;
    margin: 1rem;
  }
}