:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #232e3a;
  --border: #2c3947;
  --text: #e6edf3;
  --text-dim: #8b98a5;
  --accent: #2ea6ff;
  --accent-hover: #1e8fe0;
  --success: #2ecc71;
  --danger: #e74c3c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-mark { font-size: 20px; }
.privacy-badge {
  font-size: 13px;
  color: var(--success);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
}

main { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }

.hero { text-align: center; margin-bottom: 32px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; }
.subtitle { color: var(--text-dim); font-size: 17px; max-width: 640px; margin: 0 auto; }
.subtitle strong { color: var(--text); }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone-inner { padding: 48px 24px; text-align: center; }
.dropzone-icon { font-size: 44px; margin-bottom: 8px; }
.dropzone-title { font-size: 18px; font-weight: 600; margin: 8px 0; }
.dropzone-or { color: var(--text-dim); margin: 8px 0; font-size: 14px; }
.dropzone-hint { color: var(--text-dim); font-size: 13px; margin-top: 16px; }

.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { color: var(--text); }

.controls {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.control { display: flex; flex-direction: column; gap: 6px; }
.control label { font-size: 13px; color: var(--text-dim); }
.control select, .control input[type="range"] { min-width: 160px; }
.control select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
}
.control-actions { flex-direction: row; margin-left: auto; gap: 10px; }

.file-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.file-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.file-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 13px; color: var(--text-dim); }
.file-status { font-size: 13px; }
.file-status.pending { color: var(--text-dim); }
.file-status.working { color: var(--accent); }
.file-status.done { color: var(--success); }
.file-status.error { color: var(--danger); }

.ad-slot { margin: 32px 0; }

.why { margin-top: 48px; }
.why h2 { font-size: 22px; }
.why-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.why-list li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.why-list strong { color: var(--text); }

.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.hidden { display: none !important; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .control-actions { margin-left: 0; width: 100%; }
  .controls { flex-direction: column; align-items: stretch; }
}
