/**
 * AI-forward homepage hero — smooth scroll, static visuals.
 */

.it-home-hero {
  --it-navy: #061340;
  --it-blue: #0b70e1;
  --it-cyan: #5ad0ff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 820px);
  padding: 84px 0 100px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(90, 208, 255, 0.22), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(11, 112, 225, 0.38), transparent 32%),
    linear-gradient(128deg, #020617 0%, #061340 40%, #03228f 72%, #0b70e1 100%);
  display: flex;
  align-items: center;
  contain: layout style;
}

.it-home-hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 48%, #000 100%);
  pointer-events: none;
}

.it-home-hero__glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 64px rgba(255, 255, 255, 0.02),
    0 0 0 132px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.it-home-hero__nodes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(90, 208, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 64%, rgba(90, 208, 255, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 78%, rgba(11, 112, 225, 0.55) 0 2px, transparent 3px);
  opacity: 0.7;
}

.it-home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.it-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid rgba(90, 208, 255, 0.32);
  border-radius: 999px;
  background: rgba(6, 19, 64, 0.72);
  color: #d9f4ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.it-home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ad0ff;
  box-shadow: 0 0 0 0 rgba(90, 208, 255, 0.55);
  animation: it-pulse 1.6s ease-out infinite;
}

.it-home-hero__brand {
  margin: 0 0 10px;
  color: #9fd9ff;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.it-home-hero__title {
  max-width: 14ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: it-hero-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.it-home-hero__title span {
  display: block;
  margin-top: 6px;
  color: transparent;
  background: linear-gradient(95deg, #5ad0ff 0%, #fff 45%, #8bb8ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.it-home-hero__lead {
  max-width: 36rem;
  margin: 0 0 24px;
  color: rgba(232, 244, 255, 0.86);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.it-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.it-home-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #fff !important;
  background: linear-gradient(135deg, #0b70e1, #4eb5ff);
  box-shadow: 0 12px 28px rgba(11, 112, 225, 0.35);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.it-home-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11, 112, 225, 0.45);
}

.it-home-hero__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #0b70e1;
  background: #fff;
  font-size: 17px;
  line-height: 1;
}

.it-home-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease;
}

