/* ════════════════════════════════════════════════
   FOTO'S OPRUIMEN — Design System
   Theme: Dark editorial · Warm amber accents
   ════════════════════════════════════════════════ */

:root {
  --bg:         #090807;
  --bg-2:       #0f0d0b;
  --surface:    #141210;
  --surface-2:  #1a1714;
  --surface-3:  #211e1a;
  --border:     rgba(255,245,230,0.07);
  --border-2:   rgba(255,245,230,0.12);
  --border-3:   rgba(255,245,230,0.18);

  --accent:     #e8a030;
  --accent-2:   #c87820;
  --accent-dim: rgba(232,160,48,0.12);
  --accent-glow:rgba(232,160,48,0.25);

  --text:       #f2ebe0;
  --text-2:     #a89880;
  --text-3:     #6a5c4a;

  --good:       #5aaa78;
  --good-dim:   rgba(90,170,120,0.14);
  --warn:       #d4962a;
  --warn-dim:   rgba(212,150,42,0.14);
  --bad:        #c05040;
  --bad-dim:    rgba(192,80,64,0.14);
  --info:       #4a8abf;
  --info-dim:   rgba(74,138,191,0.14);

  --font-disp:  'Cormorant Garamond', Georgia, serif;
  --font-ui:    'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --nav-h:      60px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Grain overlay ─────────────────────────────── */
#grain-overlay {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(9,8,7,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-title {
  font-family: var(--font-disp);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-steps {
  display: flex; align-items: center; gap: 0;
}

.nav-step {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.3s var(--ease);
}

.nav-step.active { color: var(--text); }
.nav-step.done { color: var(--accent); }

.ns-num {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.nav-step.active .ns-num {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-step.done .ns-num {
  background: var(--good-dim);
  border-color: var(--good);
  color: var(--good);
}

.nav-connector {
  width: 20px; height: 1px;
  background: var(--border-2);
}

.nav-proto-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ─── Main / Steps ───────────────────────────────── */
main {
  position: relative;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.step {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  animation: stepIn 0.5s var(--ease) both;
}

.step.hidden { display: none; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── STEP 0: Hero ───────────────────────────────── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 48px;
  min-height: calc(100vh - var(--nav-h));
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,160,48,0.3);
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 420px;
  margin-bottom: 36px;
}

.feature-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}

.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.connect-group { }

.connect-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}

.badge-soon {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 2px 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.connect-row {
  display: flex; gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-connect {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  opacity: 0.65;
}

.btn-connect:hover {
  background: var(--surface-3);
  border-color: var(--border-3);
  color: var(--text);
  opacity: 1;
}

.or-line {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 16px;
}

.or-line::before, .or-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

/* ─── Demo stack (hero right) ─────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.demo-stack {
  position: relative;
  width: 340px;
  height: 280px;
}

.demo-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-spring);
}

.dc-back-2 {
  width: 260px; height: 180px;
  top: 60px; left: 20px;
  opacity: 0.3;
  transform: rotate(-6deg) translateY(8px);
}

.dc-back-1 {
  width: 280px; height: 195px;
  top: 45px; left: 24px;
  opacity: 0.5;
  transform: rotate(-3deg) translateY(4px);
}

.dc-main {
  width: 300px; height: 210px;
  top: 30px; left: 20px;
  z-index: 3;
}

.dc-side {
  width: 210px; height: 160px;
  top: 0; right: 0;
  z-index: 4;
  transform: rotate(4deg);
  border-color: var(--bad);
  box-shadow: 0 8px 32px rgba(192,80,64,0.15);
}

.dc-bottom {
  width: 200px; height: 148px;
  bottom: 0; right: 10px;
  z-index: 2;
  transform: rotate(-2deg);
  opacity: 0.75;
}

.dc-shimmer {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

.dc-photo {
  height: 65%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  position: relative;
  overflow: hidden;
}

.dc-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}

#demo-photo-1 { background: linear-gradient(135deg, #1a2a18 0%, #2a4a28 40%, #1e3820 100%); }
#demo-photo-2 { background: linear-gradient(135deg, #1a1810 0%, #2a2418 40%, #1e1c14 100%); }
#demo-photo-3 { background: linear-gradient(135deg, #0e1820 0%, #162440 40%, #0e1e30 100%); }

.dc-info {
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}

.dc-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.dc-name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-meta {
  font-size: 9px;
  color: var(--text-3);
}

.demo-stat-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  width: 340px;
}

.dss-item {
  flex: 1;
  text-align: center;
}

.dss-val {
  font-family: var(--font-disp);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.dss-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.dss-divider {
  width: 1px; height: 36px;
  background: var(--border);
  margin: 0 8px;
}

/* ─── Tag chips ────────────────────────────────────── */
.tag-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-chip.good  { background: var(--good-dim);  color: var(--good);  border: 1px solid rgba(90,170,120,0.25); }
.tag-chip.bad   { background: var(--bad-dim);   color: var(--bad);   border: 1px solid rgba(192,80,64,0.25); }
.tag-chip.warn  { background: var(--warn-dim);  color: var(--warn);  border: 1px solid rgba(212,150,42,0.25); }
.tag-chip.info  { background: var(--info-dim);  color: var(--info);  border: 1px solid rgba(74,138,191,0.25); }
.tag-chip.neutral{ background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ─── Buttons ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0a0807;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.large {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-3);
  color: var(--text);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-export:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-3);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
  margin-bottom: 8px;
}

.back-btn:hover { color: var(--text-2); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: opacity 0.2s;
}

.link-btn:hover { opacity: 0.8; }
.link-btn.danger { color: var(--bad); }

/* ─── STEP 1: Upload ──────────────────────────────── */
.upload-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px;
  width: 100%;
}

.step-heading {
  margin-bottom: 32px;
}

.step-heading h2 {
  font-family: var(--font-disp);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
}

.step-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}

.drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), inset 0 0 40px var(--accent-dim);
}

.dz-icon {
  margin-bottom: 16px;
  display: flex; justify-content: center;
}

.dz-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.dz-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.dz-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  background: rgba(90,170,120,0.1);
  border: 1px solid rgba(90,170,120,0.25);
  border-radius: 20px;
  font-size: 11px;
  color: var(--good);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.files-section { margin-top: 28px; }
.files-section.hidden { display: none; }

.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  animation: fadeIn 0.3s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.preview-item .pi-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.preview-item:hover .pi-remove { opacity: 1; }

.preview-item .pi-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analyze-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
}

.analyze-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  line-height: 1.5;
}

.analyze-info svg { flex-shrink: 0; margin-top: 1px; }

/* ─── STEP 2: Processing ──────────────────────────── */
.processing-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 32px;
  text-align: center;
}

.proc-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 40px;
}

.proc-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.proc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: procRing 3s linear infinite;
}

.r1 { width: 120px; height: 120px; opacity: 0.2; animation-duration: 3s; }
.r2 { width: 90px;  height: 90px;  opacity: 0.35; animation-duration: 2.2s; animation-direction: reverse; }
.r3 { width: 60px;  height: 60px;  opacity: 0.55; animation-duration: 1.6s; }

@keyframes procRing {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.05); }
  to   { transform: rotate(360deg) scale(1); }
}

.proc-core {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  animation: procCorePulse 2s ease-in-out infinite;
}

@keyframes procCorePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.proc-title {
  font-family: var(--font-disp);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.proc-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 48px;
}

.proc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.psl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.psl-item[data-state="active"] {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.psl-item[data-state="done"] {
  border-color: var(--good);
  background: var(--good-dim);
}

.psl-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.psl-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--accent-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.psl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  margin: 3px;
}

.psl-item[data-state="active"] .psl-dot { display: none; }
.psl-item[data-state="waiting"] .psl-spinner { display: none; }
.psl-item[data-state="done"] .psl-spinner { display: none; }
.psl-item[data-state="done"] .psl-dot {
  background: var(--good);
  box-shadow: 0 0 6px var(--good);
}

.psl-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.psl-item[data-state="waiting"] .psl-title { color: var(--text-3); }

.psl-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── STEP 3: Results ─────────────────────────────── */
.results-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  width: 100%;
}

.results-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.results-heading h2 {
  font-family: var(--font-disp);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}

.sc-val {
  font-family: var(--font-disp);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}

.sc-label {
  font-size: 12px;
  color: var(--text-3);
}

.sc-accent .sc-val { color: var(--accent); }
.sc-good   .sc-val { color: var(--good); }
.sc-bad    .sc-val { color: var(--bad); }
.sc-info   .sc-val { color: var(--info); }

.savings-bar {
  background: linear-gradient(135deg, rgba(232,160,48,0.08) 0%, rgba(232,160,48,0.04) 100%);
  border: 1px solid rgba(232,160,48,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.savings-bar.hidden { display: none; }

.savings-icon {
  font-size: 20px;
}

.savings-bar strong { color: var(--accent); }

.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ftab {
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.ftab:hover {
  border-color: var(--border-3);
  color: var(--text);
}

.ftab.active {
  background: var(--accent-dim);
  border-color: rgba(232,160,48,0.4);
  color: var(--accent);
}

/* ─── Results grid ─────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease);
  animation: fadeIn 0.4s var(--ease) both;
}

.result-card:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.result-card.keep  { border-left: 3px solid var(--good); }
.result-card.del   { border-left: 3px solid var(--bad); opacity: 0.75; }
.result-card.del:hover { opacity: 1; }

.rc-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.rc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}

.result-card:hover .rc-thumb img { transform: scale(1.03); }

.rc-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 28px;
}

.rc-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.rc-badge.good { background: rgba(0,0,0,0.5); color: var(--good); border: 1px solid rgba(90,170,120,0.4); }
.rc-badge.bad  { background: rgba(0,0,0,0.5); color: var(--bad);  border: 1px solid rgba(192,80,64,0.4); }
.rc-badge.warn { background: rgba(0,0,0,0.5); color: var(--warn); border: 1px solid rgba(212,150,42,0.4); }
.rc-badge.info { background: rgba(0,0,0,0.5); color: var(--info); border: 1px solid rgba(74,138,191,0.4); }

.rc-body {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.rc-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
}

.rc-reason {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.rc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.rc-meta-group { display: flex; flex-direction: column; gap: 2px; }

.rc-verdict {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.rc-verdict.keep { background: var(--good-dim); color: var(--good); }
.rc-verdict.del  { background: var(--bad-dim);  color: var(--bad); }

/* ─── Modal ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s var(--ease) both;
}

.modal-backdrop.hidden { display: none; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: stepIn 0.3s var(--ease-spring) both;
}

.modal-icon-wrap { font-size: 36px; margin-bottom: 16px; }

.modal-box h3 {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 40px;
  }

  .hero-right { display: none; }

  .hero-title { font-size: 44px; }

  .nav-steps { display: none; }

  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .upload-layout, .results-layout { padding: 24px 16px; }
  .hero-layout { padding: 24px 16px; }
  .analyze-cta { flex-direction: column; align-items: stretch; }
  .results-top { flex-direction: column; }
}
