/* ==========================================================
   BacklinkHub – Hero Section (Startseite)
   ========================================================== */

.hero{
  position:relative;
  color:var(--fg);
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:.85;
  background:
    radial-gradient(1200px 600px at 20% -10%, color-mix(in oklab,var(--brand) 28%, transparent), transparent 60%),
    radial-gradient(960px 520px at 80% 0%, rgba(23,184,176,.20), transparent 60%);
}

.hero-inner{
  position:relative;
  max-width:1200px;
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.5rem;
}

.hero-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.38rem .95rem;
  border-radius:999px;
  border:1px solid color-mix(in oklab, var(--brand) 24%, #ffffff 4%);
  background:linear-gradient(135deg, rgba(18,24,36,.82), rgba(13,19,29,.66));
  box-shadow:0 14px 45px rgba(0,0,0,.35);
  backdrop-filter:blur(10px) saturate(130%);
}
.hero-pill-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:0 0 0 4px rgba(24,172,78,.20);
}
.hero-pill-text{
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}

.hero-title{
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.07;
  font-size:clamp(2.4rem,5.9vw,4.1rem);
  margin:0;
  max-width:16ch;
}
.hero-title-sub{
  font-size:clamp(2rem,4.4vw,3rem);
  font-weight:800;
}
.hero-lead{
  max-width:62rem;
  margin:.9rem auto 0;
  color:var(--muted);
  font-size:1.05rem;
}
.hero-cta{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:1.2rem;
}

.hero-trust{
  width:min(100%, 1040px);
  margin-top:.6rem;
  display:grid;
  gap:.75rem;
}
.hero-trust-kicker{
  margin:0;
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#d5deea;
}
.hero-logo-rail{
  position:relative;
  overflow:hidden;
  padding:1rem 0;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-logo-track{
  display:flex;
  align-items:center;
  gap:1rem;
  width:max-content;
  animation:hero-logo-marquee 28s linear infinite;
}
.hero-logo-item{
  display:grid;
  place-items:center;
  min-width:188px;
  min-height:72px;
  padding:.85rem 1.1rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(8,12,20,.72);
  box-shadow:0 16px 32px rgba(0,0,0,.18);
}
.hero-logo-item img{
  height:28px;
  width:auto;
  max-width:132px;
  opacity:.94;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.hero-logo-rail:hover .hero-logo-track,
.hero-logo-rail:focus-within .hero-logo-track{
  animation-play-state:paused;
}
.hero-trust-note{
  margin:0;
  color:#b9c3cf;
  font-size:.92rem;
}

.hero-score{
  margin-top:2.15rem;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.7rem;
}
.hero-score-caption{
  max-width:34rem;
  text-align:center;
}

.hero-media-wrap{
  position:relative;
  width:100%;
  max-width:1200px;
  aspect-ratio:1296 / 720;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    0 28px 80px rgba(0,0,0,.44),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 0 8px rgba(255,255,255,.02),
    0 0 52px rgba(23,184,176,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    #05070d;
}
.hero-media-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 14%),
    radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,.05), transparent 72%);
  z-index:2;
}

.hero-media-poster,
.hero-media-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:50% 50%;
}

.hero-media-poster{
  opacity:1;
  transition:opacity .22s ease;
}
.hero-media-video{
  opacity:0;
  transition:opacity .22s ease;
}
.hero-score.is-video-ready .hero-media-video{ opacity:1; }
.hero-score.is-video-ready .hero-media-poster{ opacity:0; pointer-events:none; }

@keyframes hero-logo-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-50% - .5rem)); }
}

@media (prefers-reduced-motion: reduce){
  .hero-media-video{ display:none !important; }
  .hero-media-poster{ opacity:1 !important; }
  .hero-logo-track{ animation:none !important; }
}

@media (max-width:900px){
  .hero-logo-item{
    min-width:160px;
    min-height:64px;
  }
  .hero-logo-item img{
    height:24px;
    max-width:116px;
  }
}

@media (max-width:700px){
  .hero{
    padding:8rem 0 2.6rem;
  }
  .hero-pill-text{
    white-space:normal;
    text-align:left;
    font-size:1.15vh;
  }
  .hero-title{
    max-width:14ch;
  }
  .hero-logo-rail{
    mask-image:none;
  }
  .hero-logo-item{
    min-width:140px;
    min-height:58px;
    border-radius:14px;
  }
  .hero-logo-item img{
    height:22px;
    max-width:100px;
  }
  .hero-trust-note{
    font-size:.88rem;
  }
}
