/* ============================================
   Hero Section
   ============================================ */

.hero {
  height: calc(100dvh - 126.4px);
  min-height: 600px;
  background-color: rgb(0 0 0 / 65%);
  align-items: center; /* Keeps text vertically centered */
  justify-content: flex-start; /* Aligns content to the left */
  text-align: left; /* Text is now left-aligned */
  display: flex;
  color: var(--bs-white);
  position: relative;
  overflow: hidden;
  z-index: 1;

  @media (width < 1200px) {
    height: calc(100dvh - 126.4px);
  }

  @media (width < 768px) {
    height: calc(100dvh - 120.4px);
  }
}

.hero-headline {
  font-size: 64px;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 720px;
  color: var(--bs-white);
}

.hero-paragraph {
  font-size: 16px;
  margin-bottom: 3rem;
  font-weight: 300;
  color: rgb(255 255 255 / 78%);
  margin-inline: auto;
  margin-inline: 0; /* Align paragraph to the left */
  max-width: 680px; /* Reduced to create a better reading length */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Exception: opacity transition for hero background crossfade; Motion.js does not handle background layer transitions */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-slide-img {
  position: absolute;
  top: 50%;
  right: clamp(2.5rem, 6vw, 7rem);
  width: min(42vw, 620px);
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 34px 46px rgb(0 0 0 / 34%));
  pointer-events: none;
  transform: translateY(-50%) scale(1);
  transform-origin: center;
  transition:
    opacity 0.8s ease,
    transform 5s linear;
  z-index: 1;
}

.hero-slide.active .hero-slide-img {
  transform: translateY(-50%) scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-slide--video .hero-overlay {
  background-color: rgb(0 0 0 / 65%);
}

.hero .container-md {
  position: relative;
  z-index: 3;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  color: var(--bs-white);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

@media (width < 992px) {
  .hero {
    min-height: 620px;
  }

  .hero-slide {
    align-items: center;
    padding-top: 0;
  }

  .hero-headline {
    max-width: 68%;
    font-size: clamp(42px, 8vw, 58px);
  }

  .hero-paragraph {
    max-width: 60%;
    font-size: 15px;
  }

  .hero-slide-img {
    top: 50%;
    right: max(-8rem, -22vw);
    bottom: auto;
    width: min(58vw, 460px);
    max-height: 62%;
    transform: translateY(-50%) scale(1);
  }

  .hero-slide.active .hero-slide-img {
    transform: translateY(-50%) scale(1.06);
  }
}

@media (width < 576px) {
  .hero {
    min-height: 590px;
  }

  .hero-headline {
    max-width: 78%;
    font-size: clamp(36px, 11vw, 44px);
    margin-bottom: 1.5rem;
  }

  .hero-paragraph {
    max-width: 72%;
    margin-bottom: 2rem;
    font-size: 14px;
  }

  .hero-actions {
    max-width: 100%;
    gap: 0.75rem;
  }

  .hero-slide-img {
    right: max(-5rem, -18vw);
    width: min(78vw, 380px);
    max-height: 58%;
  }
}

.hero-nav-btn:hover {
  background-color: rgb(255 255 255 / 28%);
  border-color: rgb(255 255 255 / 50%);
}

.hero-nav-btn--prev {
  left: 24px;
  transform: translateY(-50%) scaleX(-1);
}

.hero-nav-btn--next {
  right: 24px;
}

/* ============================================
  Stats section
   ============================================ */

.section-subtitle.text-center {
  margin-inline: auto;
}

.stats-left-col {
  border-right: 1px solid var(--color-border);
  padding-right: clamp(2rem, 5vw, 5rem);
}

.stats-right-col {
  padding-left: clamp(2rem, 5vw, 5rem);
}

.stats-heading {
  font-size: 44px;
  line-height: 1.1;
  color: var(--brand-blue-color);
  letter-spacing: 0;
}

.stats-body {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  line-height: 1.75;
}

.stats-stat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.stats-stat-row:first-child {
  padding-top: 0;
}

.stats-stat-row:last-child {
  padding-bottom: 0;
}

.stats-stat-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.stats-num-plus {
  min-width: 10rem;
}

.stats-num {
  font-size: 58px;
  line-height: 0.9;
  color: var(--brand-blue-color);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.stats-plus {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand-blue-color);
}

.stats-stat-label {
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--brand-blue-color);
}

.stats-stat-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin: 0;
}

@media (width < 992px) {
  .stats-left-col {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
  }

  .stats-right-col {
    padding-left: 0;
  }

  .stats-num {
    font-size: 3.4rem;
  }
}

@media (width < 576px) {
  .stats-stat-row {
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-num-plus {
    min-width: 7.5rem;
  }

  .stats-num {
    font-size: 2.75rem;
  }

  .stats-plus {
    font-size: 1.6rem;
  }
}

/* ============================================
   Products Section
   ============================================ */

.products-heading {
  font-size: 44px;
  line-height: 1.2;
  color: var(--brand-blue-color);
}

.products-intro {
  font-size: 14px;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  text-wrap: balance;
}

/* ============================================
   Clients Section
   ============================================ */

.clients-description {
  max-width: 680px;
  color: var(--color-muted-foreground);
  text-align: center;
}

.clients-track-wrapper {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    var(--bs-black) 8%,
    var(--bs-black) 92%,
    transparent 100%
  );
}

.clients-track-wrapper--dragging {
  cursor: grabbing;
}

.clients-track {
  overflow: hidden;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
}

.clients-track-inner {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track-inner {
    animation: none !important;
  }
}

.client-heading {
  max-width: 100%;
  font-size: 44px;
  line-height: 1.2;
  color: var(--brand-blue-color);
  text-align: center;
  white-space: nowrap;
}

@media (width < 1200px) {
  .client-heading {
    white-space: normal;
  }
}

.clients-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.25rem;
  flex-shrink: 0;
  min-width: 13rem;
  text-align: center;
}

.clients-item img {
  -webkit-user-drag: none;
  max-width: 10.5rem;
  max-height: 100px;
  object-fit: contain;
}

.clients-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  font-size: 0.25rem;
  color: #a1a1a1;
  line-height: 1;
}

.clients-sep::before {
  content: "●";
}

/* Homepage call to action */
.cta-section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.cta-panel {
  overflow: hidden;
  border: 1px solid rgb(var(--brand-blue-color-rgb) / 20%);
  border-radius: 22px;
  background-color: var(--brand-bg-light);
  background-image: radial-gradient(
    circle,
    rgb(var(--brand-blue-color-rgb) / 15%) 1px,
    transparent 1.25px
  );
  background-size: 18px 18px;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 6vw, 80px);
}

.cta-title {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--brand-blue-color);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.cta-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--color-muted-foreground);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-assurance {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}

.cta-assurance i {
  color: #19a463;
  font-size: 18px;
}

.cta-visual {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
}

.cta-visual-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(82%, 440px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 28px rgb(13 46 101 / 12%));
}

@media (width < 992px) {
  .cta-visual-column {
    display: none;
  }
}
