/* C3 Workforce AI Native hero animation (original shapes, C3 brand colors)
   Drop this file into the site and leave selectors as-is.
   All rules are scoped under .c3-ai-native-hero so they will not
   restyle the rest of the page.
   No frameworks, no CDN, no build step.
*/

.c3-ai-native-hero,
.c3-ai-native-hero * {
  box-sizing: border-box;
}

.c3-ai-native-hero {
  --c3-bot-gray: #6b7280;
  --c3-bot-gold: #f5b64c;
  --c3-bot-blue: #12489e;
  --c3-tagline: #f5b64c;
  --c3-bot-eye: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: min(100%, 26.5rem);
  margin: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* Soft dark panel so the block reads over the hero photo */
  padding: 1.4rem 1.6rem 1.2rem;
  border-radius: 1.25rem;
  background: rgba(7, 37, 78, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.c3-ai-native-hero__tagline {
  margin: 0;
  padding: 0;
  color: var(--c3-tagline);
  font-family: inherit;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  animation: c3-ai-tagline-enter 0.9s ease 0.12s both;
}

.c3-ai-native-hero__bots {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
}

/* Soft gold wash behind the cluster so the bots lift off navy */
.c3-ai-native-hero__bots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 13rem;
  height: 7.5rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(245, 182, 76, 0.18) 0%, rgba(10, 26, 58, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.c3-ai-native-hero__bot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  line-height: 0;
}

.c3-ai-native-hero__bot--hex {
  width: 5.85rem;
  height: 5.85rem;
  margin-bottom: 0.1rem;
  animation:
    c3-ai-bot-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both,
    c3-ai-bot-idle 4.25s ease-in-out 5.05s infinite;
}

.c3-ai-native-hero__bot--square {
  width: 7.35rem;
  height: 7.35rem;
  margin: 0 0.15rem 0.7rem;
  animation:
    c3-ai-bot-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both,
    c3-ai-bot-idle 3.85s ease-in-out 5.05s infinite;
}

.c3-ai-native-hero__bot--diamond {
  width: 6.15rem;
  height: 6.15rem;
  margin-bottom: 0.2rem;
  animation:
    c3-ai-bot-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.94s both,
    c3-ai-bot-idle 4.55s ease-in-out 5.05s infinite;
}

.c3-ai-native-hero__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.c3-ai-native-hero__bot--gray .c3-ai-native-hero__fill {
  fill: var(--c3-bot-gray);
}

.c3-ai-native-hero__bot--gold .c3-ai-native-hero__fill {
  fill: var(--c3-bot-gold);
}

.c3-ai-native-hero__bot--blue .c3-ai-native-hero__fill {
  fill: var(--c3-bot-blue);
}

.c3-ai-native-hero__eye circle {
  fill: var(--c3-bot-eye);
}

.c3-ai-native-hero__eyes {
  transform-box: fill-box;
  transform-origin: center;
}

.c3-ai-native-hero__bot--hex .c3-ai-native-hero__eyes {
  animation: c3-ai-glance-left 5s ease both;
}

.c3-ai-native-hero__bot--square .c3-ai-native-hero__eyes {
  animation: c3-ai-glance-center 5s ease both;
}

.c3-ai-native-hero__bot--diamond .c3-ai-native-hero__eyes {
  animation: c3-ai-glance-right 5s ease both;
}

.c3-ai-native-hero__eye {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.c3-ai-native-hero__bot--hex .c3-ai-native-hero__eye {
  animation: c3-ai-blink 5.4s ease-in-out 5.35s infinite;
}

.c3-ai-native-hero__bot--square .c3-ai-native-hero__eye {
  animation: c3-ai-blink 4.7s ease-in-out 5.85s infinite;
}

.c3-ai-native-hero__bot--diamond .c3-ai-native-hero__eye {
  animation: c3-ai-blink 5.9s ease-in-out 6.25s infinite;
}

/* Intro: tagline first, then bots float up and settle beneath it */
@keyframes c3-ai-tagline-enter {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes c3-ai-bot-enter {
  0% {
    opacity: 0;
    transform: translateY(1.75rem) scale(0.84);
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes c3-ai-bot-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.38rem);
  }
}

/* After they land, they glance at each other, then face forward */
@keyframes c3-ai-glance-left {
  0%,
  40% {
    transform: translate(0, 0);
  }
  52% {
    transform: translate(0.42rem, 0.06rem);
  }
  70% {
    transform: translate(0.18rem, 0);
  }
  84%,
  100% {
    transform: translate(0, 0);
  }
}

@keyframes c3-ai-glance-center {
  0%,
  40% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-0.42rem, 0.06rem);
  }
  68% {
    transform: translate(0.42rem, 0);
  }
  84%,
  100% {
    transform: translate(0, 0);
  }
}

@keyframes c3-ai-glance-right {
  0%,
  40% {
    transform: translate(0, 0);
  }
  54% {
    transform: translate(-0.48rem, 0.06rem);
  }
  72% {
    transform: translate(-0.14rem, 0);
  }
  84%,
  100% {
    transform: translate(0, 0);
  }
}

@keyframes c3-ai-blink {
  0%,
  90%,
  96%,
  100% {
    transform: scaleY(1);
  }
  93% {
    transform: scaleY(0.12);
  }
}

.c3-ai-native-hero--static .c3-ai-native-hero__tagline,
.c3-ai-native-hero--static .c3-ai-native-hero__bot,
.c3-ai-native-hero--static .c3-ai-native-hero__eyes,
.c3-ai-native-hero--static .c3-ai-native-hero__eye {
  animation: none !important;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .c3-ai-native-hero__tagline,
  .c3-ai-native-hero__bot,
  .c3-ai-native-hero__eyes,
  .c3-ai-native-hero__eye {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .c3-ai-native-hero {
    width: min(100%, 20.5rem);
    gap: 0.9rem;
  }

  .c3-ai-native-hero__tagline {
    white-space: normal;
    letter-spacing: 0.04em;
  }

  .c3-ai-native-hero__bot--hex {
    width: 4.4rem;
    height: 4.4rem;
  }

  .c3-ai-native-hero__bot--square {
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 0.45rem;
  }

  .c3-ai-native-hero__bot--diamond {
    width: 4.6rem;
    height: 4.6rem;
  }
}
