:root {
  --text-gray: #a2b0c1;
}

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

.hero {
  height: calc(100dvh - 127.5px);
  min-height: 600px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #64748b 100%);
  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 - 115.5px);
  }
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 720px;
}

.hero-tagline {
  color: var(--bs-white);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: none;
}

.hero-paragraph {
  font-size: clamp(1.2rem, 3vw, 1.25rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 300;
  margin-inline: auto;
  margin-inline: 0; /* Align paragraph to the left */
  max-width: 680px; /* Reduced to create a better reading length */
}

.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,
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    transform 5s linear;
  z-index: 1;
}

.hero-slide-img {
  transform: scale(1);
  transform-origin: right center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(19 42 63 / 60%);
  pointer-events: none;
  z-index: 2;
}

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

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  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;
}

.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;
}

/* ============================================
  About Us section
   ============================================ */

.about-heading,
.product-heading {
  font-size: 3.25rem;
  line-height: 1.1;
  color: var(--bs-body-color);
}

.about-heading span {
  color: var(--brand-color);
}

.about-accent-bar {
  width: 40px;
  height: 3px;
  background: var(--brand-color);
  border-radius: 2px;
}

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

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

  &:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
  }
}

.about-num-plus {
  min-width: 11rem;
}

.about-num {
  font-size: 4.75rem;
  line-height: 0.9;
  color: var(--bs-body-color);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.about-plus {
  font-size: 2.5rem;
  line-height: 1;
}

.about-stat-label {
  font-weight: 600;
  margin-bottom: 0.375rem;
}

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

.about-feature-box {
  height: 100%;
  padding-block: 24px;
}

.about-icon-box {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff7f4;
  border: 1px solid #fde1d7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-icon-box i {
  font-size: 2.375rem;
  color: #f04a23;
}

.about-feature-box h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #07132d;
  margin-bottom: 20px;
}

.about-feature-box p {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f2937;
  margin-bottom: 0;
}

.col-lg-3:first-child .about-feature-box {
  padding-left: 0;
}

.col-lg-3:last-child .about-feature-box {
  padding-right: 0;
}

@media (width < 768px) {
  .col-lg-3:not(:last-child) .about-feature-box {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (768px <= width < 992px) {
  .col-lg-3:nth-child(odd):has(.about-feature-box) {
    border-right: 1px solid var(--color-border);
  }

  .col-lg-3:not(:last-child, :nth-last-child(2)):has(.about-feature-box) {
    border-bottom: 1px solid var(--color-border);
  }

  .col-lg-3:nth-child(odd) .about-feature-box {
    padding-right: 16px;
  }

  .col-lg-3:nth-child(even) .about-feature-box {
    padding-left: 16px;
  }
}

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

@media (width >= 992px) {
  .about-left-col {
    padding-right: 3rem;
    border-right: 1px solid var(--color-border);
  }

  .about-right-col {
    padding-left: 3rem;
  }

  .col-lg-3:not(:last-child):has(.about-feature-box) {
    border-right: 1px solid var(--color-border);
  }

  .about-feature-box {
    padding-inline: 16px;
  }
}

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

.clients-description {
  max-width: 680px;
  text-wrap: pretty;
}

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

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

.clients-track {
  overflow: hidden;
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}

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

@keyframes clients-scroll-forward {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.clients-track--forward {
  animation: clients-scroll-forward 80s linear infinite;
}

.clients-track-wrapper:hover .clients-track-inner {
  animation-play-state: paused;
}

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

.clients-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.25rem;
  flex-shrink: 0;
}

.clients-item img {
  max-height: 100px;
}

.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: "●";
}

/*************************************************************************
CTA Section
**************************************************************************/
.cta-section {
  background: var(--brand-darker-color);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.cta-headline {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--bs-white);
}

.cta-body {
  font-size: 1rem;
  color: rgb(255 255 255 / 70%);
  line-height: 1.75;
  max-width: 520px;
}

.cta-card {
  background: var(--brand-dark-color);
  border: 1px solid var(--brand-color);
  border-radius: var(--bs-border-radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgb(var(--brand-color-rgb) / 8%);
}

.cta-card-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-white);
  line-height: 1.2;
}

