:root {
  --kb-hero-bg: #020202;
  --kb-hero-green: #00a859;
  --kb-hero-white: #ffffff;
  --kb-hero-copy: rgba(255, 255, 255, 0.9);
  --kb-hero-shadow: rgba(0, 0, 0, 0.35);
  --kb-hero-glow: rgba(0, 168, 89, 0.36);
  --kb-hero-max-width: 1280px;
  --kb-hero-padding-x: clamp(1rem, 6vw, 5rem);
  --kb-hero-title: clamp(2.8rem, 8vw, 6rem);
  --kb-hero-body: clamp(0.92rem, 1.8vw, 1rem);
}

.hero-kb-ninja {
  position: relative;
  width: 100%;
  min-height: clamp(34rem, 100dvh, 41rem);
  padding: clamp(2rem, 8vh, 6rem) var(--kb-hero-padding-x) clamp(4.5rem, 11vh, 7rem);
  color: var(--kb-hero-white);
  background-color: var(--kb-hero-bg);
  background-image:
    radial-gradient(circle at 18% 44%, rgba(0, 168, 89, 0.2), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(145deg, #000000 0%, #050505 52%, #020202 100%);
  overflow: hidden;
}

.hero-kb-ninja__layout {
  position: relative;
  display: grid;
  grid-template-areas:
    'media'
    'content';
  align-items: center;
  gap: clamp(1rem, 4vw, 3.25rem);
  width: min(100%, var(--kb-hero-max-width));
  margin: 0 auto;
}

.hero-kb-ninja__content {
  position: relative;
  z-index: 2;
  display: flex;
  grid-area: content;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  max-width: 36rem;
}

.hero-kb-ninja__badge {
  width: fit-content;
  margin: 0;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--kb-hero-white);
  background-color: var(--kb-hero-green);
  border-radius: 999px;
}

.hero-kb-ninja.is-hero-animated .hero-kb-ninja__badge {
  transform-origin: left center;
  animation: hero-badge-bounce 980ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero-kb-ninja__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--kb-hero-title);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-kb-ninja__title span {
  display: block;
}

.hero-kb-ninja__title span:first-child {
  color: var(--kb-hero-green);
}

.hero-kb-ninja__title span:last-child {
  color: var(--kb-hero-white);
}

.hero-kb-ninja__description {
  margin: 0;
  font-size: var(--kb-hero-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--kb-hero-copy);
}

.hero-kb-ninja__description strong {
  color: var(--kb-hero-green);
  font-weight: 700;
}

.hero-kb-ninja__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 17rem;
  margin-top: 0.25rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  color: var(--kb-hero-green);
  background-color: transparent;
  border: 2px solid var(--kb-hero-green);
  border-radius: 999px;
  box-shadow: 0 0 0 0 transparent;
  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.hero-kb-ninja.is-hero-animated .hero-kb-ninja__cta {
  animation: hero-cta-pulse 2.4s ease-in-out infinite;
}

.hero-kb-ninja__cta:hover,
.hero-kb-ninja__cta:focus-visible {
  animation: none;
  color: var(--kb-hero-white);
  background-color: var(--kb-hero-green);
  border-color: var(--kb-hero-green);
  box-shadow: 0 14px 32px -18px var(--kb-hero-glow);
  transform: translateY(-2px) scale(1.02);
}

.hero-kb-ninja__media {
  position: relative;
  z-index: 1;
  display: grid;
  grid-area: media;
  place-items: center;
  width: min(100%, 40rem);
  margin: 0 auto;
}

.hero-kb-ninja__content.hero-kb-ninja__enter-init {
  opacity: 0;
  transform: translateX(-2.5rem) scale(0.92);
}

.hero-kb-ninja__media.hero-kb-ninja__enter-init {
  opacity: 0;
  transform: translateX(2.5rem) scale(0.92);
}

.hero-kb-ninja__content.hero-kb-ninja__enter-active,
.hero-kb-ninja__media.hero-kb-ninja__enter-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--hero-enter-delay, 0ms),
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1) var(--hero-enter-delay, 0ms);
  will-change: transform, opacity;
}

.hero-kb-ninja__media::after {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 72%;
  height: 18%;
  content: '';
  background: radial-gradient(ellipse, var(--kb-hero-glow) 0%, rgba(0, 168, 89, 0) 74%);
  filter: blur(14px);
  transform: translateX(-50%);
}

.hero-kb-ninja__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 35rem);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 26px 24px var(--kb-hero-shadow));
}

.hero-kb-ninja__scroll {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--kb-hero-white);
  transform: translateX(-50%);
}

.hero-kb-ninja.is-hero-animated .hero-kb-ninja__scroll {
  animation: hero-scroll-in 680ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

.hero-kb-ninja__scroll span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero-kb-ninja__scroll img {
  width: 1.05rem;
  height: auto;
  animation: hero-scroll-bounce 1.9s ease-in-out infinite;
}

.hero-next-anchor {
  min-height: 0.0625rem;
}

.hero-kb-ninja__scroll:focus-visible,
.hero-kb-ninja__cta:focus-visible {
  outline: 2px solid var(--color-border-blue);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .hero-kb-ninja__layout {
    grid-template-areas: 'content media';
    grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 39rem);
  }

  .hero-kb-ninja__media {
    margin-right: clamp(-1rem, -4vw, -2.75rem);
  }
}

@media (max-width: 899px) {
  .hero-kb-ninja {
    min-height: auto;
    padding-top: clamp(1.25rem, 7vw, 2rem);
    padding-bottom: 5.75rem;
  }

  .hero-kb-ninja__content {
    text-align: left;
  }

  .hero-kb-ninja__title {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

  .hero-kb-ninja__description {
    max-width: 32ch;
  }

  .hero-kb-ninja__cta {
    width: 100%;
    min-width: 0;
  }

  .hero-kb-ninja__media img {
    width: min(100%, 23rem);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kb-ninja.is-hero-animated .hero-kb-ninja__badge,
  .hero-kb-ninja.is-hero-animated .hero-kb-ninja__cta,
  .hero-kb-ninja.is-hero-animated .hero-kb-ninja__scroll {
    animation: none;
  }

  .hero-kb-ninja__content.hero-kb-ninja__enter-init,
  .hero-kb-ninja__media.hero-kb-ninja__enter-init {
    opacity: 1;
    transform: none;
  }

  .hero-kb-ninja__content.hero-kb-ninja__enter-active,
  .hero-kb-ninja__media.hero-kb-ninja__enter-active {
    transition: none;
    will-change: auto;
  }

  .hero-kb-ninja__content,
  .hero-kb-ninja__media,
  .hero-kb-ninja__scroll img {
    animation: none;
  }
}

@keyframes hero-cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes hero-badge-bounce {
  0% {
    transform: scale(1.34);
  }

  22% {
    transform: scale(1.34);
  }

  48% {
    transform: scale(0.86);
  }

  66% {
    transform: scale(1.1);
  }

  82% {
    transform: scale(0.97);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes hero-scroll-in {
  from {
    opacity: 0;
    transform: translate(-50%, 1rem);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}