:root {
  color-scheme: dark;
  --bg: #070908;
  --surface: #101310;
  --surface-2: #171b17;
  --text: #f2f5ef;
  --muted: #9da59d;
  --accent: #c8ff00;
  --accent-soft: rgba(200, 255, 0, 0.12);
  --line: #2a302a;
  --danger: #ffbd59;
  --success: #b6ff61;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(145deg, #070908 0%, #0a0d0a 48%, #070908 100%);
  color: var(--text);
  font-family: var(--font-body);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(ellipse 42% 29% at 91% 8%, transparent 60%, rgba(200,255,0,.105) 60.4%, transparent 61.2%),
    radial-gradient(ellipse 50% 35% at 91% 8%, transparent 64%, rgba(200,255,0,.07) 64.4%, transparent 65.1%),
    radial-gradient(ellipse 59% 42% at 91% 8%, transparent 68%, rgba(242,245,239,.035) 68.3%, transparent 69%),
    radial-gradient(ellipse 45% 31% at 2% 78%, transparent 61%, rgba(200,255,0,.06) 61.4%, transparent 62.2%),
    radial-gradient(ellipse 56% 39% at 2% 78%, transparent 66%, rgba(242,245,239,.03) 66.3%, transparent 67%),
    radial-gradient(circle at 83% 18%, rgba(200,255,0,.12), transparent 23%),
    radial-gradient(circle at 0% 82%, rgba(200,255,0,.055), transparent 26%);
}
body::after {
  opacity: .55;
  background:
    linear-gradient(128deg, transparent 0 28%, rgba(200,255,0,.045) 28.08%, transparent 28.22%),
    linear-gradient(38deg, transparent 0 72%, rgba(242,245,239,.025) 72.08%, transparent 72.2%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 58%, transparent 100%);
}
button, input, select { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
em { color: var(--accent); font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: .8rem 1rem;
  background: var(--accent);
  color: #000;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.is-hidden { display: none !important; }

.site-header {
  position: relative;
  z-index: 10;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, .92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 116px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav a, .site-footer a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.site-nav .nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.breadcrumbs {
  padding: 1rem clamp(1rem, 4vw, 4rem) 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin: 0 .55rem; color: #657065; }
.breadcrumbs a,
.breadcrumbs span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible,
.breadcrumbs [aria-current="page"] { color: var(--accent); }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr);
  align-items: end;
  gap: 4rem;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 72% 35%, rgba(200,255,0,.1), transparent 30%);
}
.hero-copy { max-width: 980px; }
.eyebrow, .section-label, .panel-title span, .file-summary > span {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 {
  max-width: 12ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3rem, 7vw, 7.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
  text-transform: uppercase;
}
.hero-text {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #c9cec8;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}
.trust-list li::before { content: "✓"; margin-right: .6rem; color: var(--accent); }
.rating-summary {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 1.25rem 0 0;
  padding: .65rem .85rem;
  border: 1px solid rgba(200,255,0,.28);
  background: rgba(16,19,16,.72);
  color: #dce3da;
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.rating-summary-star {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}
.rating-summary-star svg { width: 100%; height: 100%; fill: var(--accent); }
.privacy-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(16,19,16,.82);
}
.privacy-card svg { flex: 0 0 32px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.privacy-card strong, .privacy-card span { display: block; }
.privacy-card strong { margin-bottom: .4rem; font-family: var(--font-display); }
.privacy-card span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.tool-section { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem); }
.tool-head {
  max-width: 1800px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 1.5rem;
}
.tool-head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); text-transform: uppercase; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .38; }
.button-primary { border: 1px solid var(--accent); background: var(--accent); color: #090b09; }
.button-primary:not(:disabled):hover { background: #dcff5e; }
.button-secondary { border: 1px solid #eff4ec; background: #eff4ec; color: #090b09; }
.button-ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button-ghost:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }

.drop-panel, .workspace { max-width: 1800px; margin: auto; }
.decoder-status {
  max-width: 1800px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(200,255,0,.42);
  background: rgba(18,23,16,.96);
  box-shadow: inset 4px 0 0 var(--accent);
}
.decoder-spinner {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(200,255,0,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: decoder-spin .8s linear infinite;
}
.decoder-copy { min-width: 0; display: grid; gap: .25rem; }
.decoder-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: .95rem;
  text-transform: uppercase;
}
.decoder-copy small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
@keyframes decoder-spin { to { transform: rotate(360deg); } }
.drop-panel.is-dragging .drop-zone { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone {
  width: 100%;
  min-height: 470px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  border: 1px dashed #5a655a;
  background: rgba(16, 19, 16, .88);
  color: var(--text);
  text-align: center;
  transition: border-color .2s, background-color .2s;
}
.drop-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: uppercase;
}
.drop-zone > span:not(.upload-icon) { color: #c9cec8; font-size: 1.05rem; }
.drop-zone small { color: var(--muted); }
.drop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(16,19,16,.88);
  color: var(--muted);
  font-size: .9rem;
}
.drop-actions .button { min-width: 220px; }
.upload-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: .5rem;
  border: 1px solid var(--accent);
}
.upload-icon svg { width: 46px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 370px;
  gap: 1rem;
  align-items: stretch;
}
.queue-panel, .compare-panel, .settings-panel { min-width: 0; border: 1px solid var(--line); background: rgba(16,19,16,.94); }
.queue-panel, .settings-panel { padding: 1rem; }
.panel-title, .file-summary { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.panel-title span, .file-summary > span { display: block; margin-bottom: .5rem; }
.panel-title strong, .file-summary strong { display: block; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 1rem; }
.file-summary small { display: block; margin-top: .35rem; color: var(--muted); }
.queue-list { max-height: 720px; display: grid; gap: .5rem; overflow: auto; padding-top: 1rem; }
.queue-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .55rem;
  border: 1px solid var(--line);
  background: #0c0f0d;
  color: var(--text);
  text-align: left;
}
.queue-item:hover, .queue-item.is-active { border-color: var(--accent); }
.queue-thumb { width: 46px; height: 46px; object-fit: cover; background: #222; }
.queue-name { display: block; overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.queue-meta { display: block; margin-top: .3rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; }

.compare-panel { display: grid; grid-template-rows: minmax(560px, 1fr) auto; overflow: hidden; }
.image-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  overscroll-behavior: contain;
  background:
    linear-gradient(45deg, #222722 25%, transparent 25%),
    linear-gradient(-45deg, #222722 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222722 75%),
    linear-gradient(-45deg, transparent 75%, #222722 75%), #151915;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}
.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(var(--pan-x, 0), var(--pan-y, 0)) scale(var(--zoom, 1));
  transform-origin: center;
  transition: transform 180ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.image-stage.is-zoomed { cursor: grab; }
.image-stage.is-comparing { cursor: ew-resize; }
.image-stage.is-panning { cursor: grabbing; }
.image-stage.is-comparing .preview,
.image-stage.is-panning .preview,
.image-stage.is-pinching .preview { transition: none; }
.optimized-layer { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.optimized-layer .preview { width: 100%; }
.stage-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  background: rgba(7,9,8,.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
}
.stage-left { left: 1rem; color: var(--accent); }
.stage-right { right: 1rem; }
.compare-line { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.compare-line::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; transform: translate(-50%, -50%); }
.zoom-controls {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px 58px 44px;
  border: 1px solid var(--line);
  background: rgba(7,9,8,.88);
}
.zoom-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
}
.zoom-controls button:last-child { border-right: 0; }
.zoom-controls button:hover { background: var(--accent); color: #000; }
.zoom-controls .zoom-readout { color: var(--accent); font-size: .66rem; }
.compare-control { display: grid; grid-template-columns: minmax(190px, auto) 1fr; align-items: center; gap: 1rem; padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; }
.compare-control span { display: grid; gap: .25rem; }
.compare-control strong { color: var(--text); font-size: .65rem; }
.compare-control small { color: var(--muted); font-size: .56rem; text-transform: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.settings-panel { display: flex; flex-direction: column; gap: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.stats div { min-width: 0; padding: .8rem; border: 1px solid var(--line); background: #0c0f0d; }
.stats span, .settings label > span { display: block; margin-bottom: .4rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; }
.stats strong { display: block; overflow-wrap: anywhere; font-family: var(--font-display); }
.stats .saving-stat { grid-column: 1 / -1; }
.saving-stat strong { color: var(--accent); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.preset { min-height: 44px; padding: .5rem; border: 0; border-right: 1px solid var(--line); background: #0c0f0d; color: var(--muted); font-family: var(--font-mono); font-size: .58rem; text-transform: uppercase; }
.preset:last-child { border-right: 0; }
.preset:hover, .preset.is-active { background: var(--accent); color: #000; }
.settings { display: grid; gap: .9rem; }
.settings label { display: grid; min-width: 0; }
.settings select, .settings input[type="number"] { min-height: 46px; width: 100%; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 0; background: #0c0f0d; color: var(--text); }
.format-support { min-height: 1.25em; margin-top: .4rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field-grid, .rotate-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rotate-row .button { padding-left: .5rem; padding-right: .5rem; }
.download-actions { display: grid; gap: .6rem; margin-top: auto; }
.status { min-height: 1.5em; margin: .3rem 0 0; color: var(--muted); font-family: var(--font-mono); font-size: .65rem; line-height: 1.45; }
.status.is-success { color: var(--success); }
.status.is-warning { color: var(--danger); }
.rating-prompt,
.rating-thanks {
  margin-top: .35rem;
  padding: 1rem;
  border: 1px solid rgba(200,255,0,.3);
  background: rgba(200,255,0,.055);
}
.rating-kicker {
  margin-bottom: .35rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rating-question {
  margin-bottom: .65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.rating-stars button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: #0c0f0d;
  color: var(--muted);
  transition: border-color .18s, background-color .18s, color .18s;
  touch-action: manipulation;
}
.rating-stars button:hover,
.rating-stars button:focus-visible,
.rating-stars button.is-preview {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.rating-stars button:disabled { cursor: wait; opacity: .5; }
.rating-stars svg {
  width: 25px;
  height: 25px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: fill .18s;
}
.rating-stars button.is-preview svg { fill: currentColor; }
.rating-note,
.rating-feedback {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}
.rating-note a { color: #e8f5c7; text-underline-offset: .2em; }
.rating-feedback { min-height: 1.1em; color: var(--danger); }
.rating-thanks {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--success);
  font-size: .82rem;
  line-height: 1.45;
}
.rating-thanks svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.content-section, .faq-section, .impact-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem);
  border-top: 1px solid var(--line);
}
.section-intro { max-width: 620px; }
.section-intro h2, .section-heading h2, .impact-section h2, .faq-section h2, .cta-section h2, .privacy-section h2 {
  margin-bottom: 2rem;
  font-size: clamp(2.6rem, 5vw, 6rem);
  letter-spacing: -.05em;
  line-height: .96;
  text-transform: uppercase;
}
.section-intro > p:last-child, .section-heading > p:last-child, .cta-section > p:not(.section-label) { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.text-link {
  color: #e8f5c7;
  text-decoration-color: rgba(200,255,0,.65);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s, text-decoration-color .2s;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span, .feature-number { color: var(--accent); font-family: var(--font-mono); font-size: .72rem; }
.steps strong { display: block; margin-bottom: .5rem; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { min-height: 300px; padding: 2rem; border-right: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 0; }
.feature-grid h3 { margin: 4rem 0 1rem; font-size: 1.35rem; text-transform: uppercase; }
.feature-grid p { color: var(--muted); line-height: 1.65; }

.guide-section,
.usecase-section,
.resource-section {
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem);
  border-top: 1px solid var(--line);
}
.section-heading {
  max-width: 780px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-heading-wide { max-width: 920px; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.format-grid article {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  background: rgba(11,14,11,.62);
}
.format-grid article:last-child { border-right: 0; }
.format-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.format-top span,
.format-top strong,
.format-grid small,
.usecase-grid > article > span {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.format-top span { color: var(--accent); }
.format-top strong { color: var(--muted); font-weight: 500; }
.format-grid h3 {
  margin: clamp(4rem, 8vw, 7rem) 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.045em;
}
.format-grid p { min-height: 6.6em; color: var(--muted); line-height: 1.65; }
.format-grid small { color: #d9ded7; line-height: 1.6; }
.guide-note {
  max-width: 900px;
  margin: 2rem 0 0 auto;
  padding: 1.5rem 0 0 2rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  line-height: 1.7;
}
.guide-note strong { color: var(--text); }

.impact-section { background: rgba(16,19,16,.67); }
.impact-copy { max-width: 720px; }
.impact-copy > p:not(.section-label) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.impact-points article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.impact-points article:last-child { border-bottom: 1px solid var(--line); }
.impact-points span { color: var(--accent); font-family: var(--font-mono); font-size: .7rem; }
.impact-points h3 { margin-bottom: .65rem; font-size: 1.25rem; text-transform: uppercase; }
.impact-points p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.usecase-grid article {
  min-height: 250px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,8,.48);
}
.usecase-grid > article > span { color: var(--accent); }
.usecase-grid h3 { margin: 4rem 0 1rem; font-size: clamp(1.35rem, 2vw, 2rem); text-transform: uppercase; }
.usecase-grid p { max-width: 560px; color: var(--muted); line-height: 1.65; }

.privacy-section {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 8vw, 10rem);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(200,255,0,.075), transparent 38%),
    rgba(7,9,8,.72);
}
.privacy-mark {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200,255,0,.32);
  transform: rotate(-4deg);
}
.privacy-mark::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  transform: rotate(12deg);
}
.privacy-mark svg {
  width: 42%;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: rotate(4deg);
}
.privacy-copy { max-width: 800px; }
.privacy-copy > p:not(.section-label) { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.privacy-copy ul {
  display: grid;
  gap: .8rem;
  margin: 2rem 0;
  padding: 0;
  color: #d9ded7;
  list-style: none;
}
.privacy-copy li { padding-left: 1.6rem; line-height: 1.55; }
.privacy-copy li::before { content: "✓"; margin-left: -1.6rem; margin-right: .65rem; color: var(--accent); }

.faq-section { background: rgba(16,19,16,.72); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; padding: 0 2rem 1.5rem 0; color: var(--muted); line-height: 1.65; }
.resource-section { background: rgba(7,9,8,.58); }
.resource-grid { border-top: 1px solid var(--line); }
.resource-grid > a {
  min-height: 120px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 40px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .2s, padding-left .2s, background-color .2s;
}
.resource-grid > a:hover { padding-left: 1rem; background: rgba(200,255,0,.045); color: var(--accent); }
.resource-grid > a > span { color: var(--accent); font-family: var(--font-mono); font-size: .7rem; }
.resource-grid h3 { margin: 0 0 .35rem; font-size: clamp(1.15rem, 2.2vw, 1.65rem); text-transform: uppercase; }
.resource-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.resource-grid b { color: var(--accent); font-size: 1.2rem; font-weight: 400; }
.cta-section { padding: clamp(5rem, 12vw, 11rem) clamp(1rem, 8vw, 10rem); text-align: center; }
.cta-section h2 { max-width: 1000px; margin-left: auto; margin-right: auto; }
.cta-section > p:not(.section-label) { max-width: 680px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.5rem; }
.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 4rem clamp(1rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; margin: 0; padding: 1rem; background: var(--danger); color: #000; text-align: center; }

@media (max-width: 1250px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .queue-panel { grid-column: 1 / -1; }
  .queue-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 180px; }
}
@media (max-width: 900px) {
  .site-nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2rem; min-height: 0; }
  .hero-copy, .privacy-card { min-width: 0; max-width: 100%; }
  .privacy-card { max-width: 520px; }
  .workspace { grid-template-columns: 1fr; }
  .queue-panel { grid-column: auto; }
  .compare-panel { grid-template-rows: 430px auto; }
  .image-stage { min-height: 430px; }
  .content-section, .impact-section, .faq-section { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(2) { border-right: 0; }
  .feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .format-grid { grid-template-columns: 1fr; }
  .format-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .format-grid article:last-child { border-bottom: 0; }
  .format-grid h3 { margin-top: 3rem; }
  .format-grid p { min-height: 0; }
  .privacy-section { grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr); gap: 3rem; }
}
@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: .75rem 1rem; }
  .brand img { width: 96px; }
  .site-nav .nav-cta { min-height: 42px; padding: 0 .8rem; font-size: 0; }
  .site-nav .nav-cta::after { content: "Anfragen"; font-size: .62rem; }
  .hero { padding-top: 4.5rem; }
  h1 {
    max-width: 100%;
    font-size: clamp(1.6rem, 6.7vw, 2.2rem);
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .hero-text { overflow-wrap: anywhere; }
  .rating-summary { width: 100%; align-items: flex-start; }
  .privacy-card > div { min-width: 0; }
  .trust-list { display: grid; }
  .tool-section { padding-left: .7rem; padding-right: .7rem; }
  .tool-head { align-items: flex-start; flex-direction: column; }
  .tool-actions { width: 100%; }
  .tool-actions .button { flex: 1; }
  .drop-zone { min-height: 390px; padding: 1.3rem; }
  .drop-actions { align-items: stretch; flex-direction: column; text-align: center; }
  .drop-actions .button { width: 100%; min-width: 0; }
  .decoder-status { align-items: flex-start; margin-left: 0; margin-right: 0; padding: .9rem; }
  .decoder-spinner { flex-basis: 24px; width: 24px; height: 24px; }
  .drop-zone strong { font-size: clamp(2rem, 11vw, 3.2rem); }
  .drop-zone small { max-width: 26ch; line-height: 1.55; }
  .queue-list { display: flex; max-height: none; overflow-x: auto; }
  .queue-item { flex: 0 0 190px; }
  .compare-panel { grid-template-rows: 340px auto; }
  .image-stage { min-height: 340px; }
  .compare-control { grid-template-columns: 1fr; }
  .settings-panel { padding: .8rem; }
  .rating-stars { justify-content: space-between; }
  .rating-stars button { flex: 0 0 48px; }
  .presets { grid-template-columns: 1fr; }
  .preset { border-right: 0; border-bottom: 1px solid var(--line); }
  .preset:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid h3 { margin-top: 2.5rem; }
  .guide-section, .usecase-section, .resource-section { padding-left: 1rem; padding-right: 1rem; }
  .guide-note { padding-left: 1rem; }
  .usecase-grid { grid-template-columns: 1fr; }
  .usecase-grid article { min-height: 220px; }
  .usecase-grid h3 { margin-top: 3rem; }
  .privacy-section { grid-template-columns: 1fr; }
  .privacy-mark { width: min(68vw, 250px); margin: 0 auto; }
  .resource-grid > a { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: .8rem; }
  .resource-grid p { font-size: .9rem; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
