/* ===== VIDEO BACKGROUND SECTION ===== */
#video-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;           /* sub content */
  overflow: hidden;
  pointer-events: none;  /* să nu blocheze click-urile */
}

/* video */
#video-bg video,
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
  transform: translateZ(0);
  transition: opacity .5s ease-out;
}

/* overlay de culoare peste video */
#video-bg .video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

/* stratul negru pentru fade înainte de pornire video */
#video-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity .4s ease-out;
  z-index: 2;
}

/* font global – dacă vrei să rămână aici */
body {
  font-family: 'Inter', Arial, sans-serif;
}

/* Index page composition */
.index-hero {
  display: flex;
  align-items: center;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding-top: clamp(7rem, 12vh, 10rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.index-hero__content {
  width: min(100%, 48rem);
  text-align: left;
}

.index-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(147, 197, 253, .42);
  border-radius: .375rem;
  background: rgba(8, 22, 48, .48);
  color: #bfdbfe;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.index-hero__title {
  max-width: 12ch;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .62);
}

.index-hero__lead {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .8);
}

.index-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.index-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: .9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.index-cta:hover {
  transform: translateY(-2px);
}

.index-cta--primary {
  background: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 14px 35px rgba(29, 78, 216, .35);
  color: #fff;
}

.index-cta--primary:hover {
  background: #2563eb;
}

.index-cta--secondary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(16px);
}

.index-cta--secondary:hover {
  background: rgba(255, 255, 255, .17);
}

.index-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 34rem);
  margin: 1.25rem 0 0;
  padding: .85rem 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .375rem;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px);
}

.index-trust li {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: 0 .8rem;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.index-trust li:last-child {
  border-right: 0;
}

.index-trust strong {
  font-size: .88rem;
}

.index-trust span {
  color: rgba(255, 255, 255, .66);
  font-size: .72rem;
}

.index-glass-card,
.index-section-panel,
.index-bottom-card {
  border-radius: .375rem;
}

.index-route-card {
  border-radius: .375rem;
}

@media (max-width: 767px) {
  #video-bg video,
  #bg-video,
  #hero-fallback {
    object-position: 58% center;
  }

  #video-bg .video-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, .92) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 72%);
  }

  .index-hero {
    min-height: 100svh;
    align-items: flex-start;
    padding: clamp(8.25rem, 18svh, 10rem) 1rem max(1.5rem, env(safe-area-inset-bottom));
  }

  .index-hero__title {
    max-width: 10ch;
    font-size: clamp(2.5rem, 11.6vw, 3.4rem);
    letter-spacing: -.052em;
    line-height: .94;
  }

  .index-hero__lead {
    margin-top: 1rem;
    font-size: .98rem;
    line-height: 1.55;
  }

  .index-eyebrow {
    margin-bottom: .8rem;
    font-size: .66rem;
    letter-spacing: .11em;
  }

  .index-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
    margin-top: 1.35rem;
  }

  .index-cta {
    width: 100%;
    min-height: 3.55rem;
    border-radius: 0;
  }

  .index-trust {
    width: 100%;
    margin-top: .85rem;
    padding: .72rem 0;
  }

  .index-trust li {
    padding: 0 .55rem;
  }

  .index-trust strong {
    font-size: .78rem;
  }

  .index-trust span {
    font-size: .64rem;
    line-height: 1.2;
  }

  .index-section,
  .index-section--intro {
    padding: 1rem 0 1.75rem;
  }

  .index-feature-grid,
  .index-card-rail {
    display: flex;
    gap: .8rem;
    width: 100%;
    padding: 0 1rem .4rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .index-feature-grid::-webkit-scrollbar,
  .index-card-rail::-webkit-scrollbar {
    display: none;
  }

  .index-glass-card,
  .index-route-card {
    flex: 0 0 min(82vw, 22rem);
    scroll-snap-align: start;
  }

  .index-glass-card {
    padding: 1.25rem;
    background: rgba(0, 0, 0, .68);
  }

  .index-glass-card h2 {
    font-size: 1.22rem;
    line-height: 1.35;
  }

  .index-glass-card p:last-child {
    font-size: .9rem;
    line-height: 1.6;
  }

  .index-section-panel {
    margin: 0 .75rem;
    padding: 1.25rem 0 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, .7);
  }

  .index-bottom-grid {
    gap: .8rem;
    margin: 0 .75rem;
  }

  .index-bottom-card {
    padding: 1.25rem;
    background: rgba(0, 0, 0, .7);
  }

  .index-bottom-card h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .index-bottom-card .leading-7 {
    font-size: .92rem;
    line-height: 1.65;
  }

  .index-section-panel > .flex {
    padding: 0 1.25rem;
  }

  .index-section-panel h2 {
    font-size: 1.65rem;
    line-height: 1.16;
    text-wrap: balance;
  }

  .index-card-rail {
    margin-top: 1.25rem;
  }

  .index-route-card {
    min-height: 10.5rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, .07);
  }

  .index-route-card h3 {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-cta {
    transition: none;
  }

  .index-cta:hover {
    transform: none;
  }
}
