/*
   VoiceForge — Premium Dark Theme
*/

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080c14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #a855f7;
  --accent: #06b6d4;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Background Orbs ---- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -200px;
  left: -150px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: 10%;
  right: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 60%;
  left: 30%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

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

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: pulse-badge 2s ease-in-out infinite;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Input Section ---- */
.input-section {
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}

/* Tabs */
.tab-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  margin: 0 auto 30px;
  width: fit-content;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition);
}

.panel:focus-within {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hidden {
  display: none !important;
}

/* Textarea */
.textarea-wrapper {
  display: flex;
  flex-direction: column;
}

.text-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  padding: 24px;
  min-height: 220px;
  resize: vertical;
  width: 100%;
}

.text-input::placeholder {
  color: var(--text-muted);
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
}

.clear-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 6px;
}

.clear-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Upload Zone */
.upload-zone {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-content {
  text-align: center;
  padding: 40px;
}

.upload-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.upload-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

.pdf-loaded {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px;
  width: 100%;
}

.pdf-icon {
  color: var(--danger);
  opacity: 0.8;
}

.pdf-info {
  flex: 1;
}

.pdf-filename {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pdf-pages {
  font-size: 13px;
  color: var(--text-muted);
}

.remove-pdf-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-pdf-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.extracted-preview {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.extracted-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.extracted-text {
  font-size: 13px;
  color: var(--text-secondary);
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.6;
}

.extracted-text::-webkit-scrollbar {
  width: 4px;
}

.extracted-text::-webkit-scrollbar-track {
  background: transparent;
}

.extracted-text::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Voice Settings */
.voice-settings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.setting-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 10px;
}

.setting-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.setting-select:focus {
  border-color: var(--border-glow);
}

.setting-select option {
  background: #1a1f2e;
}

.setting-range {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.setting-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}

.setting-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Convert Button */
.convert-btn {
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  animation: gradient-move 3s ease infinite;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.convert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.5);
}

.convert-btn:hover .btn-shine {
  left: 120%;
}

.convert-btn:active {
  transform: translateY(0);
}

.convert-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.convert-btn.loading .btn-content::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Translation Settings ---- */
.translation-settings {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.translation-settings:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.translation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.translation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.translation-title svg {
  color: var(--primary-light);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: rgba(99, 102, 241, 0.5);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: white;
}

/* Translation Controls */
.translation-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.translation-group {
  flex: 1;
  min-width: 0;
}

.lang-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  padding-bottom: 10px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Translated Preview */
.translated-preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.3s ease;
}

.translated-preview .extracted-text {
  max-height: 120px;
}

/* ---- Player Section ---- */
.player-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

/* Waveform */
.waveform {
  height: 60px;
  margin-bottom: 24px;
  overflow: hidden;
}

.wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

.wave-bar {
  width: 3px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 3px;
  opacity: 0.4;
  transition: height 0.15s ease;
}

.wave-bar.active {
  opacity: 1;
  animation: wave 0.8s ease-in-out infinite;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(var(--scale, 1.5));
  }
}

/* Now Playing */
.now-playing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.playing-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.sound-wave span {
  display: block;
  width: 3px;
  background: white;
  border-radius: 2px;
  height: 6px;
}

.sound-wave.playing span:nth-child(1) {
  animation: soundbar 0.8s ease-in-out infinite 0s;
}

.sound-wave.playing span:nth-child(2) {
  animation: soundbar 0.8s ease-in-out infinite 0.1s;
}

.sound-wave.playing span:nth-child(3) {
  animation: soundbar 0.8s ease-in-out infinite 0.2s;
}

.sound-wave.playing span:nth-child(4) {
  animation: soundbar 0.8s ease-in-out infinite 0.1s;
}

.sound-wave.playing span:nth-child(5) {
  animation: soundbar 0.8s ease-in-out infinite 0s;
}

@keyframes soundbar {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 20px;
  }
}

.playing-info {
  flex: 1;
}

.playing-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.playing-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.playing-voice-badge {
  font-size: 11px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Progress Bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.time-label {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

#time-total {
  text-align: right;
}

.progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.progress-track:hover {
  height: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  left: 0%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.progress-track:hover .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ctrl-btn {
  border: none;
  background: var(--bg-card);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.ctrl-btn.secondary {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
}

.ctrl-btn.secondary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.ctrl-btn.primary {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.ctrl-btn.primary:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.6);
}

.ctrl-btn.primary:active {
  transform: scale(0.97);
}

/* Volume */
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.volume-range {
  flex: 1;
}

#volume-value {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

/* ---- How It Works ---- */
.how-section {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  font-size: 15px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.step-num {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.07);
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
}

.step-icon {
  color: var(--primary-light);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--primary-light);
  text-decoration: none;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: toast-in 0.3s ease;
  max-width: 340px;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

@keyframes toast-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.toast.hide {
  animation: toast-out 0.3s ease forwards;
}

/* ---- Player Appear Animation ---- */
.player-section.appear {
  animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .voice-settings {
    grid-template-columns: 1fr;
  }

  .translation-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-arrow {
    padding-bottom: 0;
    transform: rotate(90deg);
    align-self: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .player-card {
    padding: 24px 20px;
  }

  .hero-stats {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 70px 16px 40px;
  }

  .tab-switcher {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
  }

  .player-controls {
    gap: 10px;
  }
}