:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel2: #1c2230;
  --line: #2a3140;
  --text: #e6edf3;
  --dim: #8b96a5;
  --accent: #4ade80;
  --accent2: #38bdf8;
  --err: #f87171;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(13,17,23,.92);
  backdrop-filter: blur(8px); z-index: 20;
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.brand span { color: var(--accent); }
.site-header nav a { margin-left: 22px; color: var(--dim); font-size: 14px; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 980px; margin: 0 auto; padding: 0 24px 80px; }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: 42px; line-height: 1.18; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .sub { color: var(--dim); font-size: 17px; max-width: 660px; margin: 0 0 16px; }
.hero .proof { font-size: 13px; color: var(--dim); background: var(--panel); border: 1px solid var(--line);
  display: inline-block; padding: 8px 14px; border-radius: 8px; margin: 0; }

.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; background: var(--panel);
  padding: 44px 20px; text-align: center; cursor: pointer; transition: .15s;
}
.dropzone.over { border-color: var(--accent); background: var(--panel2); }
.dz-icon { font-size: 30px; color: var(--accent); margin-bottom: 8px; }
.dz-main { margin: 0 0 6px; font-size: 17px; }
.dz-hint { margin: 0; color: var(--dim); font-size: 13px; }
.link { background: none; border: 0; color: var(--accent2); font: inherit; cursor: pointer;
  text-decoration: underline; padding: 0; }

.controls {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
  margin: 20px 0; padding: 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
}
.controls label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
select, input[type=range] { font: inherit; }
select {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; min-width: 260px;
}
input[type=range] { width: 160px; accent-color: var(--accent); }
button.primary {
  background: var(--accent); color: #06200f; border: 0; border-radius: 8px;
  padding: 11px 22px; font: inherit; font-weight: 650; cursor: pointer;
}
button.primary:disabled { opacity: .35; cursor: not-allowed; }
button.ghost {
  background: transparent; color: var(--dim); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 18px; font: inherit; cursor: pointer;
}
button.ghost:disabled { opacity: .35; cursor: not-allowed; }

.results { margin-top: 8px; }
.results .empty { color: var(--dim); font-size: 14px; }
.row {
  display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 12px;
  align-items: center; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; background: var(--panel);
  font-size: 14px;
}
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffmt { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.meta { color: var(--dim); font-size: 12px; }
.ok { color: var(--accent); font-weight: 600; }
.err { color: var(--err); font-weight: 600; }
.work { color: var(--accent2); }
.rdy { color: var(--dim); }
.errmsg { color: var(--err); font-size: 12px; }
.dl {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 14px; font-size: 13px; color: var(--text);
}
.dl:hover { border-color: var(--accent); text-decoration: none; }

section h2 { font-size: 26px; letter-spacing: -.02em; margin: 64px 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.fcard h3 { margin: 0 0 6px; font-size: 15px; color: var(--accent2); }
.fcard p { margin: 0; font-size: 13px; color: var(--dim); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cols h3 { font-size: 16px; margin: 0 0 8px; }
.cols p { margin: 0; color: var(--dim); font-size: 14px; }

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

@media (max-width: 700px) {
  .hero h1 { font-size: 30px; }
  .row { grid-template-columns: 1fr auto; }
  .ffmt, .fstat { grid-column: 1 / -1; }
  select { min-width: 100%; }
}
