:root {
  --ink: #f4f5f6;
  --muted: #9ca3a8;
  --line: #2a2e31;
  --paper: #0b0c0d;
  --card: #141618;
  --accent: #f4f5f6;
  --accent-light: #1c2023;
  --orange: #d3d6d8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% -4%, rgba(63, 68, 72, .7), transparent 30rem),
    radial-gradient(circle at 8% 64%, rgba(35, 38, 41, .6), transparent 28rem),
    linear-gradient(119deg, #090a0b 0%, #101214 50%, #0b0c0d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin: auto; }

.topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 88px; height: auto; }
.privacy-pill { display: flex; gap: 8px; align-items: center; color: #a8adb2; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.privacy-pill span { width: 7px; height: 7px; background: #e3e5e6; border-radius: 100%; box-shadow: 0 0 0 4px rgba(227,229,230,.11); }
.how-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.how-link span { margin-left: 4px; color: #b7bdc2; }

.hero { max-width: 690px; padding: 77px 0 59px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #aeb4b8; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.eyebrow span { display: inline-block; width: 21px; height: 1px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(48px, 6.8vw, 78px); font-weight: 700; letter-spacing: -.075em; line-height: .98; }
h1 em { color: #b8bec3; font-family: Georgia, serif; font-size: 1.04em; font-weight: 400; letter-spacing: -.07em; }
.hero-copy { max-width: 560px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.workspace { padding: 31px; background: rgba(20,22,24,.9); border: 1px solid #2c3033; border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.section-kicker { margin-bottom: 6px; color: #8c9399; }
.workspace h2 { margin: 0; font-size: 22px; letter-spacing: -.06em; }
.settings-button { display: inline-flex; gap: 9px; align-items: center; padding: 10px 13px; border: 1px solid #363b3f; border-radius: 9px; background: #1b1e20; color: #dce0e2; font-size: 12px; font-weight: 700; }
.settings-button:hover, .settings-button[aria-expanded="true"] { border-color: #70777d; background: #23272a; }
.settings-button svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.settings-panel { display: grid; grid-template-columns: 1.15fr 1fr .9fr; align-items: start; gap: 18px; margin: -5px 0 23px; padding: 19px; border: 1px solid #303438; border-radius: 12px; background: #171a1c; }
.setting-group { display: grid; gap: 8px; min-width: 0; }
.setting-label { display: flex; justify-content: space-between; align-items: baseline; color: #c4c9cc; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.setting-label strong { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.setting-label small { color: #849087; font-weight: 600; }
.segmented { display: flex; padding: 3px; border-radius: 8px; background: #24282b; }
.segment { flex: 1; min-width: 0; border: 0; border-radius: 6px; padding: 7px 6px; background: transparent; color: #8e969b; font-size: 11px; font-weight: 700; }
.segment.active { background: #393e42; color: #f4f5f6; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.range-group input { accent-color: var(--accent); width: 100%; }
.setting-group > small { color: #92999e; font-size: 10px; line-height: 1.4; }
select { width: 100%; border: 1px solid #383d41; border-radius: 7px; padding: 8px; background: #202427; color: #d4d8da; font-size: 11px; outline-color: #d4d8da; }
.settings-note { grid-column: 1 / -1; margin: 0; color: #969da2; font-size: 10px; line-height: 1.5; }
.settings-note b { color: #f0f2f3; }

.drop-zone { position: relative; display: grid; justify-items: center; place-content: center; min-height: 244px; border: 1.5px dashed #4a5156; border-radius: 13px; background: linear-gradient(140deg, rgba(37,41,44,.82), rgba(17,19,21,.65)); text-align: center; transition: border-color .2s, background .2s, transform .2s; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: #c7cbcd; background: #23272a; transform: translateY(-1px); }
.drop-zone input { position: absolute; inset: 0; width: 100%; cursor: pointer; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 14px; border-radius: 50%; color: #f0f2f3; background: #2b3033; box-shadow: 0 5px 15px rgba(0,0,0,.24); }
.upload-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.drop-zone p { margin: 0; color: #d9dcde; font-size: 14px; }
.drop-zone p strong { font-weight: 800; }
.drop-zone p span { color: #f4f5f6; font-weight: 800; }
.drop-zone small { margin-top: 9px; color: #91999f; font-size: 10px; }

.queue { display: grid; gap: 12px; margin-top: 15px; }
.image-card { display: grid; grid-template-columns: 100px 1fr; min-height: 112px; overflow: hidden; border: 1px solid #303438; border-radius: 11px; background: var(--card); }
.image-preview { display: grid; place-items: center; overflow: hidden; background: #24282b; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-info { display: grid; padding: 13px 15px 10px; }
.file-row, .result-row, .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.file-name-wrap { overflow: hidden; }
.file-name-wrap h3 { overflow: hidden; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin: 4px 0 0; color: #8f979d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.remove-button { flex: 0 0 auto; width: 23px; height: 23px; border: 0; border-radius: 50%; color: #a7aeb3; background: #282d30; font-size: 18px; line-height: 1; }
.remove-button:hover { color: #ffffff; background: #454a4e; }
.result-row { margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #979fa4; font-size: 10px; font-weight: 700; }
.status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #7d858b; }
.status.ready { color: #e3e6e8; }
.status.ready i { background: #d7dbde; }
.status.working { color: #c8cdd0; }
.status.working i { background: #b6bcc0; animation: pulse 1s infinite alternate; }
.status.error { color: #e1b7b1; }
.status.error i { background: #d78278; }
.file-result { color: #d7dbde; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 500; text-align: right; }
.card-actions { justify-content: flex-end; margin-top: 5px; }
.download-one { display: none; border: 0; padding: 4px 0; color: #f3f4f5; background: transparent; font-size: 10px; font-weight: 800; }
.image-card.complete .download-one { display: block; }
.image-card.complete .file-result { display: none; }
.image-card.complete .result-row { display: none; }
.image-card.complete .image-info { grid-template-rows: 1fr auto; }

.summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; padding: 15px 17px; border-radius: 10px; background: #23272a; }
.summary-copy { display: flex; align-items: center; gap: 10px; }
.summary-spark { color: #e3e5e6; font-size: 19px; }
.summary p { margin: 0; color: #b9c0c4; font-size: 11px; }
.summary strong { color: #f4f5f6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.summary p span { margin-left: 5px; }
.download-all { border: 1px solid #f4f5f6; border-radius: 7px; padding: 10px 12px; color: #111315; background: #f4f5f6; font-size: 11px; font-weight: 800; box-shadow: 0 4px 9px rgba(0,0,0,.26); }
.download-all:hover { background: #dadddf; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 76px 0 60px; }
.trust article { padding-right: 30px; }
.trust-number { color: #858d93; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.trust h3 { margin: 12px 0 9px; font-size: 14px; letter-spacing: -.03em; }
.trust p { margin: 0; color: #929aa0; font-size: 11px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; padding: 19px 0 30px; border-top: 1px solid #292e31; color: #858d93; font-size: 10px; }

@keyframes pulse { to { transform: scale(1.4); opacity: .5; } }
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1120px); }
  .topbar { height: 72px; }
  .privacy-pill { display: none; }
  .hero { padding: 55px 4px 43px; }
  .workspace { padding: 20px; }
  .settings-panel { grid-template-columns: 1fr; }
  .workspace-head { align-items: start; }
  .settings-button { padding: 9px; font-size: 0; }
  .settings-button svg { width: 17px; }
  .image-card { grid-template-columns: 82px 1fr; }
  .summary, footer { align-items: flex-start; flex-direction: column; }
  .summary { gap: 10px; }
  .trust { grid-template-columns: 1fr; gap: 26px; padding: 55px 4px 40px; }
  .trust article { padding: 0; }
}
