/* ── Nav CTA button (overrides btn-primary for header) ───────────────────── */
.btn-nav-cta {
  background: linear-gradient(135deg, #6ee7b7 0%, #3b82f6 100%);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(59,130,246,0.35);
  -webkit-text-fill-color: #fff;
}
.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(59,130,246,0.55);
  background: linear-gradient(135deg, #34d399 0%, #2563eb 100%);
}
.server-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.88rem;
  padding: 10px 24px;
  text-align: center;
  justify-content: center;
}
.server-banner svg { flex-shrink: 0; }
.server-banner code {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #fde68a;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Lucide SVG global sizing ─────────────────────────────────────────────── */
[data-lucide], svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.75;
}

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --accent: #7c6fff;
  --accent2: #a78bfa;
  --accent-glow: rgba(124,111,255,0.25);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(124,111,255,0.12);
  border: 1px solid rgba(124,111,255,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-sub {
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9b87ff);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn-sm  { font-size: 0.85rem; padding: 8px 16px; }
.btn-lg  { font-size: 1rem; padding: 14px 28px; }
.btn-full { width: 100%; }
/* Lucide SVG sizing inside buttons */
.btn svg { width: 16px; height: 16px; }
.btn-lg svg { width: 18px; height: 18px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { color: var(--red); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { display: flex; align-items: center; }
.logo-icon svg { width: 22px; height: 22px; color: var(--accent2); }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,111,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent2);
  background: rgba(124,111,255,0.1);
  border: 1px solid rgba(124,111,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-icon { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 36px;
  color: var(--text-muted);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Upload Section ───────────────────────────────────────────────────────── */
.upload-section {
  padding: 80px 0;
  text-align: center;
}
.upload-section h2 { margin-bottom: 8px; }

/* Drop Zone */
.dropzone {
  margin: 40px auto 0;
  max-width: 680px;
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius);
  background: var(--bg2);
  transition: all 0.25s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(124,111,255,0.06);
  box-shadow: 0 0 40px var(--accent-glow);
}
.dropzone-inner {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.drop-icon { margin-bottom: 8px; color: var(--accent2); }
.drop-icon svg { width: 52px; height: 52px; stroke-width: 1.25; }
.drop-title { font-size: 1.1rem; font-weight: 500; color: var(--text); }
.drop-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }

/* File Preview */
.file-preview {
  margin: 32px auto 0;
  max-width: 680px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.file-type-icon { display: flex; align-items: center; color: var(--accent2); }
.file-type-icon svg { width: 32px; height: 32px; }
.file-details { flex: 1; }
.file-name { display: block; font-weight: 600; color: var(--text); font-size: 0.95rem; word-break: break-all; }
.file-size { font-size: 0.8rem; color: var(--text-muted); }

/* Options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.option-card:hover { border-color: var(--border-hover); }
.option-card input[type="checkbox"] { display: none; }
.option-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(124,111,255,0.08);
}
.option-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.option-icon { display: flex; align-items: center; color: var(--accent2); margin-top: 2px; }
.option-icon svg { width: 20px; height: 20px; }
.option-content strong { display: block; font-size: 0.88rem; color: var(--text); }
.option-content small { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* Progress */
.progress-card {
  margin: 32px auto 0;
  max-width: 680px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-title { font-weight: 600; color: var(--text); }
.progress-pct { font-size: 0.9rem; color: var(--accent2); font-weight: 600; }
.progress-bar-track {
  height: 6px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Progress step icons */
.step {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-icon-wrap { display: flex; align-items: center; }
.step-icon-wrap svg { width: 15px; height: 15px; }
.step.active {
  color: var(--accent2);
  background: rgba(124,111,255,0.1);
}
.step.done {
  color: var(--green);
}

/* Result */
.result-card {
  margin: 32px auto 0;
  max-width: 680px;
  background: var(--bg2);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.result-icon { color: var(--green); margin-bottom: 16px; display: flex; justify-content: center; }
.result-icon svg { width: 56px; height: 56px; stroke-width: 1.5; }
.result-card h3 { margin-bottom: 8px; }
.result-sub { margin-bottom: 24px; }
.result-ops {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.result-op {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.result-op-check { display: flex; align-items: center; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.result-op-check svg { width: 14px; height: 14px; stroke-width: 2.5; }
.result-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.result-stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.85rem;
}
.result-stat strong { display: block; color: var(--text); font-size: 1rem; }
.result-stat span { color: var(--text-muted); }
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Error */
.error-card {
  margin: 32px auto 0;
  max-width: 680px;
  background: var(--bg2);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.error-icon { color: var(--red); margin-bottom: 16px; display: flex; justify-content: center; }
.error-icon svg { width: 56px; height: 56px; stroke-width: 1.5; }
.error-card h3 { margin-bottom: 8px; }
.error-card p { margin-bottom: 20px; }

/* ── How It Works ─────────────────────────────────────────────────────────── */
.how-section {
  padding: 100px 0;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-section h2 { margin-bottom: 8px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.step-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
  position: relative;
}
.step-card:hover { border-color: var(--accent); }
.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 12px;
}
.step-icon { color: var(--accent2); margin-bottom: 12px; display: flex; }
.step-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.step-card h4 { margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; }

/* ── Supported ────────────────────────────────────────────────────────────── */
.supported-section {
  padding: 100px 0;
  text-align: center;
}
.supported-section h2 { margin-bottom: 8px; }
.supported-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.supported-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.supported-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.supported-card.video { border-top: 3px solid #7c6fff; }
.supported-card.image { border-top: 3px solid #22c55e; }
.supported-card.audio { border-top: 3px solid #f59e0b; }
.supported-icon { margin-bottom: 14px; display: flex; }
.supported-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.supported-card.video .supported-icon svg { color: #7c6fff; }
.supported-card.image .supported-icon svg { color: #22c55e; }
.supported-card.audio .supported-icon svg { color: #f59e0b; }
.supported-card h4 { margin-bottom: 12px; }
.supported-card ul {
  list-style: none;
  margin-bottom: 16px;
}
.supported-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 3px 0;
}
.supported-card ul li::before { content: '→ '; color: var(--accent2); }
.formats {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--bg3);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-note { font-size: 0.85rem; max-width: 480px; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .options-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .result-actions { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .steps-grid { grid-template-columns: 1fr; }
}
