/* Home hero — copy-first carousel, no product screenshots */

.home-hero {
  --hero-ink: #f7f4ef;
  --hero-muted: rgba(247, 244, 239, 0.8);
  --hero-pad-x: clamp(1rem, 3vw, 1.5rem);
  --hero-pad-bottom: max(1.25rem, env(safe-area-inset-bottom));
  --hero-gold: var(--bs-primary, #efbf04);
  position: relative;
  min-height: min(100svh, 720px);
  background: #0a0a0a;
  color: var(--hero-ink);
  overflow: hidden;
}

.home-hero__viewport {
  position: relative;
  min-height: inherit;
  height: 100%;
}

.home-hero__track {
  display: flex;
  min-height: inherit;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-hero__track::-webkit-scrollbar {
  display: none;
}

.home-hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: inherit;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Fill the media box — <picture> is inline/auto-height, and
   `.page-wrapper img { height: auto }` would otherwise size by aspect
   ratio and make the track taller than the hero (black band on scroll). */
.home-hero__media picture,
.home-hero__media .home-hero__fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.page-wrapper .home-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
}

.home-hero__fallback {
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(239, 191, 4, 0.2), transparent 52%),
    radial-gradient(ellipse 45% 40% at 12% 85%, rgba(239, 191, 4, 0.07), transparent 45%),
    linear-gradient(155deg, #141210 0%, #0a0a0a 48%, #12100c 100%);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(6, 6, 6, 0.92) 0%,
      rgba(6, 6, 6, 0.62) 38%,
      rgba(6, 6, 6, 0.35) 68%,
      rgba(6, 6, 6, 0.4) 100%
    );
}

.home-hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin-inline: 0 auto;
  margin-left: auto;
  margin-right: auto;
  padding:
    clamp(5.25rem, 12vw, 6.5rem)
    var(--hero-pad-x)
    calc(5.5rem + var(--hero-pad-bottom));
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .home-hero__grid {
    max-width: 1140px;
    padding-bottom: calc(4.75rem + var(--hero-pad-bottom));
  }
}

.home-hero__copy {
  max-width: 36rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hero-gold);
}

.home-hero__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--hero-gold);
  border-radius: 1px;
}

.home-hero__title {
  margin: 0 0 0.9rem !important;
  max-width: 14ch;
  font-size: clamp(2.2rem, 7vw, 3.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-shadow: none !important;
}

.home-hero__body {
  margin: 0 0 1.5rem !important;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem) !important;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--hero-muted) !important;
  text-shadow: none !important;
}

.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero secondary on dark photo */
.home-hero__ctas .btn.hero-btn {
  min-height: 52px;
}

.home-hero__ctas .btn.hero-btn.btn-dark,
.home-hero__ctas .btn.hero-btn.bg-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.home-hero__ctas .btn.hero-btn.btn-dark:hover,
.home-hero__ctas .btn.hero-btn.bg-dark:hover,
.home-hero__ctas .btn.hero-btn.btn-dark:focus-visible,
.home-hero__ctas .btn.hero-btn.bg-dark:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.home-hero__ctas .btn.hero-btn.btn-dark .btn-text,
.home-hero__ctas .btn.hero-btn.bg-dark .btn-text,
.home-hero__ctas .btn.hero-btn.btn-dark:hover .btn-text,
.home-hero__ctas .btn.hero-btn.bg-dark:hover .btn-text,
.home-hero__ctas .btn.hero-btn.btn-dark:focus-visible .btn-text,
.home-hero__ctas .btn.hero-btn.bg-dark:focus-visible .btn-text {
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .home-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero__ctas .btn.hero-btn {
    width: 100% !important;
    justify-content: space-between;
  }
}

.home-hero__controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(1.15rem + var(--hero-pad-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-hero__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.home-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.home-hero__dot[aria-current="true"] {
  width: 1.65rem;
  background: var(--hero-gold);
}

.home-hero__dot:focus-visible {
  outline: 2px solid var(--hero-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__slide[aria-hidden="false"] .home-hero__copy {
    animation: heroCopyIn 0.5s ease both;
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__track {
    scroll-behavior: auto;
  }
}

/* Shared landing utilities */
.product-duo-card {
  border-radius: 1.25rem;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-duo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-duo-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.product-duo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.product-duo-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-duo-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.03);
}

.how-step__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--bs-primary);
  color: #111;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-cta-band {
  border-radius: 1.5rem;
  background: #111;
  color: #fff;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .pricing-cta-band {
    padding: 2.75rem 3rem;
  }
}

/* Home page sections (extracted from inline <style>) */
.testimonial-slider .card { min-height: 260px; }
      .testimonial-slider .card-body { padding-top: 1.25rem; padding-bottom: 1.25rem; }
      .page-wrapper img { max-width: 100%; height: auto; }
      .testimonial-slider h4 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      @media (max-width: 991.98px) {
        [data-aos] { transition-duration: 0.45s !important; }
      }
      @media (prefers-reduced-motion: reduce) {
        [data-aos] {
          opacity: 1 !important;
          transform: none !important;
          transition: none !important;
        }
      }

.dashboard-image-card {
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      .dashboard-image-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
      }
      .dashboard-image-card:hover .opacity-0 {
        opacity: 1 !important;
      }
      .dashboard-image-card:hover > div {
        background: rgba(0,0,0,0.5) !important;
      }

.client-demo-home-card {
        border-radius: 16px;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      .client-demo-home-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.1);
      }
      .client-demo-home-thumb {
        background: #f4f8fa;
      }
      .client-demo-home-thumb__img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }

#imageModal .modal-content {
      background: rgba(0, 0, 0, 0.9) !important;
    }
    
    #imageModal .modal-body {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    #imageModal img {
      max-height: 85vh;
      object-fit: contain;
    }
    
    .featured-image-link {
      cursor: pointer;
    }
