.ai-hero .sp-video-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 26, 43, 0) 45%, rgba(4, 26, 43, 0.55) 100%);
  pointer-events: none;
}

.ai-hero-chat {
  position: absolute;
  right: clamp(0.6rem, 2vw, 1rem);
  bottom: clamp(0.6rem, 2vw, 1rem);
  left: clamp(0.6rem, 2vw, 1rem);
  z-index: 1;
  gap: 0.5rem;
}

.ai-hero-chat .ai-bubble {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  box-shadow: 0 10px 24px -12px rgba(4, 26, 43, 0.6);
}

.ai-hero-chat .ai-bubble--answer {
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
}

@media (max-width: 560px) {
  .ai-hero .sp-video-screen {
    aspect-ratio: 4 / 5;
  }

  .ai-hero .sp-video-screen::after {
    background: linear-gradient(180deg, rgba(4, 26, 43, 0) 40%, rgba(4, 26, 43, 0.6) 100%);
  }

  .ai-hero .sp-video-preview,
  .ai-hero .sp-video-preview img {
    object-position: center top;
  }

  .ai-hero-chat .ai-bubble {
    max-width: 85%;
    font-size: 0.82rem;
  }
}

.ai-demo {
  align-self: start;
  gap: 1rem;
}

.ai-demo-media {
  flex: 0 0 auto;
}

.ai-demo-chat {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 22px;
}
