/* Structured demo panel — overrides cluttered float layout */

.hero-stage .stage-frame {
  animation: none;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px -20px rgba(0, 0, 0, 0.65);
}

.hero-stage .stage-desktop {
  min-height: auto;
  border-radius: 15px;
  background: rgba(8, 8, 14, 0.95);
}

.hero-stage .desktop-bar {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.hero-stage .desktop-title {
  text-align: left;
  padding-left: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted);
}

.hero-stage .desktop-status {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.hero-stage .desktop-status.is-active {
  color: var(--accent);
}

.hero-stage .desktop-status.is-done {
  color: var(--success);
}

.hero-stage .desktop-status .pulse {
  display: none;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
}

.demo-block {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s ease;
}

.demo-block:last-child {
  border-bottom: none;
}

.demo-block.is-active {
  background: rgba(168, 180, 255, 0.04);
}

.demo-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.waveform--compact {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  margin-bottom: 0.5rem;
}

.waveform--compact span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.25;
  transform-origin: center bottom;
}

.waveform--compact.active span {
  opacity: 0.75;
  animation: wave-compact 0.9s ease-in-out infinite alternate;
}

.waveform--compact.active span:nth-child(odd) {
  animation-delay: 0.08s;
}

@keyframes wave-compact {
  from { height: 5px; }
  to { height: 20px; }
}

.voice-phrase {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.demo-status {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-stage .command-line {
  margin: 0 0 0.65rem;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text);
  min-height: 1.25em;
}

.hero-stage .command-line::after {
  width: 1.5px;
  background: var(--text-muted);
}

.hero-stage .command-progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stage .command-progress-fill {
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  min-height: 3rem;
  justify-content: center;
  transition: border-color 0.4s ease, opacity 0.4s ease;
}

.demo-preview.is-active .preview-inner {
  border-color: var(--accent-soft);
}

.demo-preview.is-dim .preview-inner {
  opacity: 0.5;
}

.demo-preview.is-dim .preview-url,
.demo-preview.is-dim .preview-title {
  color: var(--text-dim);
}

.preview-url {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.preview-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-preview.is-active .preview-title {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .waveform--compact.active span {
    animation: none;
    height: 12px;
    opacity: 0.6;
  }
}
