:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #171717;
  --line: #2b2b2b;
  --line-hot: #858585;
  --text: #f3f1eb;
  --muted: #96938b;
  --accent: #d8ff48;
  --accent-dark: #1b2108;
  --danger: #ff7b70;
  --success: #a9e870;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(216,255,72,.08), transparent 25rem),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
}
button { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 28px; }
.hero { padding: 22px 0 54px; max-width: 880px; }
.privacy-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px;
  border: 1px solid #333; border-radius: 999px; color: #c8c5bc; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(10,10,10,.72);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(216,255,72,.1); }
.eyebrow, .step { margin: 25px 0 10px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(54px, 9vw, 112px); line-height: .86; letter-spacing: -.072em; font-weight: 760; }
h1 span { color: transparent; -webkit-text-stroke: 1px #777; }
.lede { max-width: 660px; margin: 30px 0 0; color: #aaa69d; font-size: clamp(16px, 2vw, 20px); line-height: 1.68; }
.lede strong { color: var(--text); font-weight: 650; }
.workspace { border: 1px solid var(--line); border-radius: 24px; background: rgba(16,16,16,.94); padding: clamp(20px, 4vw, 38px); box-shadow: 0 24px 90px rgba(0,0,0,.38); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading .step { margin: 0 0 8px; }
h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.text-button { color: var(--muted); background: none; border: 0; padding: 8px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.dropzone {
  width: 100%; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text); border: 1px dashed #484848; border-radius: var(--radius); background: #0d0d0d; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: var(--accent-dark); transform: translateY(-1px); }
.dropzone svg { width: 44px; height: 44px; margin-bottom: 12px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-size: 18px; font-weight: 650; }
.drop-copy { color: var(--muted); font-size: 14px; }
.empty-hint { padding: 16px 2px 0; color: #77746e; font-size: 13px; }
.file-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.file-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); overflow: hidden; }
.file-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 15px 16px; }
.file-main { min-width: 0; }
.file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.file-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .download-button { border: 1px solid #393939; border-radius: 10px; background: #101010; color: #b7b4ad; padding: 8px 10px; text-decoration: none; cursor: pointer; font-size: 12px; }
.icon-button:hover, .download-button:hover { color: var(--text); border-color: #666; }
.download-button { color: #0a0a0a; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.status { font-size: 12px; color: var(--muted); }
.status.processing { color: var(--accent); }
.status.done { color: var(--success); }
.status.error { color: var(--danger); }
.progress-track { height: 3px; background: #252525; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.error-copy { padding: 0 16px 14px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.run-panel { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.run-copy { display: grid; gap: 5px; color: var(--text); font-size: 14px; }
.run-copy span:last-child { color: var(--muted); font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; border: 0; border-radius: 12px; padding: 14px 18px; color: #0b0b0b; background: var(--accent); font-weight: 760; cursor: pointer; }
.primary-button svg { width: 18px; height: 18px; fill: currentColor; }
.primary-button:disabled { opacity: .35; cursor: not-allowed; }
.details { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.details article { background: var(--panel); padding: 26px; }
.details article > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 12px; }
.details h3 { margin: 28px 0 8px; font-size: 17px; }
.details p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 4px 0; color: #66635d; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 24px; }
  .hero { padding-bottom: 36px; }
  .workspace { padding: 18px; }
  .details { grid-template-columns: 1fr; }
  .run-panel { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  footer { flex-direction: column; }
  .file-row { grid-template-columns: minmax(0,1fr); }
  .file-actions { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
