:root {
  --bg-0: #0a0612;
  --bg-1: #150a24;
  --fuchsia: #d946ef;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background: var(--bg-0);
}
.font-mono, textarea { font-family: 'JetBrains Mono', monospace; }

/* Atmospheric layered background */
.ve-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(217,70,239,0.18), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(34,211,238,0.15), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(139,92,246,0.15), transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
}

.ve-title { line-height: 1; }
.ve-grad {
  background: linear-gradient(100deg, #f0abfc, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.ve-flow { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Cards - glassmorphism */
.ve-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: rise 0.5s ease both;
}
.ve-card-active {
  box-shadow: 0 8px 40px rgba(217,70,239,0.2);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ve-card:nth-of-type(2) { animation-delay: 0.08s; }
.ve-card:nth-of-type(3) { animation-delay: 0.16s; }

.ve-step-active {
  background: linear-gradient(135deg, var(--fuchsia), #8b5cf6);
  box-shadow: 0 0 16px rgba(217,70,239,0.5);
}

/* Primary button */
.ve-btn-primary {
  background: linear-gradient(100deg, var(--fuchsia), #7c3aed);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(217,70,239,0.35);
}
.ve-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,70,239,0.5); }
.ve-btn-primary:active { transform: translateY(0); }
.ve-btn-primary:disabled { opacity: 0.6; cursor: wait; }

.ve-voice-active {
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(217,70,239,0.15));
  box-shadow: 0 0 18px rgba(34,211,238,0.3);
}

/* Recording button pulse */
.ve-rec-active { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
.ve-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(239,68,68,0.6);
  animation: pulsering 1.4s ease-out infinite;
}
@keyframes pulsering {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Spinner */
.ve-spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ve-pop { animation: pop 0.35s cubic-bezier(0.18,0.89,0.32,1.28) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

textarea::placeholder { color: rgba(255,255,255,0.25); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }