/* ===== Dark Hero with Scrolling Image Columns ===== */

/* Slide-from-right entrance animation */
.hero-slide-in {
  opacity: 0;
  transform: translateX(60px);
  animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide-in.delay-100 {
  animation-delay: 0.15s;
}

.hero-slide-in.delay-200 {
  animation-delay: 0.35s;
}

.hero-slide-in.delay-300 {
  animation-delay: 0.55s;
}

.hero-slide-in.delay-400 {
  animation-delay: 0.75s;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero section */
.hero-dark {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #f4f5f7;
  overflow: hidden;
  padding-top: 100px;
}

/* Subtle dot-grid pattern overlay */
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
}

/* Ambient glow */
.hero-dark-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.hero-dark-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  bottom: 10%;
  right: 20%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Layout */
.hero-dark-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 100px);
}

/* Text side */
.hero-dark-text {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 3rem;
}

.hero-dark-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: #8b5cf6;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-dark-badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.hero-dark-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-dark-title .hero-highlight {
  background: linear-gradient(270deg, #8b5cf6, #d946ef, #3b82f6, #8b5cf6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradientShift 6s ease infinite;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-dark-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-dark-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #8b5cf6;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
  border: none;
  cursor: pointer;
}

.hero-btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: white;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-secondary:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.hero-dark-images {
  flex: 1;
  display: flex;
  gap: 12px;
  height: 70vh;
  min-height: 420px;
  max-height: 600px;
  max-width: 380px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
}

/* Each column */
.hero-scroll-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Scrolling inner track */
.hero-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

/* Scroll UP animation */
.hero-scroll-col--up .hero-scroll-track {
  animation: heroScrollUp 35s linear infinite;
}

/* Scroll DOWN animation */
.hero-scroll-col--down .hero-scroll-track {
  animation: heroScrollDown 40s linear infinite;
}

/* Third column, slightly different speed */
.hero-scroll-col--up-slow .hero-scroll-track {
  animation: heroScrollUp 45s linear infinite;
}

@keyframes heroScrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes heroScrollDown {
  0% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

/* Image cards */
.hero-img-card {
  border-radius: 0.875rem;
  overflow: hidden;
  position: relative;
  background: #f0eaff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.5s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero-img-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
  transform: scale(1.02);
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.hero-img-card:hover img {
  transform: scale(1.05);
}

/* Different aspect ratios for visual variety */
.hero-img-card--tall {
  aspect-ratio: 3 / 4;
}

.hero-img-card--wide {
  aspect-ratio: 4 / 3;
}

.hero-img-card--square {
  aspect-ratio: 1 / 1;
}

/* Pause on hover */
.hero-dark-images:hover .hero-scroll-track {
  animation-play-state: paused;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .hero-dark-inner {
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
  }

  .hero-dark-text {
    flex: unset;
    max-width: 100%;
    text-align: center;
    padding-left: 0;
  }

  .hero-dark-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-dark-buttons {
    justify-content: center;
  }

  .hero-dark-images {
    width: 100%;
    max-width: 100%;
    height: 40vh;
    min-height: 280px;
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .hero-dark {
    padding-top: 80px;
  }

  .hero-dark-badge {
    margin-top: 20px;
  }

  .hero-dark-inner {
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero-dark-title {
    font-size: 3rem;
  }

  .hero-dark-desc {
    font-size: 15px;
  }

  .hero-dark-images {
    height: 35vh;
    min-height: 240px;
    gap: 8px;
  }

  .hero-scroll-col {
    gap: 8px;
  }

  .hero-scroll-track {
    gap: 8px;
  }

  .hero-img-card {
    border-radius: 0.625rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
}