/* ===================== Hero compact (ca pe index, fara 100vh) =====================
   Folosit de paginile legale (legal-notice.html, privacy-policy.html)
   si de landing page-uri (cookie-consent.html, online-shop-requirements.html). */

.first {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(clamp(5rem, 9.35vw, 6rem) + 1.5rem) 1.25rem 3.5rem;
  position: relative;
  isolation: isolate;
  background-color: #00020a;
}
.first::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/heroes/bg-hero-index-mobile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}
.first::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, #00020a);
  pointer-events: none;
}
.first .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.first .logo .grabes {
  flex: none;
  width: 80vw;
  height: 20vh;
}
.first .logo .grabes svg {
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
}
.first .logo .grabes svg .logo-path {
  fill-opacity: 0;
  stroke: #66FCF1;
  stroke-width: 4;
  stroke-dasharray: var(--plen, 15000px);
  stroke-dashoffset: var(--plen, 15000px);
  animation: logo-stroke 1.2s cubic-bezier(0.86, 0, 0.07, 1) 0.1s forwards, logo-fill 0.4s ease-in 1.4s forwards;
}
.first .logo .grabes svg .logo-accent {
  transform: scaleX(0);
  transform-origin: left center;
  animation: logo-line 0.5s cubic-bezier(0.86, 0, 0.07, 1) 1.3s forwards;
}
.first .logo h1 {
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  color: #66FCF1;
  max-width: 90%;
  margin-top: 1.5rem;
}
.first .logo h1 .split-word {
  display: inline-block;
  white-space: nowrap;
}
.first .logo h1 .split-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
}
.first .first__lead {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  line-height: 1.65;
  text-align: center;
  animation: lp-fade-up 0.6s ease 1.6s both;
}
.first .first__lead strong {
  color: #ffffff;
  white-space: nowrap;
}
.first .logo .hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(90vw, 34rem);
  margin-top: 1.6rem;
}
.first .logo .hero-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  width: 100%;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(102, 252, 241, 0.78);
  border-radius: 4px;
  color: #f8fffe;
  font-family: sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.first .logo .hero-cta__btn--primary {
  background-color: #66FCF1;
  color: #00020a;
  box-shadow: 0 1rem 2.4rem rgba(102, 252, 241, 0.16);
}
.first .logo .hero-cta__btn--secondary {
  background-color: rgba(0, 2, 10, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.first .logo .hero-cta__btn:hover,
.first .logo .hero-cta__btn:focus-visible {
  border-color: #ffffff;
}
.first .logo .hero-cta__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}
@media screen and (min-width: 768px) {
  .first {
    padding-bottom: 4.5rem;
  }
  .first::before {
    background-image: url("../img/heroes/bg-hero-index.webp");
  }
  .first .logo .grabes {
    width: 55vw;
    height: 24vh;
  }
  .first .logo h1 {
    max-width: 44rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
  }
  .first .logo .hero-cta {
    flex-direction: row;
    justify-content: center;
    /* randul de butoane creste dupa text (etichetele FR sunt mai lungi) */
    width: auto;
  }
  .first .logo .hero-cta__btn {
    width: auto;
    min-width: 13.5rem;
  }
}
@media screen and (min-width: 1200px) {
  .first .logo .grabes {
    width: 30vw;
    height: 28vh;
  }
}

@keyframes lp-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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