.ai-home {
  --ai-mint: #75f1c5;
  --ai-white: #f4f7fb;
  position: relative;
  isolation: isolate;
  padding: 96px 30px 112px; /* Allow for the next heading's -17px margin. */
  color: #b9c3d2;
  overflow: clip;
}

.ai-home-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-home-header { text-align: center; }

.ai-home-label {
  margin: 0 0 18px;
  color: var(--ai-mint);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.ai-home-title {
  margin: 0 0 16px;
  color: var(--ai-white);
  font-size: 46px;
  font-weight: 700;
  line-height: 60px;
}

.ai-home-intro { margin: 0; font-size: 18px; font-weight: 300; line-height: 28px; }
.ai-home-definitions { position: absolute; pointer-events: none; }

.ai-home-products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
}

.ai-home-product {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  min-width: 0;
  padding: 0 24px 8px;
  text-align: center;
}

.ai-home-product + .ai-home-product::before {
  content: "";
  position: absolute;
  top: 132px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #ffffff1f;
}

.ai-home-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: linear-gradient(155deg, #12243e, #0c192d);
  box-shadow: inset 0 1px 0 #ffffff06, inset 0 -8px 24px #030b181f;
  transition: transform 280ms, border-color 220ms, box-shadow 280ms;
}

.ai-home-icon img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ai-home-icon-placeholder img { width: 100%; height: 100%; border-radius: inherit; filter: none; }

.ai-home-name {
  margin: 0 0 8px;
  color: var(--ai-white);
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
  transition: color 180ms;
}

.ai-home-category {
  margin: 0 0 18px;
  color: var(--ai-mint);
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
}

.ai-home-description {
  min-height: 84px;
  margin: 0 0 28px;
  font-size: 17px;
  font-weight: 300;
  line-height: 28px;
  text-align: left;
  overflow-wrap: break-word;
}

.ai-home-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: end;
  gap: 8px;
  min-width: 156px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--ai-mint);
  color: #040d1b;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: transform 200ms, background-color 180ms, box-shadow 200ms;
}

