/* Çağla & Yusuf - hero bandı ve dekoratif katmanlar */

.page {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--color-bg);
  overflow: hidden;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--gradient-hero), #c05f8e;
  overflow: hidden;
}

/* Kartın altındaki puslu zemin; çiçek halkasını yumuşatır. */
.hero__haze {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 22%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 240, 246, 0.55) 45%,
    rgba(240, 250, 235, 0.85) 100%
  );
  filter: blur(6px);
}

.hero__blossoms {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Tek tek çiçekler JS tarafından üretilir; ölçü ve renk satır içi gelir. */
.blossom {
  position: absolute;
  display: block;
}

.blossom__petal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 50%;
  border-radius: 60% 40% 55% 45% / 60% 55% 45% 40%;
}

/* --- Kemer kart ------------------------------------------------------- */

.hero__card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(12.5rem, 44vw, 23.75rem);
  height: min(74svh, 38.75rem);
  padding: 30px 18px;
  border-radius: var(--radius-pill) var(--radius-pill) 10px 10px;
  background: linear-gradient(180deg, #fff 0%, #fff 74%, var(--color-surface-soft) 100%);
  box-shadow: var(--shadow-arch);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
}

.hero__name {
  font-size: var(--text-hero);
  line-height: 1.05;
}

.hero__amp {
  margin: 4px 0;
  font-size: var(--text-hero-amp);
  line-height: 1;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(1.75rem, 7vw, 2.625rem);
  color: var(--color-accent);
  white-space: nowrap;
}

.hero__scroll:hover {
  color: var(--color-accent-strong);
}

.hero__chevron {
  font-size: 1.1875rem;
  line-height: 1;
  animation: nudge 2.4s ease-in-out infinite;
}

.hero__scroll-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* --- Düşen yapraklar -------------------------------------------------- */

.petals {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

/*
 * İki eş zamanlı hareket: düşüş `transform`, salınım bağımsız `translate`
 * özelliğinde. İkisi de compositor üzerinde kalır, düzen tetiklemez.
 */
.petal {
  position: absolute;
  top: 0;
  display: block;
  border-radius: 58% 42% 60% 40% / 62% 58% 42% 38%;
  will-change: transform, translate;
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--dx, 20px), 108vh, 0) rotate(320deg);
  }
}

@keyframes petalSway {
  0%,
  100% {
    translate: -10px 0;
  }
  50% {
    translate: 12px 0;
  }
}

/* Hareket azaltma tercihinde yapraklar tamamen kalkar. */
@media (prefers-reduced-motion: reduce) {
  .petals {
    display: none;
  }

  .hero__chevron {
    animation: none;
  }
}
