.hero-bg {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 7.5rem 0 0;
  background:
    radial-gradient(
      circle at 24% 58%,
      rgba(57, 117, 235, 0.2),
      transparent 32%
    ),
    linear-gradient(135deg, #1c2a3d 0%, #111b2a 72%, #0d1421 100%);
}

.hero-layout {
  display: grid;
  width: 100%;
  min-height: calc(100svh - 7.5rem);
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  max-width: 46rem;
  padding: clamp(1rem, 2vw, 2rem) 0;
}

.hero-title {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 3.6vw, 4.25rem);
  line-height: 1;
}

.hero-description {
  max-width: 45rem;
  margin-bottom: 1.75rem;
  color: #e2e8f0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions a {
  position: relative;
  background: linear-gradient(135deg, #5a8ef5 0%, #3975eb 100%);
  color: var(--brand-white);
  border: none;
  box-shadow: 0 8px 24px rgba(57, 117, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
}

.hero-actions a:hover {
  background: linear-gradient(135deg, #6a9aff 0%, #4a85f5 100%);
  box-shadow: 0 12px 32px rgba(57, 117, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-actions a:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(57, 117, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  margin-top: 2.5rem;
  padding: 1.6rem clamp(2rem, 4vw, 3rem);
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--brand-white);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-stat h3 {
  color: #0c1626;
  font-size: clamp(1.25rem, 1.9vw, 1.875rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.hero-stat p {
  margin-top: 0;
  color: #475569;
  font-size: clamp(0.65rem, 0.85vw, 0.75rem);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-worker {
  position: relative;
  z-index: 0;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  will-change: transform, opacity;
  animation: hero-worker-enter 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both;
}

.hero-worker-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(34rem, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(52, 121, 255, 0.35);
  filter: blur(48px);
  transform: translate(-50%, -50%);
}

.hero-worker img {
  display: block;
  width: min(38rem, 130%);
  height: auto;
  max-height: min(100%, 43rem);
  max-width: none;
  margin-left: -10%;
  margin-bottom: 0;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
  will-change: transform;
}

@keyframes hero-worker-enter {
  from {
    opacity: 0;
    transform: translateX(-18%);
  }

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

@keyframes hero-worker-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1023px) {
  .hero-layout {
    gap: 1.5rem;
  }

  .hero-worker img {
    width: 130%;
    max-height: 38rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero-bg {
    min-height: auto;
    padding: 7.5rem 0 0;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-height: auto;
  }

  .hero-content {
    max-width: none;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(2.55rem, 12vw, 3.75rem);
  }

  .hero-actions a {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-worker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-worker,
  .hero-worker img {
    animation: none;
  }
}
