:root {
  --bg: #0d0817;
  --violet: #7c3aed;
  --fuchsia: #c084fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--bg);
  color: #ede9fe;
  overflow-x: hidden;
}

.font-mono, code, .eq { font-family: "IBM Plex Mono", monospace; }

.brand-text {
  background: linear-gradient(120deg, #e9d5ff, #c084fc 40%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* animated background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(124,58,237,0.28), transparent 55%),
    radial-gradient(500px circle at 85% 15%, rgba(192,132,252,0.20), transparent 55%),
    radial-gradient(700px circle at 70% 85%, rgba(109,40,217,0.22), transparent 55%),
    var(--bg);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 40px -30px, -40px 30px, 30px 40px, 0 0; }
}

.glass {
  background: rgba(30, 20, 50, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.glow-border {
  border: 1px solid rgba(192,132,252,0.35);
  box-shadow: 0 0 40px -8px rgba(124,58,237,0.5);
}

.logo-note { filter: drop-shadow(0 0 8px rgba(168,85,247,0.6)); }

/* generate button */
.gen-btn {
  background: linear-gradient(120deg, #d946ef, #7c3aed);
  box-shadow: 0 10px 40px -8px rgba(124,58,237,0.7);
  border: none;
  cursor: pointer;
}
.gen-btn:not(:disabled):hover {
  box-shadow: 0 14px 50px -6px rgba(217,70,239,0.75);
}

/* record button */
.record-btn {
  background: linear-gradient(145deg, #a855f7, #6d28d9);
  border: none;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(168,85,247,0.5), 0 12px 30px -8px rgba(124,58,237,0.6);
  transition: transform 0.2s;
}
.record-btn:hover { transform: scale(1.05); }
.record-btn.recording {
  background: linear-gradient(145deg, #f43f5e, #be123c);
  animation: pulse-ring 1.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(244,63,94,0.6); }
  70% { box-shadow: 0 0 0 24px rgba(244,63,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}

/* sliders */
.slider {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #d946ef, #7c3aed);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168,85,247,0.7);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #d946ef, #7c3aed);
  cursor: pointer;
}

/* equalizer loading */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i {
  width: 3px; background: #fff; border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: 0s; height: 8px; }
.eq i:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.eq i:nth-child(3) { animation-delay: 0.4s; height: 10px; }
.eq i:nth-child(4) { animation-delay: 0.1s; height: 14px; }
@keyframes eq { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* fade up entrance */
.fade-up { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 999px; }