/* ===================== TRUSTED ACROSS EVERY INDUSTRY ===================== */
.industries {
  position: relative;
  padding: clamp(70px, 8vw, 120px) clamp(20px, 4vw, 60px) clamp(70px, 8vw, 110px);
  background: #ffffff;
  overflow: hidden;
}

/* ---------- Heading ---------- */
.ind-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.ind-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #16202f;
}
.ind-title .grad {
  background: linear-gradient(100deg, #5b8def 0%, #2f6bd8 60%, #6aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ind-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 300;
  line-height: 1.6;
  color: #6b7689;
}

/* ---------- Grid ---------- */
.ind-carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2vw, 30px);
}

/* mobile-only controls hidden on desktop */
.ind-arrow,
.ind-mnav { display: none; }

/* ---------- Card ---------- */
.ind-card {
  position: relative;
  min-height: clamp(380px, 34vw, 440px);
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(40, 60, 110, 0.13);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.ind-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 66px rgba(40, 60, 110, 0.2);
}

.ind-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.ind-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(244, 246, 252, 0.98) 0%,
    rgba(244, 246, 252, 0.95) 36%,
    rgba(244, 246, 252, 0.45) 62%,
    rgba(244, 246, 252, 0.08) 100%);
}

/* fade the bottom of the card into the white background (no hard cut) */
.ind-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30%;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.ind-content {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 2.4vw, 38px);
  max-width: 75%;
}

.ind-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  color: #16202f;
  margin-bottom: 12px;
}
.ind-card-desc {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: #4a5468;
  margin-bottom: 22px;
  max-width: 380px;
}

/* ---------- Animated capsule list ---------- */
.ind-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
}
.ind-track {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.ind-pill {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  color: #3a4256;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.5s ease, box-shadow 0.5s ease;
}
/* default white pill */
.ind-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(80, 110, 170, 0.20);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -2;
}
/* blue fill that fades in smoothly when active */
.ind-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #4a90f0, #2f6bd8);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.ind-pill.active {
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 107, 216, 0.38);
}
.ind-pill.active::after { opacity: 1; }

/* ---------- CTA bar ---------- */
.ind-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: clamp(24px, 2.4vw, 32px) auto 0;
  padding: clamp(22px, 2.4vw, 32px) clamp(26px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(95, 141, 239, 0.16), rgba(47, 107, 216, 0.12));
  border: 1px solid rgba(95, 141, 239, 0.28);
}
.ind-cta-tx strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2f6bd8;
  margin-bottom: 4px;
}
.ind-cta-tx p {
  font-size: 0.96rem;
  color: #54607a;
}
.ind-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4a90f0, #2f6bd8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px rgba(47, 107, 216, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ind-contact svg { width: 20px; height: 20px; }
.ind-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 107, 216, 0.45);
}

/* ---------- Reveal ---------- */
.industries .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.industries .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive: mobile carousel ---------- */
@media (max-width: 880px) {
  .ind-content {
    max-width: 100%;
    padding: 24px 20px;
  }
  .ind-card-desc { max-width: 100%; }
  .ind-pill {
    font-size: clamp(0.72rem, 3.3vw, 0.84rem);
    padding: 7px 13px;
    max-width: 100%;
  }

  .ind-overlay {
    background: linear-gradient(165deg,
      rgba(244, 246, 252, 0.97) 0%,
      rgba(244, 246, 252, 0.86) 45%,
      rgba(244, 246, 252, 0.4) 100%);
  }
  .ind-cta { flex-direction: column; align-items: flex-start; }

  /* coverflow swipe carousel — one card in focus */
  .ind-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 30px 5% 20px;
  }
  .ind-grid::-webkit-scrollbar { display: none; }
  .ind-card {
    flex: 0 0 90%;
    margin: 0 5px;
    scroll-snap-align: center;
    min-height: clamp(460px, 126vw, 580px);
    will-change: transform;
  }
  /* override the reveal transition so coverflow scale tracks the swipe instantly */
  .industries .ind-card { transition: none; }

  /* floating direction arrows */
  .ind-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #2f6bd8;
    box-shadow: 0 10px 26px rgba(40, 60, 110, 0.22);
    cursor: pointer;
    z-index: 6;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .ind-arrow.next { right: 4px; }
  .ind-arrow.prev { left: 4px; }
  .ind-arrow svg { width: 24px; height: 24px; }
  .ind-arrow:active { transform: translateY(-50%) scale(0.9); }

  /* hidden state (slides out toward its edge) */
  .ind-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
  .ind-arrow.next.is-hidden { transform: translateY(-50%) translateX(14px) scale(0.8); }
  .ind-arrow.prev.is-hidden { transform: translateY(-50%) translateX(-14px) scale(0.8); }

  /* dots + swipe hint */
  .ind-mnav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
  }
  .ind-dots { display: flex; gap: 8px; }
  .ind-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: #c3cce0;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
  }
  .ind-dot.active { width: 26px; background: #2f6bd8; }
  .ind-swipe {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #7a86a0;
  }
}

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