:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #121417;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --good: #0f766e;
  --bad: #b42318;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
.site-header, main, footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand-mark { padding: 6px 9px; border-radius: 8px; background: #18181b; color: #fb7185; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2px; font-size: 12px; }
.header-actions, footer nav { display: flex; gap: 10px; align-items: center; }
.text-button, .footer-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.text-button:hover, .footer-button:hover { background: #ececea; color: var(--text); }
.link-button { text-decoration: none; }
main { padding: 48px 0 64px; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.eyebrow { color: var(--accent-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; margin: 0; max-width: 800px; }
.lead { max-width: 720px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--muted); margin: 24px 0 0; }
.display-demo { background-image: url('images/wu-yi-16Hz1R6IRL4-unsplash.jpg'); height: 17rem; background-size: cover; background-repeat: no-repeat; background-position: center; display: grid; align-items: end; text-align: center; border-radius: 22px; padding: 4px 0; box-shadow: inset 0 0 0 1px #292929, 0 18px 40px rgba(0,0,0,.12); }
.display-demo:hover .image-credit { color: lightgray; }
.digits, .mini-display { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .12em; }
.digits { color: #fb7185; font-size: clamp(48px, 8vw, 78px); text-align: center; text-shadow: 0 0 16px rgba(251,113,133,.32); }
.demo-label { color: #7a7a7a; font-size: 10px; letter-spacing: .18em; text-align: center; margin-top: 18px; }
.examples, .upload-section, .about { margin-top: 32px; }
h2 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 20px; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 210px; }
.example-card h3 { margin: 22px 0 7px; font-size: 17px; }
.example-card p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 14px; }
.example-card.good h3 { color: var(--good); }
.example-card.bad h3 { color: var(--bad); }
.mini-display { height: 11rem; border-radius: 11px; background: url('images/felix-l9-XIYW8fvg-unsplash.jpg'); background-size: 100%; background-repeat: no-repeat; display: grid; align-items: end; text-align: center; background-position: 50% 66%; padding: 2px; }
.mini-display:hover .image-credit { color: lightgray; }
.mini-display.alpha { background: url('images/kdcbt282u.jpg'); background-size: cover; background-repeat: no-repeat; background-position: 50% 33%; display: grid; align-items: end; text-align: center; padding: 2px;  }
.pixel-grid { height: 11rem; border-radius: 11px; background: url('images/evan-marvell-BJYDPx4VkuM-unsplash.jpg'); background-size: cover; background-repeat: no-repeat; background-position: center; display: grid; align-items: end; text-align: center; padding: 2px; }
.pixel-grid:hover .image-credit { color: lightgray; }
.image-credit { font-family: Inter, ui-sans-serif, sans-serif; font-size: 11px; color: gray; }
.upload-section { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.limit { color: var(--muted); font-size: 14px; white-space: nowrap; }
.dropzone { border: 2px dashed #cfd4dc; border-radius: 16px; min-height: 270px; display: grid; place-items: center; padding: 22px; cursor: pointer; transition: .18s ease; outline: none; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover { border-color: var(--accent); background: #fff7f9; }
.drop-empty { display: grid; gap: 8px; place-items: center; text-align: center; color: var(--muted); }
.drop-empty strong { color: var(--text); font-size: 18px; }
.upload-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #f2f4f7; color: var(--text); font-size: 26px; margin-bottom: 4px; }
.preview-state { width: 100%; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; }
.preview-state img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #eee; }
.file-meta { min-width: 0; display: grid; gap: 5px; }
.file-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta span, .help, .legal-note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.small-button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 11px; cursor: pointer; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 18px; line-height: 1.45; font-size: 14px; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.primary-button { width: 100%; border: 0; background: var(--accent); color: white; font-weight: 800; border-radius: 12px; padding: 14px 18px; cursor: pointer; transition: .15s ease; }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.status { min-height: 22px; margin: 0 0 10px; font-size: 14px; }
.status.error { color: var(--bad); }
.status.success { color: var(--good); }
.legal-note { text-align: center; margin: 12px 0 0; }
.about { max-width: 820px; padding: 42px 0 18px; }
.about p { color: var(--muted); font-size: 17px; line-height: 1.7; }
footer { border-top: 1px solid var(--line); min-height: 88px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
footer a { text-decoration: none; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 36px 0 52px; }
  .example-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .limit { white-space: normal; }
  .preview-state { grid-template-columns: 72px 1fr; }
  .preview-state img { width: 72px; height: 72px; }
  .small-button { grid-column: 1 / -1; }
  footer { padding: 24px 0; gap: 16px; align-items: flex-start; flex-direction: column; }
}