.ai-home-arrow { flex: none; transition: transform 200ms; }
.ai-home-button:hover, .ai-home-button:focus-visible { color: #040d1b; }
.ai-home-button:active { transform: translateY(-1px) scale(.98); transition-duration: 80ms; }
.ai-home-button:focus-visible { outline: 2px solid var(--ai-mint); outline-offset: 4px; }

.ai-home-product:focus-within .ai-home-icon {
  border-color: #75f1c5cc;
  box-shadow: 0 0 24px #75f1c51f;
}

.ai-home-track {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 112px;
  overflow: visible;
  fill: none;
  pointer-events: none;
}

.ai-home-track-pair { display: none; width: 200%; }
.ai-home-track-line { stroke: url(#ai-home-spectrum); stroke-width: 1; opacity: .48; }
.ai-home-track-glow { stroke: url(#ai-home-spectrum); stroke-width: 8; opacity: .14; filter: blur(8px); }
.ai-home-track-highlight {
  stroke: #9dffe0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 80 1000;
  filter: drop-shadow(0 0 4px #75f1c5);
  animation: ai-home-stream 8s linear infinite paused;
}

.ai-home-orbs { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.ai-home-orbs span {
  --ai-drift: 8px;
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(140deg, #0b5ad52e, #07132405 85%);
  animation: ai-home-float 10s ease-in-out infinite paused;
}

.ai-home-orbs span:nth-child(1) { top: 112px; left: max(20px, calc(50% - 650px)); animation-delay: -4s; }
.ai-home-orbs span:nth-child(2) { --ai-drift: 5px; top: 206px; left: max(0px, calc(50% - 680px)); width: 28px; height: 28px; animation-duration: 13s; animation-delay: -9s; }
.ai-home-orbs span:nth-child(3) { right: max(20px, calc(50% - 650px)); bottom: 36px; width: 80px; height: 80px; animation-delay: -7s; }
.ai-home-orbs span:nth-child(4) { --ai-drift: 5px; right: max(108px, calc(50% - 562px)); bottom: 28px; width: 24px; height: 24px; animation-duration: 13s; animation-delay: -2s; }
.ai-home.is-active .ai-home-orbs span,
.ai-home.is-active .ai-home-track-highlight { animation-play-state: running; }

.ai-home-summary {
  margin: 64px 0 0;
  color: var(--ai-white);
  font-size: 26px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  text-wrap: balance;
}

.ai-home-summary > span { display: inline-block; }
.ai-home-summary strong { color: var(--ai-mint); font-weight: 600; }
html[lang="en"] .ai-home-summary > span + span { margin-left: .25em; }
html[lang="en"] .ai-home-summary > span:not(:first-child) strong { text-transform: lowercase; }

@media (min-width: 768px) {
  .ai-home + .section-36 .block-sticky { margin-top: 0; }
}

.ai-home-sparks { position: absolute; inset: 0; pointer-events: none; }
.ai-home-sparks span {
  position: absolute;
  top: -2px;
  right: 12px;
  width: 6px;
  height: 6px;
  opacity: 0;
  background: #e5fff6;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.ai-home-sparks span:nth-child(1) { --ai-x: -12px; --ai-y: -24px; }
.ai-home-sparks span:nth-child(2) { --ai-x: 20px; --ai-y: -16px; width: 10px; height: 10px; }
.ai-home-sparks span:nth-child(3) { --ai-x: 30px; --ai-y: 6px; }
.ai-home-sparks span:nth-child(4) { --ai-x: -24px; --ai-y: -12px; width: 4px; height: 4px; }
.ai-home-sparks span:nth-child(5) { --ai-x: 14px; --ai-y: 24px; width: 5px; height: 5px; }

.ai-home.is-enhanced .ai-home-reveal {
  opacity: 0;
  transform: translateY(var(--ai-enter-y, 24px));
  transition: opacity var(--ai-enter-duration, 640ms) cubic-bezier(.22, 1, .36, 1), transform var(--ai-enter-duration, 640ms) cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--ai-enter-delay, 0ms);
}

.ai-home-label { --ai-enter-y: 16px; --ai-enter-duration: 500ms; }
.ai-home-title { --ai-enter-delay: 80ms; }
.ai-home-intro { --ai-enter-y: 20px; --ai-enter-duration: 600ms; --ai-enter-delay: 160ms; }
.ai-home-track-wide, .ai-home-track-pair { --ai-enter-y: 0px; --ai-enter-duration: 900ms; }
.ai-home-summary { --ai-enter-y: 16px; --ai-enter-duration: 600ms; }
.ai-home.is-enhanced .ai-home-reveal.is-visible { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .ai-home-product:hover .ai-home-icon { transform: translateY(-6px); border-color: #75f1c5cc; box-shadow: 0 0 24px #75f1c51f, inset 0 1px 0 #ffffff0a; }
  .ai-home-product:hover .ai-home-name { color: #fff; }
  .ai-home-product:hover .ai-home-button { background: #8af6d2; }
  .ai-home-button:hover { transform: translateY(-2px); box-shadow: 0 0 20px #75f1c529; }
  .ai-home-button:hover .ai-home-arrow { transform: translate(2px, -2px); }
  .ai-home-button:active { transform: translateY(-2px) scale(.98); }
  .ai-home-button.is-sparking .ai-home-sparks span { animation: ai-home-spark 500ms both; }
  .ai-home-button.is-sparking .ai-home-sparks span:nth-child(2) { animation-delay: 35ms; }
  .ai-home-button.is-sparking .ai-home-sparks span:nth-child(3) { animation-delay: 70ms; }
  .ai-home-button.is-sparking .ai-home-sparks span:nth-child(4) { animation-delay: 105ms; }
  .ai-home-button.is-sparking .ai-home-sparks span:nth-child(5) { animation-delay: 140ms; }
}

@keyframes ai-home-stream { from { stroke-dashoffset: 80; } to { stroke-dashoffset: -1000; } }
@keyframes ai-home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--ai-drift)); } }
@keyframes ai-home-spark {
  0% { opacity: 0; transform: scale(.3); }
  25% { opacity: 1; transform: translate(calc(var(--ai-x) * .25), calc(var(--ai-y) * .25)) scale(1); }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate(var(--ai-x), var(--ai-y)) scale(.6); }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ai-home { padding-right: 32px; padding-left: 32px; }
  .ai-home-title { font-size: 36px; line-height: 48px; }
  .ai-home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto) 56px repeat(5, auto); }
  .ai-home-product:nth-of-type(n + 3) { grid-row: 7 / span 5; }
  .ai-home-product:nth-of-type(odd)::before { display: none; }
  .ai-home-track-wide { display: none; }
  .ai-home-track-pair { display: block; }
}

@media (max-width: 767px) {
  .ai-home { padding: 64px 24px 56px; }
  .ai-home-label { margin-bottom: 14px; font-size: 18px; line-height: 26px; }
  .ai-home-title { font-size: 32px; line-height: 42px; }
  .ai-home-intro { font-size: 16px; line-height: 26px; }
  .ai-home-products { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 40px; }
  .ai-home-product { display: flex; grid-row: auto; flex-direction: column; align-items: center; padding: 0; }
  .ai-home-product::before, .ai-home-track { display: none; }
  .ai-home-icon { width: 88px; height: 88px; border-radius: 22px; }
  .ai-home-icon img { width: 80px; height: 80px; }
  .ai-home-icon-placeholder img { width: 100%; height: 100%; }
  .ai-home-name { font-size: 28px; line-height: 38px; }
  .ai-home-category { font-size: 18px; }
  .ai-home-description { width: 100%; max-width: 320px; min-height: 0; font-size: 16px; line-height: 27px; }
  .ai-home-button { align-self: center; min-height: 46px; }
  .ai-home-summary { margin-top: 48px; font-size: 20px; line-height: 32px; }
  .ai-home-summary > span:last-child { display: inline; }
  .ai-home-orbs { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-home *, .ai-home *::before { animation: none !important; transition: none !important; }
  .ai-home.is-enhanced .ai-home-reveal { opacity: 1; transform: none; }
  .ai-home-product:hover .ai-home-icon, .ai-home-button:hover, .ai-home-button:active, .ai-home-button:hover .ai-home-arrow { transform: none; }
}
