:root {
  --ink: #0a1824;
  --navy: #071723;
  --navy-2: #0c2635;
  --paper: #f3f6f7;
  --surface: #ffffff;
  --line: #d7e0e4;
  --muted: #60717d;
  --teal: #0b8c7a;
  --teal-dark: #076759;
  --teal-pale: #dff5f0;
  --amber: #ba6c12;
  --amber-pale: #fff0d5;
  --red: #b83a3a;
  --red-pale: #fde8e7;
  --shadow: 0 18px 45px rgba(17, 35, 47, .08);
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.masthead { background: var(--navy); color: white; border-bottom: 1px solid rgba(255,255,255,.1); }
.masthead__inner { max-width: 1240px; margin: auto; height: 74px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.brand__mark i { background: #30cfb3; border-radius: 1px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: #8ca5b3; font-size: 9px; letter-spacing: .18em; margin-top: 2px; }
.system-state { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #b5c4cc; }
.system-state strong { color: white; letter-spacing: .06em; }
.system-state__divider { width: 1px; height: 17px; background: #29414e; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #39d2b6; box-shadow: 0 0 0 4px rgba(57,210,182,.12); }
.shell { max-width: 1240px; margin: auto; padding: 0 28px 70px; }
.hero { min-height: 390px; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 80px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--teal); font-weight: 750; font-size: 11px; letter-spacing: .18em; margin: 0 0 21px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.055em; margin: 0; font-weight: 760; }
.hero h1 span { color: var(--teal-dark); }
.hero__copy { max-width: 650px; margin: 24px 0 0; font-size: 16px; line-height: 1.75; color: var(--muted); }
.hero__meta { border-left: 1px solid var(--line); padding-left: 36px; }
.hero__meta div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.hero__meta span, .hero__meta strong { display: block; }
.hero__meta span { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.hero__meta strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .055em; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 36px 0 74px; box-shadow: var(--shadow); }
.metrics article { background: var(--surface); padding: 26px 28px; min-height: 138px; }
.metrics span, .metrics small { display: block; color: var(--muted); font-size: 12px; }
.metrics strong { display: block; margin: 10px 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 35px; letter-spacing: -.04em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading > div { display: flex; align-items: center; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.section-number { font-family: ui-monospace, monospace; color: var(--teal); font-weight: 700; font-size: 12px; }
.workspace, .examples, .history { margin-bottom: 76px; }
.drop-zone { min-height: 260px; border: 1px dashed #8fa8b3; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,245,246,.88)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; transition: .18s ease; outline: none; }
.drop-zone:hover, .drop-zone.is-dragging, .drop-zone:focus-visible { border-color: var(--teal); background: #ebf8f5; box-shadow: 0 0 0 4px rgba(11,140,122,.1); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone__icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--navy); color: white; font-size: 25px; margin-bottom: 5px; }
.drop-zone strong { font-size: 19px; }
.drop-zone > span:not(.drop-zone__icon) { color: var(--muted); font-size: 12px; }
.drop-zone button { margin-top: 9px; padding: 10px 20px; border: 0; background: var(--teal); color: white; font-weight: 700; }
.jobs { display: grid; gap: 18px; margin-top: 22px; }
.job { display: grid; grid-template-columns: 250px 1fr; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.job__image { min-height: 210px; background: #0b1720; display: grid; place-items: center; overflow: hidden; }
.job__image img { width: 100%; height: 100%; max-height: 330px; object-fit: contain; }
.job__body { padding: 24px 28px; }
.job__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.job__head strong { overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 720; white-space: nowrap; }
.badge--pending { color: #8b4c06; background: var(--amber-pale); }
.badge--correct { color: #096353; background: var(--teal-pale); }
.badge--corrected, .badge--failed { color: #9d2e2e; background: var(--red-pale); }
.reading-list { display: flex; gap: 10px; flex-wrap: wrap; }
.reading { min-width: 148px; background: #f5f8f9; border: 1px solid #e1e8eb; padding: 13px 15px; }
.reading span { color: var(--muted); display: block; font-size: 11px; }
.reading strong { display: block; margin: 5px 0; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; }
.confidence { height: 3px; background: #d7e1e4; margin-top: 8px; }
.confidence i { display: block; height: 100%; background: var(--teal); }
.review-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.action { border: 1px solid var(--line); padding: 9px 14px; background: white; color: var(--ink); font-weight: 680; }
.action--primary { background: var(--teal); color: white; border-color: var(--teal); }
.action:hover { border-color: var(--teal); }
.correction-form { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.correction-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.correction-form input { width: 125px; padding: 9px; border: 1px solid #aebdc4; font-family: ui-monospace, monospace; }
.sample-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.sample { background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.sample__image { aspect-ratio: 1.75; background: #0b1720; display: grid; place-items: center; }
.sample img { width: 100%; height: 100%; object-fit: contain; }
.sample__body { padding: 13px; }
.sample__name { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample__value { display: flex; justify-content: space-between; align-items: end; margin-top: 8px; gap: 5px; }
.sample__value strong { font-family: ui-monospace, monospace; font-size: 21px; }
.sample__value span { color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 16px; text-align: left; background: #eaf0f2; color: #50636e; font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
td { padding: 15px 16px; border-top: 1px solid var(--line); }
td.value { font-family: ui-monospace, monospace; font-weight: 700; }
td.empty { padding: 45px; text-align: center; color: var(--muted); }
footer { min-height: 90px; background: var(--navy); color: #8fa4af; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px max(28px, calc((100vw - 1184px) / 2)); font-size: 11px; letter-spacing: .05em; }
footer span:first-child { color: white; font-weight: 700; }
.toast-region { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 9px; z-index: 10; }
.toast { max-width: 360px; padding: 13px 16px; background: var(--navy); color: white; box-shadow: 0 14px 40px rgba(0,0,0,.2); font-size: 13px; }
.toast--error { background: #882d2d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 70px 0; }
  .hero__meta { border-left: 0; padding-left: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__meta div { padding-right: 15px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .masthead__inner, .shell { padding-left: 18px; padding-right: 18px; }
  .system-state span:last-child, .system-state__divider { display: none; }
  .hero { min-height: auto; padding: 56px 0; }
  .hero h1 { font-size: 43px; }
  .hero__meta { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; margin-bottom: 58px; }
  .metrics article { padding: 20px; min-height: 120px; }
  .metrics strong { font-size: 29px; }
  .section-heading { align-items: start; flex-direction: column; }
  .drop-zone { min-height: 225px; padding: 25px; }
  .job { grid-template-columns: 1fr; }
  .job__image { min-height: 180px; }
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
