/* Convert.AI — Commercial Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #030712;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: #334155;
  --accent: #06b6d4;
  --accent-2: #8b5cf6;
  --text: #f8fafc;
  --muted: #94a3b8;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background grid + glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; right: -150px; }
.glow-2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -100px; left: -100px; }

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.logo .badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-radius: 20px;
}

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

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent);
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.tool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tool-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-tab:hover { border-color: var(--accent); color: var(--text); }
.tool-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #000; border-color: transparent; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow);
}

.upload-zone, .file-list, .controls, .action-bar, .result-section, .progress-wrap {
  overflow: hidden;
}

.card > :first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card > :last-child  { border-radius: 0 0 var(--radius) var(--radius); }

/* Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.1);
}

.upload-zone.highlight { border-color: var(--accent); background: rgba(6, 182, 212, 0.05); }

.upload-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  transition: transform 0.3s;
}

.upload-zone:hover .upload-icon { transform: scale(1.08) rotate(-4deg); }

.upload-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.upload-sub { font-size: 13px; color: var(--muted); }

.upload-zone .upload-label {
  display: block;
  cursor: pointer;
}

input[type="file"] { display: none; }

/* File list */
.file-list {
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.file-item:hover { background: rgba(255,255,255,0.02); }

.file-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--muted); }

.file-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
}

.status-waiting { background: rgba(148, 163, 184, 0.1); color: var(--muted); }
.status-processing { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.status-done { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.status-error { background: rgba(239, 68, 68, 0.1); color: var(--error); }

.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.file-remove:hover { color: var(--error); }

/* Controls */
.controls {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
}

.control-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.control-select, .control-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.control-select:focus, .control-input:focus { border-color: var(--accent); }

.quality-row { grid-column: 1 / -1; }
.quality-slider { width: 100%; accent-color: var(--accent); margin-top: 8px; }
.quality-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.checkbox-group input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox-group label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(6, 182, 212, 0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); }

.btn-success {
  background: var(--success);
  color: #000;
}

.btn-success:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 197, 94, 0.3); }

.action-bar {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Progress */
.progress-wrap {
  grid-column: 1 / -1;
  padding: 8px 0;
}

.progress-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  width: 0%;
  transition: width 0.2s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Result */
.result-section {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  scroll-margin-top: 80px;
}

.result-ready {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-ready::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.btn-download {
  font-size: 17px !important;
  padding: 18px 40px !important;
  margin-top: 20px;
  margin-bottom: 8px;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: download-pulse 2s ease-in-out infinite;
  position: relative;
}

@keyframes download-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(34,197,94,0);   }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);    }
}

.result-help {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  margin-top: 8px;
}

.result-preview {
  display: flex;
  justify-content: center;
  background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 140px;
  align-items: center;
}

.result-preview img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.result-stat { text-align: center; }
.result-stat .val { font-size: 18px; font-weight: 800; color: var(--accent); }
.result-stat .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }

.error-msg {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--error);
  margin-top: 12px;
  grid-column: 1 / -1;
  text-align: center;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.5);
}

.stat-box { text-align: center; }
.stat-box .num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-box .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Features */
.features {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 42px; font-weight: 800; margin-bottom: 4px; }
.pricing-card .price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing-card .desc { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing-card li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.step:hover { border-color: rgba(6, 182, 212, 0.3); transform: translateY(-4px); }

.step-num {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #000;
}

.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Landing pages */
.landing-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 760px;
  margin: 0 auto;
}

.landing-hero h1 { font-size: clamp(32px, 5vw, 52px); }

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Legal pages */
.legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
}
.legal h1 { font-size: 36px; margin-bottom: 16px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 16px; font-size: 14px; line-height: 1.7; }
.legal ul { color: var(--muted); margin-bottom: 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding-top: 50px; }
  .stats-bar { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: 1fr; }
  .quality-row { grid-column: auto; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .upload-zone { padding: 40px 20px; }
  .action-bar { flex-direction: column; }
  .action-bar .btn { width: 100%; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