.cta-card-sub {
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 60%);
  line-height: 1.65;
}

.cta-card .btn-brand-solid {
  width: auto !important;
  min-width: 180px;
  align-self: flex-start;
  padding-inline: 1.5rem;
  white-space: nowrap;
}

@media (width < 1200px) {
  .cta-headline {
    font-size: 46px;
  }
}

@media (width < 992px) {
  .cta-section {
    text-align: center;
  }

  .cta-body {
    max-width: 680px;
    margin-inline: auto;
    font-size: 1rem;
  }

  .cta-card {
    max-width: 520px;
    margin-inline: auto;
    padding: 1.75rem;
    align-items: center;
  }

  .cta-card .btn-brand-solid {
    align-self: center;
  }
}

@media (width < 768px) {
  .cta-headline {
    font-size: 38px;
    line-height: 1.12;
  }

  .cta-body {
    font-size: 0.975rem;
    line-height: 1.7;
  }
}

@media (width < 576px) {
  .cta-headline {
    font-size: 30px;
    line-height: 1.18;
  }

  .cta-card {
    padding: 1.5rem;
  }

  .cta-card-heading {
    font-size: 1.25rem;
  }

  .cta-card-sub {
    font-size: 0.9rem;
  }

  .cta-card .btn-brand-solid {
    min-width: 160px;
    white-space: normal;
  }
}

/* ============================================================
Process Section
===================================================  */
.process-section {
  background-color: var(--brand-dark-color);
  color: var(--bs-white);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

/* Global entry property for animated blocks */
.process-top-row,
.process-step,
.step-arrow,
.process-footer-bar {
  animation-duration: 0.8s;
  animation-fill-mode: both; /* Keeps items hidden until their timer starts */
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1); /* Premium smooth deceleration curve */
}

/* Header & Image Row Alignment */
.process-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  animation-name: fadeInUp;
  animation-delay: 0.1s; /* Header drops first */
}

.process-header {
  flex: 1.2;
}

.process-header .main-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}

.process-header .highlight {
  color: var(--brand-color);
}

.process-header .description {
  color: var(--text-gray);
  line-height: 1.6;
}

.process-quote-icon {
  color: var(--brand-color);
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.process-quote-text {
  color: var(--text-gray);
  font-size: 1.25rem;
}

.process-image-container {
  flex: 1.5;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.process-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 10px 10px var(--brand-dark-color);
}

.process-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Middle Rows Flex System */
.process-flow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 50px;
}

/* Process Card Boxes with crisp borders */
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  border: 1px solid var(--brand-border-dark-color);
  background-color: var(--brand-darker-color);
  border-radius: 12px;
  padding: 56px 16px 32px;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation-name: fadeInUp;
}

/* Boxicon Circle Wrapper sitting half-in, half-out */
.icon-circle {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-color);
  border-radius: 50%;
  background-color: var(--brand-darker-color);
  box-shadow: 0 0 25px rgb(216 75 22 / 20%);
  z-index: 2;

  /* Separate entry scale effect specifically for the hanging icons */
  animation: scaleInCircle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Middle Row Boxicons Specific Sizing */
.process-icon {
  font-size: 2.2rem;
  color: #fff;
  display: inline-block;
  line-height: 1;
}

.step-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-color);
  color: var(--bs-white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 12px;
  border-radius: 20px;
}

/* Content Box Fix */
.step-content-box {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 10px 0 12px;
  text-align: center;

  /* Added font spacing to make headers crisp and matching premium design standards */
  letter-spacing: 0.5px;
}

