/* VoxPilot — app styles */

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

:root {
  --bg:           #0a0a0f;
  --surface:      #12121a;
  --surface-2:    #1a1a26;
  --border:       #1e1e2e;
  --text:         #e8e8ed;
  --text-muted:   #8888a0;
  --accent:       #6c5ce7;
  --accent-light: rgba(108, 92, 231, 0.12);
  --accent-glow:  rgba(108, 92, 231, 0.25);
  --warm:         #fd7e14;
  --warm-glow:    rgba(253, 126, 20, 0.15);
  --success:      #00b894;
  --error:        #e74c3c;
  --radius:       12px;
  --radius-sm:    8px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* Ambient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-glow); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--warm-glow);  bottom: -150px; right: -100px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* HERO */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(108,92,231,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* FEATURES */
.features {
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FORM SECTION */
.form-section {
  padding: 40px 0 80px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field textarea,
.field select,
.field input[type="text"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}
.field textarea:focus,
.field select:focus,
.field input[type="text"]:focus {
  border-color: var(--accent);
}
.field textarea { min-height: 120px; }
.field select { appearance: none; cursor: pointer; }

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.error-msg {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* STATUS PAGE */
.status-section {
  padding: 60px 0;
  max-width: 640px;
  margin: 0 auto;
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.status-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.status-card h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.status-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.badge-pending    { background: rgba(253,126,20,0.15); color: var(--warm); border: 1px solid rgba(253,126,20,0.3); }
.badge-generating { background: rgba(108,92,231,0.15); color: var(--accent); border: 1px solid rgba(108,92,231,0.3); }
.badge-completed  { background: rgba(0,184,148,0.15); color: var(--success); border: 1px solid rgba(0,184,148,0.3); }
.badge-failed     { background: rgba(231,76,60,0.15); color: var(--error); border: 1px solid rgba(231,76,60,0.3); }

.audio-player {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.audio-player audio {
  width: 100%;
  margin-top: 12px;
}
.audio-player h3 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.btn-download {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(108,92,231,0.3);
  color: var(--accent);
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
  transition: opacity 0.2s;
}
.btn-download:hover { opacity: 0.8; }

/* Spinner */
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.error-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}
.error-page h1 { font-size: 5rem; margin-bottom: 16px; color: var(--text-muted); }
.error-page p  { color: var(--text-muted); margin-bottom: 32px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  .form-card, .status-card { padding: 24px; }
  .hero { padding: 60px 0 40px; }
}