/**
 * Genpro — Minimalist immersive home hero (Kickbacks-inspired)
 * Replaces boxy multi-layout slides with massive typography + ambient fade.
 */

.kb-hero {
  position: relative;
  min-height: clamp(520px, 88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.kb-hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 102, 0, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(0, 229, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.2) 0%, var(--fx-bg-deep) 100%);
  pointer-events: none;
}

.kb-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.kb-hero__track {
  position: relative;
  z-index: 1;
  flex: 1;
  display: block;
  width: 100%;
  min-height: clamp(420px, 68vh, 680px);
  pointer-events: none;
}

.kb-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--fx-ease-out),
    transform 0.7s var(--fx-ease-out),
    visibility 0.7s;
  pointer-events: none;
  z-index: 0;
}

.kb-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.kb-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(920px, 100%);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
  text-align: center;
}

.kb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: var(--fx-radius-pill);
  font-size: var(--fx-text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-accent-bright);
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.25);
}

.kb-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fx-text);
}

.kb-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--fx-accent-bright), var(--fx-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kb-hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--fx-text-muted);
  font-weight: 400;
}

.kb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.kb-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: var(--fx-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--fx-duration-fast) var(--fx-ease-out),
    box-shadow var(--fx-duration-fast);
}

.kb-hero__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-bright));
  box-shadow: var(--fx-shadow-neon);
}

.kb-hero__btn--primary:hover {
  transform: translateY(-2px);
}

.kb-hero__btn--ghost {
  color: var(--fx-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.kb-hero__btn--ghost:hover {
  border-color: rgba(255, 102, 0, 0.35);
  background: rgba(255, 102, 0, 0.08);
}

.kb-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
}

.kb-hero__stat {
  text-align: center;
}

.kb-hero__stat-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--fx-text);
  letter-spacing: -0.03em;
}

.kb-hero__stat-label {
  font-size: var(--fx-text-xs);
  color: var(--fx-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* Controls — minimal pill bar */
.kb-hero__controls {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--fx-radius-pill);
  background: rgba(8, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kb-hero__ctrl {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fx-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--fx-duration-fast), border-color var(--fx-duration-fast);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 102, 0, 0.25);
  position: relative;
  z-index: 31;
}

.kb-hero__ctrl:hover,
.kb-hero__ctrl:focus-visible {
  background: rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.4);
}

.kb-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.25rem;
}

.kb-hero__dot {
  width: 24px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--fx-radius-pill);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: width var(--fx-duration-base), background var(--fx-duration-base);
  pointer-events: auto;
  touch-action: manipulation;
}

.kb-hero__dot.is-active {
  width: 36px;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-bright));
  box-shadow: 0 0 12px var(--fx-accent-glow);
}

/* Background image layer (subtle, no heavy mask boxes) */
.kb-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.85);
  transition: opacity 0.9s ease;
}

.kb-hero__slide.is-active .kb-hero__bg {
  opacity: 0.28;
}

@media (max-width: 767px) {
  .kb-hero {
    min-height: clamp(480px, 82vh, 640px);
  }

  .kb-hero__inner {
    padding-bottom: 5.5rem;
  }

  .kb-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-hero__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-hero__slide {
    transition: opacity 0.2s ease, visibility 0.2s;
    transform: none;
  }

  .kb-hero__btn--primary:hover {
    transform: none;
  }
}

/* Suppress legacy hero slider on home when kb-hero present */
.kb-hero ~ .hero-slider-enhanced,
section.kb-hero + .hero-slider-enhanced {
  display: none;
}