.process-step p {
  color: var(--text-gray);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 4px;
  text-align: center;
}

/* UPDATED: Absolute Positioned Orange Lines
   Snapping cleanly to uniform bottom of card container with custom spacing.
*/
.bottom-orange-line {
  position: absolute;
  bottom: 15px; /* Anchors exactly 15px up from the card's physical bottom edge */
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 3px;
  background-color: var(--brand-color);
  border-radius: 2px;
}

/* 2. Target the arrow container */
.step-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  /* Positioned in the middle between boxes */
  height: auto;

  /* This ensures the font-based icon centers itself perfectly */
  line-height: 1;
  margin: 0;
}

/* 3. Style the Boxicon itself */
.step-arrow i {
  font-size: 1.25rem; /* Adjust size to match your UI scale */
  color: var(--brand-color); /* Brand color arrow */
  display: block;
}

/* Bottom Pillars Bar grid split into individual cleanly bordered boxes */
.process-footer-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  border-top: 1px solid var(--brand-border-dark-color);
  padding-top: 25px;
  animation-name: fadeInUp;
  animation-delay: 1.3s;
}

/* Box border properties configured for individual feature items */
.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--brand-border-dark-color);
  background-color: var(--brand-darker-color);
  border-radius: 10px;
  padding: 20px;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

/* Bottom Row Boxicons Specific Sizing */
.footer-icon {
  font-size: 2.4rem;
  color: var(--brand-color);
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
}

.footer-text h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bs-white);
}

.footer-text p {
  margin: 3px 0 0;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

/* ==========================================================================
   RESPONSIVE RULES
   ========================================================================== */
@media (width <= 1199px) {
  .process-top-row {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
  }

  .process-header .main-title {
    font-size: 2.5rem;
    display: flex;
    flex-direction: column;
  }

  .icon-circle {
    margin-bottom: 40px;
  }
}

@media (width <= 991px) {
  .process-top-row {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
  }

  .process-image-container {
    justify-content: center;
  }

  .process-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 20px;
  }

  .process-step {
    align-items: center;
    gap: 40px;
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
  }

  .step-arrow {
    display: none;
  }

  .process-footer-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (width <= 575px) {
  .process-footer-bar {
    grid-template-columns: 1fr;
  }

  .process-header .main-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   PRODUCT SECTION
   ========================================================================== */

.product-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 360px;

  @media (width >= 992px) {
    margin-left: auto;
  }
}

.product-main-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.product-main-img {
  height: 360px;
  background: var(--bs-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-grow: 1;
}

.product-main-body {
  padding: 1.5rem;
}

.product-main-name {
  font-family: var(--pl-condensed);
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-main-desc {
  font-family: var(--pl-sora);
  font-size: 0.8125rem;
  color: #52525b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Shared product imagery and links */
.product-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
}

.product-card-link i {
  font-size: 1.25rem;
}

/* Homepage product grid: keep cards equal and center the final row. */
.product-card-grid .product-main-img {
  height: auto;
  aspect-ratio: 4 / 3;
  flex: none;
}

.product-card-grid .product-main-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-lg);
}

.product-card-grid .product-main-name {
  font-size: 1.25rem;
}

@media (width >= 992px) {
  .product-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--spacing-lg);
    margin: 0;
  }

  .product-card-grid > .col-12 {
    grid-column: span 2;
    width: auto;
    padding: 0;
    margin: 0;
  }

  .product-card-grid > .col-12:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* Use artwork bounds so customer logos share a visible height without distortion. */
.clients-section .customer-logo {
  display: block;
  height: var(--spacing-2xl);
  width: auto;
  flex-shrink: 0;
  overflow: hidden;
}

/* ============================================
   FAQ Section
   ============================================ */

.accordion-button:not(.collapsed) {
  color: var(--brand-color);
  background: rgb(var(--brand-color-rgb) / 8%);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--bs-border-color);
  box-shadow: none;
}
