/* ==========================================================================
   01 — hero
   No hover states anywhere on this section; the design has none.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero__inner {
  padding-top: 72px;
  padding-bottom: 0;
  text-align: center;
}

/* --- eyebrow badge -------------------------------------------------------- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* --- headline ------------------------------------------------------------- */
.hero__title {
  font-weight: 800;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 34px auto 0;
  max-width: 900px;
}

.hero__title-accent {
  color: var(--pink);
  font-style: italic;
}

/* --- lede ----------------------------------------------------------------- */
.hero__lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin: 26px auto 0;
  text-wrap: pretty;
}

/* --- CTAs ----------------------------------------------------------------- */
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease; /* dead code in the design — no hover rule exists */
}

.hero__cta--primary {
  background: var(--indigo);
  color: var(--white);
}

.hero__cta--ghost {
  background: var(--white);
  color: var(--indigo);
  border: 1.5px solid var(--line-3);
}

.hero__cta-arrow { font-size: 18px; }

/* --- trust line ----------------------------------------------------------- */
.hero__trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 500;
}

/* --- photo strip marquee -------------------------------------------------- */
.hero__strip {
  margin-top: 44px;
  padding-top: 30px;
  padding-bottom: 96px;
  overflow: hidden;
}

/* Track holds the nine tiles twice, so translateX(-50%) loops seamlessly.
   Measured width at 1440: 5706px = 2 x (9x300 + 8x18) + 18 gap between groups.
   @keyframes waveDrift lives in globals.css — do not redefine it. */
.hero__strip-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: waveDrift 70s linear infinite;
}

.hero__strip-group {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero__tile {
  width: 300px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  background: var(--grad-slot) center center / cover;
}

.hero__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

/* Mor blur katmani - her zaman acik. */
.hero__tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(108, 99, 255, .16);
  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
  pointer-events: none;
  transition: opacity .3s ease, backdrop-filter .3s ease;
}

/* Hover'da mor sis kalkar, etiket net gorunur. */
.hero__tile:hover::before {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

/* Etiket normalde gizli; hover'da kartin ortasinda belirir. */
.hero__tile span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  line-height: 1.45;
  text-align: center;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(13, 16, 96, .45);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.hero__tile:hover span {
  opacity: 1;
  transform: translateY(0);
}

.hero__tile-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__tile-desc {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: .88;
}

/* Per-tile artwork. Tiles 4 and 7 are .jpg, the rest .png.
   background-size / -position are inherited from the .hero__tile shorthand. */
.hero__tile--1 { background-image: url('../../public/images/hero-strip-1.png'); }
.hero__tile--2 { background-image: url('../../public/images/hero-strip-2.png'); }
.hero__tile--3 { background-image: url('../../public/images/hero-strip-3.png'); }
.hero__tile--4 { background-image: url('../../public/images/hero-strip-4.jpg'); }
.hero__tile--5 { background-image: url('../../public/images/hero-strip-5.png'); }
.hero__tile--6 { background-image: url('../../public/images/hero-strip-6.png'); }
.hero__tile--7 { background-image: url('../../public/images/hero-strip-7.jpg'); }
.hero__tile--8 { background-image: url('../../public/images/hero-strip-8.png'); }
.hero__tile--9 { background-image: url('../../public/images/hero-strip-9.png'); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  /* Verified on the design at 390px: 56px inner padding, and the h1 keeps its
     source clamp — clamp(48px, 6.4vw, 84px) floors at 48px, which is exactly
     what the design renders. No mobile font-size override. */
  .hero__inner { padding-top: 56px; padding-bottom: 56px; }

  /* Wraps to two lines at 390px; keep it centred rather than ragged. */
  .hero__trust { text-align: center; }

  /* The strip keeps its 96px bottom padding at 390px on the design. */
}

/* --- headline word rotator ------------------------------------------------ */
.hero__rotator {
  display: block;
  position: relative;
  height: 1.16em;
}

.hero__rotator-track {
  display: block;
  position: absolute;
  inset: 0;
}

.hero__rotator-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  line-height: 1.16;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: heroRotate 15.4s cubic-bezier(.22, 1, .36, 1) infinite;
}

/* Yedi kelime, kelime başına 2.2s. Toplam döngü 7 x 2.2 = 15.4s.
   Keyframe yüzdeleri, üç kelimelik hâlin mutlak sürelerini korur:
   giriş 0.462s, tam görünür 1.782s'ye kadar, çıkış 2.376s. */
.hero__rotator-word:nth-child(2) { animation-delay:  2.2s; }
.hero__rotator-word:nth-child(3) { animation-delay:  4.4s; }
.hero__rotator-word:nth-child(4) { animation-delay:  6.6s; }
.hero__rotator-word:nth-child(5) { animation-delay:  8.8s; }
.hero__rotator-word:nth-child(6) { animation-delay: 11.0s; }
.hero__rotator-word:nth-child(7) { animation-delay: 13.2s; }

@keyframes heroRotate {
  0%    { opacity: 0; transform: translateY(-.26em) scale(.985); filter: blur(1.5px); }
  3%    { opacity: 1; transform: translateY(0)      scale(1);   filter: blur(0); }
  11.6% { opacity: 1; transform: translateY(0)      scale(1);   filter: blur(0); }
  15.4% { opacity: 0; transform: translateY(.26em)  scale(.985); filter: blur(1.5px); }
  100%  { opacity: 0; transform: translateY(.26em)  scale(.985); filter: blur(1.5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__rotator-word { animation: none; opacity: 0; filter: none; transform: none; }
  .hero__rotator-word:first-child { opacity: 1; }
}
