.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 260px -10% auto;
  z-index: -1;
  height: 760px;
  background:
    radial-gradient(50% 60% at 50% 55%, rgba(37, 99, 235, 0.55), transparent 72%),
    radial-gradient(30% 40% at 20% 40%, rgba(96, 165, 250, 0.25), transparent 70%),
    radial-gradient(30% 40% at 80% 40%, rgba(96, 165, 250, 0.25), transparent 70%);
  filter: blur(40px);
  animation: glow-drift 14s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

.play-icon {
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--surface-card);
}

.hero-stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-stage .hero-frame {
  margin: 0;
  transform: perspective(1600px) rotateX(var(--hero-tilt, 0deg));
  transform-origin: center top;
  transition: transform 0.2s linear;
  will-change: transform;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card), var(--shadow-blue);
  will-change: translate;
  animation:
    fade-up 0.7s ease both,
    float-y 6s ease-in-out infinite;
}

.float-card small {
  display: block;
  color: var(--helper);
  font-size: 11px;
  font-weight: 500;
}

.float-card strong {
  display: block;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.float-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.float-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-icon-blue {
  background: var(--lavender-mist);
  color: var(--primary);
}

.float-icon-green {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.float-autopilot {
  left: -48px;
  top: 22%;
  animation-delay: 0.6s, 0s;
}

.float-response {
  right: -40px;
  top: 8%;
  animation-delay: 0.8s, 1.5s;
}

.float-progress {
  display: block;
  width: 180px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--border);
}

.float-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform-origin: left;
  animation: progress-loop 5s ease-in-out infinite;
}

.float-ticker strong {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.float-ticker.is-changing strong {
  opacity: 0;
  transform: translateY(6px);
}

.hero-center {
  max-width: 1180px;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 auto 56px;
  text-align: center;
}

.hero-center .status-badge {
  margin-bottom: 28px;
}

.hero-center h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-center h1 span {
  display: block;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-center .hero-actions {
  justify-content: center;
}

.hero-center > .hero-note {
  margin: 16px 0 0;
  color: var(--helper);
  font-size: 13px;
}

.browser-bar {
  position: relative;
  justify-content: flex-start;
}

.browser-url {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(360px, 44%);
  height: 26px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  background: var(--surface-ivory);
  color: var(--helper);
  font-size: 12px;
  font-weight: 500;
  transform: translateX(-50%);
}

@keyframes glow-drift {
  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

@keyframes float-y {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes progress-loop {
  0% {
    transform: scaleX(0);
  }
  80%,
  100% {
    transform: scaleX(1);
  }
}
