:root {
  --bg-deep: #060613;
  --bg-surface: #0c0d21;
  --bg-card: rgba(16, 18, 42, 0.78);
  --bg-card-hover: rgba(22, 25, 58, 0.9);
  --border-subtle: rgba(139, 92, 246, 0.22);
  --border-glow: rgba(6, 182, 212, 0.5);
  --text-main: #f4f6ff;
  --text-muted: #98a0c6;
  --text-dim: #646c94;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-danger: #ef4444;
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.12));
  --shadow-glow: 0 20px 50px rgba(6, 182, 212, 0.12), 0 0 30px rgba(139, 92, 246, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 15%, rgba(139, 92, 246, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.nav-pill:hover, .nav-pill.active {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: rgba(139, 92, 246, 0.15);
}

/* Containers & Hero */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: #c4b5fd;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.48);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--accent-cyan);
}

.btn-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-amber:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.24);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.45);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(12, 14, 34, 0.65);
  transition: all 0.25s ease;
  cursor: pointer;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.07);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.15);
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

/* Alert Callouts */
.explicit-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  margin-bottom: 1.75rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.warning-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 0.92rem;
}

/* Output Cards */
.output-primary-card {
  position: relative;
  border: 2px solid var(--accent-cyan);
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.11) 0%, rgba(16, 18, 42, 0.92) 60%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.18);
  margin-bottom: 1.75rem;
}

.output-fallback-card {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 18, 42, 0.9) 65%);
  border-radius: 18px;
  padding: 1.75rem;
}

.badge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}

.badge-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.metric-box {
  background: rgba(6, 6, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 0.75rem 0.95rem;
}

.metric-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.metric-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

audio {
  width: 100%;
  height: 42px;
  margin: 0.85rem 0 1.15rem;
  border-radius: 10px;
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.pricing-card.featured {
  border: 2px solid var(--accent-cyan);
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.16) 0%, rgba(16, 18, 42, 0.92) 55%);
  box-shadow: 0 22px 55px rgba(6, 182, 212, 0.18);
}

.price-tag {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.25rem;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
  color: #d5dafb;
}

.feature-check {
  color: var(--accent-cyan);
  font-weight: 800;
  flex-shrink: 0;
}

/* Credit Pack Selector */
.credit-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.credit-pack-option {
  background: rgba(6, 6, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.credit-pack-option.active, .credit-pack-option:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.14);
}

/* Footer */
.site-footer {
  max-width: 1120px;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .credit-packs {
    grid-template-columns: 1fr;
  }
}

