:root {
  --obsidian: #132322;
  --deep-abyss: #0e1a19;
  --charcoal: #070f0f;
  --mint-frost: #edf7f5;
  --white: #ffffff;
  --fog-border: #d0d3d3;
  --stone-border: #b2b6b4;
  --slate-text: #828786;
  --graphite: #424f4f;
  --neon: #3ddc91;
  --mint-whisper: #97ddbc;
  --signal-yellow: #ffcd48;
  --danger-bg: #2a1414;
  --danger-text: #ff9b9b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 220, 145, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(151, 221, 188, 0.08), transparent 55%),
    var(--obsidian);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

main { max-width: 820px; margin: 0 auto; padding: 0 20px 90px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--neon);
  color: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 12px;
  color: var(--slate-text);
  display: block;
  margin-top: 1px;
}
.status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 13px;
  border-radius: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(61, 220, 145, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 145, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(61, 220, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 145, 0); }
}

/* ---------- hero ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--neon);
  display: inline-block;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--white);
  letter-spacing: -0.02em;
}
h1 span { color: var(--neon); }

.lede {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  font-size: 16.5px;
  max-width: 580px;
}

/* ---------- pipeline stat row ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.pipeline-step {
  background: var(--deep-abyss);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 14px 16px;
  position: relative;
}
.pipeline-step .num {
  font-size: 11px;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.04em;
}
.pipeline-step .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  line-height: 1.35;
}

/* ---------- limits banner ---------- */
.limits {
  background: var(--deep-abyss);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  line-height: 1.55;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.limits strong { color: var(--neon); font-weight: 600; }

/* ---------- upload card ---------- */
.drop {
  background: var(--mint-frost);
  border-radius: 28px;
  padding: 44px 34px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 18px 40px -12px;
  position: relative;
  overflow: hidden;
}
.drop::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(61, 220, 145, 0.22), transparent 70%);
  border-radius: 50%;
}
.drop-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--obsidian);
  color: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 19px;
}
.drop-title {
  color: var(--obsidian);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.drop-hint {
  color: var(--graphite);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
input[type="file"] {
  font-size: 14px;
  color: var(--graphite);
}
input[type="file"]::file-selector-button {
  border-radius: 56px;
  border: 1.5px solid var(--obsidian);
  background: transparent;
  color: var(--obsidian);
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.15s ease;
}
input[type="file"]::file-selector-button:hover { background: rgba(19, 35, 34, 0.06); }

button#startBtn {
  background: var(--neon);
  color: var(--obsidian);
  border: 0;
  border-radius: 56px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 22px;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 24px -8px rgba(61, 220, 145, 0.55);
}
button#startBtn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
button#startBtn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

/* ---------- job cards ---------- */
#jobs { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }

.job {
  background: var(--deep-abyss);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 18px 20px;
}
.job strong {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  word-break: break-all;
}
.bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
}
.bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--mint-whisper), var(--neon));
  width: 0%;
  transition: width 0.3s ease;
}
.step { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; line-height: 1.5; }
.ok { color: var(--neon); font-weight: 600; }

.err {
  color: var(--danger-text);
  background: var(--danger-bg);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  line-height: 1.5;
  font-size: 13.5px;
}

.err-box {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.err-box-fatal {
  background: var(--danger-bg);
  border-color: rgba(255, 155, 155, 0.2);
}
.err-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}
.err-box-fatal .err-title { color: var(--danger-text); }
.err-msg {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}
.err-box-fatal .err-msg { color: var(--danger-text); }
.err-line { margin-bottom: 4px; }
.err-line strong { color: rgba(255, 255, 255, 0.8); font-weight: 500; }

a.download {
  display: inline-block;
  margin-top: 12px;
  background: var(--neon);
  color: var(--obsidian);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 56px;
  font-size: 13.5px;
  font-weight: 600;
}
a.download:hover { filter: brightness(1.08); }

/* ---------- footer ---------- */
.footer-note {
  margin-top: 56px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 620px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.05rem; }
  .topbar { padding: 20px 0; }
}
