/* =============================================
   ConvertPro – Full Design System
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #11111f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #6c63ff;
  --accent-light: #a78bfa;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #f1f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6060a0;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(108, 99, 255, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.2);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #eeeef5;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --accent: #6c63ff;
  --accent-light: #7c6fff;
  --accent-glow: rgba(108, 99, 255, 0.2);
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a8;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(108, 99, 255, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
}

[data-theme="light"] .navbar {
  background: rgba(245, 245, 250, 0.85) !important;
}

[data-theme="light"] .nav-links {
  background: rgba(245, 245, 250, 0.97) !important;
}

[data-theme="light"] .format-select option {
  background: #f5f5fa;
}

[data-theme="light"] .toast {
  background: #fff;
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .ffmpeg-modal {
  background: #fff;
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #6c63ff, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(108, 99, 255, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(108, 99, 255, 0.07);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  margin-left: auto;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6c63ff, transparent);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a78bfa, transparent);
  top: 50px;
  right: -100px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #c4b5fd, transparent);
  bottom: 100px;
  left: 30%;
  animation-delay: -5s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 56px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---------- UPLOAD ZONE ---------- */
.upload-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(167, 139, 250, 0.03));
  opacity: 0;
  transition: opacity var(--transition);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12), var(--shadow-glow);
  transform: translateY(-4px);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 1;
}

.upload-zone.drag-over {
  border-style: solid;
  background: rgba(108, 99, 255, 0.08);
}

.upload-icon {
  margin-bottom: 16px;
  transition: transform var(--transition);
}

.upload-zone:hover .upload-icon {
  transform: translateY(-4px);
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-link {
  color: var(--accent-light);
  text-decoration: underline;
  cursor: pointer;
}

.upload-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- FILES SECTION ---------- */
.files-section {
  padding: 40px 0 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-actions {
  display: flex;
  gap: 10px;
}

/* ---------- FILE CARD ---------- */
.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.file-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.file-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.file-icon.image {
  background: rgba(59, 130, 246, 0.15);
}

.file-icon.audio {
  background: rgba(16, 185, 129, 0.15);
}

.file-icon.video {
  background: rgba(245, 158, 11, 0.15);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.file-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.file-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.format-select {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color var(--transition);
  outline: none;
}

.format-select:hover,
.format-select:focus {
  border-color: var(--accent);
}

.format-select option {
  background: #1a1a2e;
}

.btn-convert {
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-convert:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

.btn-convert:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 1rem;
  line-height: 1;
}

.btn-remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ---------- PROGRESS BAR ---------- */
.progress-container {
  width: 100%;
  margin-top: 12px;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #a78bfa);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ---------- DOWNLOAD BUTTON ---------- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-download:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* ---------- STATUS BADGES ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-converting {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.status-done {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---------- FEATURES SECTION ---------- */
.features-section,
.formats-section,
.how-section {
  padding: 100px 0;
}

.features-section {
  background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.04), transparent);
}

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 52px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- FORMATS SECTION ---------- */
.formats-section {
  text-align: center;
}

.formats-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover,
.tab-btn.active {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(167, 139, 250, 0.15));
  border-color: var(--accent);
  color: var(--text-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.format-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.format-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.format-badge:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(108, 99, 255, 0.07);
}

/* ---------- HOW IT WORKS ---------- */
.how-section {
  text-align: center;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e1e36;
  color: var(--text-primary);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

/* ---------- FFMPEG OVERLAY ---------- */
.ffmpeg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ffmpeg-modal {
  background: #14142a;
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  text-align: center;
  max-width: 400px;
  width: calc(100% - 48px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.ffmpeg-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(108, 99, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ffmpeg-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ffmpeg-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ffmpeg-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.ffmpeg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #a78bfa);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: all var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.07);
}

.hamburger .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .bar:nth-child(1) {
  margin-bottom: 4px;
}

.hamburger .bar:nth-child(3) {
  margin-top: 4px;
}

/* Animated X state */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease forwards;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition), color var(--transition);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent-light);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .upload-zone {
    padding: 36px 24px;
  }

  .file-card {
    flex-wrap: wrap;
  }

  .file-controls {
    width: 100%;
  }

  .step-arrow {
    display: none;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links-group {
    justify-content: center;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .hero-stats {
    gap: 16px;
  }
}