.prayer-flags {
  position: absolute;
  top: 5.25rem;
  left: 50%;
  z-index: 6;
  width: min(920px, 88vw);
  height: 78px;
  transform: translateX(-50%);
  pointer-events: none;
}

.home-intro-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.25rem;
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid rgba(91, 72, 42, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(242, 200, 75, 0.2), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(211, 52, 47, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 251, 240, 0.96), rgba(246, 241, 228, 0.9));
  box-shadow: 0 18px 48px rgba(55, 43, 28, 0.11);
  color: #342918;
}

[data-theme='dark'] .home-intro-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 20%, rgba(242, 200, 75, 0.14), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(211, 52, 47, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(39, 35, 29, 0.98), rgba(28, 31, 35, 0.95));
  color: #f5ecdc;
}

.home-intro-card__eyebrow {
  margin: 0 0 0.75rem;
  color: #9a6d1e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-intro-card__title {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 0.98;
}

.home-intro-card__motto {
  margin: 1rem 0 0;
  color: #6c5430;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
}

[data-theme='dark'] .home-intro-card__motto {
  color: #f2c84b;
}

.home-intro-card__text {
  max-width: 720px;
  margin: 1rem 0 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.86;
}

.home-intro-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.home-intro-card__links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.64rem 1rem;
  background: rgba(42, 33, 18, 0.08);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.home-intro-card__links a:first-child {
  background: #2f8f48;
  color: #fff;
}

.prayer-flags__line {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(83, 63, 35, 0.45), transparent);
  transform: rotate(-2deg);
  transform-origin: center;
}

.prayer-flags__flag {
  position: absolute;
  top: 16px;
  width: 30px;
  height: 42px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 28px rgba(25, 20, 12, 0.14);
  opacity: 0.9;
  transform-origin: top center;
  animation: prayer-flag-wave 3.8s ease-in-out infinite;
}

.prayer-flags__flag::after {
  content: '';
  position: absolute;
  inset: 7px 8px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.prayer-flags__flag:nth-child(2) { left: 3%; background: #1d67b1; animation-delay: -0.2s; }
.prayer-flags__flag:nth-child(3) { left: 13%; background: #f7f4de; animation-delay: -1.1s; }
.prayer-flags__flag:nth-child(4) { left: 23%; background: #d3342f; animation-delay: -0.6s; }
.prayer-flags__flag:nth-child(5) { left: 33%; background: #2f8f48; animation-delay: -1.7s; }
.prayer-flags__flag:nth-child(6) { left: 43%; background: #f2c84b; animation-delay: -0.9s; }
.prayer-flags__flag:nth-child(7) { left: 53%; background: #1d67b1; animation-delay: -1.4s; }
.prayer-flags__flag:nth-child(8) { left: 63%; background: #f7f4de; animation-delay: -0.4s; }
.prayer-flags__flag:nth-child(9) { left: 73%; background: #d3342f; animation-delay: -1.9s; }
.prayer-flags__flag:nth-child(10) { left: 83%; background: #2f8f48; animation-delay: -0.8s; }
.prayer-flags__flag:nth-child(11) { left: 93%; background: #f2c84b; animation-delay: -1.3s; }

@keyframes prayer-flag-wave {
  0%, 100% { transform: rotate(-3deg) skewX(0deg) translateY(0); }
  50% { transform: rotate(4deg) skewX(-5deg) translateY(3px); }
}

@media (max-width: 768px) {
  .prayer-flags {
    top: 4.5rem;
    width: 94vw;
    transform: translateX(-50%) scale(0.82);
  }

  .home-intro-card {
    padding-top: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-flags__flag {
    animation: none;
  }
}