.it-home-hero__play {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(90, 208, 255, 0.35);
  border-radius: 50%;
  background: rgba(90, 208, 255, 0.1);
  font-size: 14px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.it-home-hero__link:hover {
  color: #c8efff;
}

.it-home-hero__link:hover .it-home-hero__play {
  transform: scale(1.05);
  background: rgba(90, 208, 255, 0.2);
}

.it-home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.it-home-hero__chips a {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #dceeff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.it-home-hero__chips a:hover {
  border-color: rgba(90, 208, 255, 0.45);
  background: rgba(90, 208, 255, 0.12);
  color: #fff;
}

.it-home-hero__proof {
  display: flex;
  gap: 0;
  margin-top: 30px;
  opacity: 0;
  animation: it-hero-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.it-home-hero__proof > div {
  display: flex;
  flex-direction: column;
  min-width: 112px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.it-home-hero__proof > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.it-home-hero__proof strong {
  color: #fff;
  font-size: 15px;
}

.it-home-hero__proof span {
  margin-top: 4px;
  color: rgba(210, 232, 255, 0.62);
  font-size: 11px;
}

.it-home-hero__visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: it-hero-visual-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.it-home-hero__orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(146, 210, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  animation: it-orbit-spin 18s linear infinite;
}

.it-home-hero__orbit::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 8%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ad0ff;
  box-shadow: 0 0 14px #5ad0ff;
}

.it-home-hero__orbit--one {
  width: min(100%, 520px);
  height: min(100%, 420px);
}

.it-home-hero__orbit--two {
  width: min(88%, 400px);
  height: min(100%, 500px);
  opacity: 0.55;
  animation-duration: 24s;
  animation-direction: reverse;
}

.it-home-hero__visual-ring {
  position: absolute;
  z-index: 0;
  width: min(100%, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(146, 210, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px rgba(90, 208, 255, 0.04),
    0 0 80px rgba(11, 112, 225, 0.18);
  pointer-events: none;
}

.it-home-hero__visual-card {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(90, 208, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 68% 24%, rgba(90, 208, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 56px rgba(0, 7, 46, 0.32);
}

.it-home-hero__visual-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 20px 30px rgba(0, 7, 46, 0.35));
  will-change: transform;
  animation: it-hero-float 4s ease-in-out infinite;
}

.it-home-hero__float {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #dceeff;
  background: rgba(4, 19, 64, 0.92);
  box-shadow: 0 14px 28px rgba(0, 7, 46, 0.28);
  font-size: 12px;
  white-space: nowrap;
  will-change: transform;
}

.it-home-hero__float strong {
  color: #fff;
}

.it-home-hero__float-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0b70e1, #5ad0ff);
  font-size: 13px;
}

.it-home-hero__float--ai {
  top: 8%;
  left: -2%;
  animation: it-chip-float 3.4s ease-in-out infinite;
}

.it-home-hero__float--secure {
  right: -2%;
  bottom: 22%;
  animation: it-chip-float 3.8s ease-in-out infinite reverse;
}

.it-home-hero__mini-card {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 6%;
  width: 176px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: rgba(230, 243, 255, 0.7);
  background: rgba(5, 21, 69, 0.92);
  box-shadow: 0 16px 32px rgba(0, 7, 46, 0.3);
  font-size: 10px;
  will-change: transform;
  animation: it-chip-float 4.2s ease-in-out infinite;
}

.it-home-hero__mini-card div {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 34px;
  margin: 7px 0;
}

.it-home-hero__mini-card i {
  display: block;
  flex: 1;
  height: 42%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#5ad0ff, #0b70e1);
}

.it-home-hero__mini-card i:nth-child(2) { height: 65%; }
.it-home-hero__mini-card i:nth-child(3) { height: 52%; }
.it-home-hero__mini-card i:nth-child(4) { height: 92%; }

.it-home-hero__mini-card strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

@keyframes it-hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes it-hero-visual-in {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes it-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes it-chip-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes it-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes it-pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 208, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(90, 208, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 208, 255, 0); }
}

.it-home-hero__wave {
  position: absolute;
  right: -3%;
  bottom: -40px;
  left: -3%;
  height: 74px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #fff;
  pointer-events: none;
}

@media (max-width: 991px) {
  .it-home-hero {
    min-height: 0;
    padding: 64px 0 92px;
  }

  .it-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .it-home-hero__title {
    max-width: none;
  }

  .it-home-hero__visual {
    width: min(100%, 560px);
    min-height: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .it-home-hero {
    padding: 48px 0 78px;
  }

  .it-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .it-home-hero__btn {
    justify-content: center;
  }

  .it-home-hero__link {
    justify-content: center;
  }

  .it-home-hero__proof {
    flex-wrap: wrap;
    gap: 10px;
  }

  .it-home-hero__proof > div,
  .it-home-hero__proof > div:first-child {
    min-width: calc(50% - 6px);
    padding: 6px 0;
    border: 0;
  }

  .it-home-hero__visual {
    min-height: 360px;
  }

  .it-home-hero__float {
    font-size: 10px;
    padding: 8px 10px;
  }

  .it-home-hero__mini-card {
    width: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .it-home-hero *,
  .it-home-hero__visual {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* When JS drives continuous motion, disable CSS loops to avoid fighting. */
.it-home-hero.it-hero-js-motion .it-home-hero__visual-card img,
.it-home-hero.it-hero-js-motion .it-home-hero__float--ai,
.it-home-hero.it-hero-js-motion .it-home-hero__float--secure,
.it-home-hero.it-hero-js-motion .it-home-hero__mini-card,
.it-home-hero.it-hero-js-motion .it-home-hero__orbit {
  animation: none !important;
}
