/* ==========================================================================
   VORA — Hero section
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-white);
}

.hero__decoration {
  position: absolute;
  top: -52px;
  left: -52px;
  width: 350px;
  height: 350px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* Left column (content + buttons) stacks vertically; the ticker is positioned
   absolutely on the right on desktop, but flows in-between on mobile. */
.hero__container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 838px;
  padding: 60px 30px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 46%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 8px 20px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.hero__title {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero__body {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-secondary);
  max-width: 460px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 46%;
}

/* ---------- Image ticker (two vertical marquee columns, right side) ---------- */
.hero__ticker {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 30px;
  width: 48%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  overflow: hidden;
}

.hero__ticker-col {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__ticker-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  will-change: transform;
}

.hero__ticker-col--up .hero__ticker-track {
  animation: hero-scroll-up 26s linear infinite;
}

.hero__ticker-col--down .hero__ticker-track {
  animation: hero-scroll-down 26s linear infinite;
}

.hero__ticker-item {
  width: 100%;
  aspect-ratio: 0.86 / 1;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__ticker-item img,
.hero__ticker-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes hero-scroll-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ticker-col--up .hero__ticker-track,
  .hero__ticker-col--down .hero__ticker-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .hero__container {
    min-height: 720px;
    padding: 40px 24px 70px;
  }

  .hero__content,
  .hero__buttons {
    max-width: 50%;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__ticker {
    right: 24px;
    width: 46%;
  }
}

@media (max-width: 809px) {
  .hero__container {
    min-height: 0;
    justify-content: flex-start;
    padding: 30px 20px 50px;
    gap: 22px;
  }

  .hero__content {
    max-width: none;
    width: 100%;
  }

  .hero__buttons {
    max-width: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__body {
    max-width: none;
  }

  /* Mobile: ticker flows between the body and the buttons as ONE horizontal
     carousel row (static, not absolute). */
  .hero__ticker {
    position: static;
    height: auto;
    width: 100%;
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .hero__ticker-col--down {
    display: none;
  }

  .hero__ticker-col--up {
    height: auto;
    overflow: hidden;
  }

  .hero__ticker-col--up .hero__ticker-track {
    flex-direction: row;
    gap: 12px;
    width: max-content;
    animation: hero-scroll-x 24s linear infinite;
  }

  .hero__ticker-item {
    width: 200px;
    aspect-ratio: 3 / 2;
  }

  .hero__decoration {
    display: none;
  }
}

@keyframes hero-scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ticker-col--up .hero__ticker-track {
    animation: none;
  }
}
