/* Spotlight — product band for vuela.ai, with a CSS-only video editor mock beside it */

.spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 70% at 85% 50%, var(--glow-gold), transparent 70%),
    radial-gradient(ellipse 40% 50% at 5% 60%, var(--glow-teal), transparent 70%);
}

.spotlight__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.spotlight__title {
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.spotlight__lede {
  max-width: 52ch;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}
.spotlight__lede strong {
  color: var(--ink);
}

.screen {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition:
    transform 0.4s ease,
    border-color 0.3s ease;
}
.screen:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  border-color: var(--gold);
}
.screen__bar {
  display: flex;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.screen__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.screen__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  margin: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(79, 209, 217, 0.55), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(228, 203, 134, 0.5), transparent 55%),
    linear-gradient(135deg, #0d3a40, #1b1430);
  background-size: 160% 160%;
  animation: screen-drift 10s ease-in-out infinite alternate;
}

.screen__prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  border-radius: 12px;
  background: rgba(6, 13, 15, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
/* The prompt types itself out, then the caret keeps blinking */
.screen__typed {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink);
  border-right: 2px solid var(--gold);
  animation:
    screen-type 3.5s steps(46) 0.5s both,
    screen-caret 0.9s step-end infinite;
}
.screen__go {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bg);
  border-radius: 8px;
  background: var(--gold);
}

.screen__timeline {
  display: block;
  height: 6px;
  margin: 0 1rem 1rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.screen__timeline span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold));
  transform-origin: left;
  animation: screen-progress 6s ease-in-out infinite;
}

@keyframes screen-type {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}
@keyframes screen-caret {
  50% {
    border-color: transparent;
  }
}
@keyframes screen-drift {
  to {
    background-position: 100% 100%;
  }
}
@keyframes screen-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 1024px) {
  .spotlight__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
