:root {
  --navy: #0b2447;
  --navy-soft: #173b68;
  --blue: #0789dc;
  --blue-light: #e8f5fd;
  --paper: #f7f8f6;
  --white: #fff;
  --muted: #647286;
  --line: #d9e1e8;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
main { width: min(920px, calc(100% - 32px)); margin: auto; }
header { padding: 22px 0; }
.brand { display: block; position: relative; width: 300px; height: 90px; overflow: hidden; }
.brand img { position: absolute; width: 460px; max-width: none; left: -90px; top: -96px; }
.hero { padding: 8vh 0 6vh; }
.eyebrow { margin-bottom: 18px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: .2em 0; font: 700 clamp(3.2rem, 9vw, 7.5rem)/.84 Georgia, serif; letter-spacing: -.065em; }
h1 em { color: var(--blue); font-weight: 400; }
.lede { max-width: 550px; color: var(--muted); font-size: 1.15rem; }
.card { padding: clamp(20px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 20px 60px #0b244710; }
.card h2 { margin-top: 0; }
.drop { display: flex; min-height: 270px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border: 2px dashed #8bbfe2; border-radius: 14px; background: #fafdff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.drop:hover, .drop.dragging { border-color: var(--blue); background: var(--blue-light); transform: translateY(-1px); }
.drop strong { font-size: 1.2rem; }
.drop > span:not(.file-button) { color: var(--muted); font-size: .9rem; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.file-button { margin-top: 13px; padding: 10px 17px; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 750; box-shadow: 0 5px 14px #0b244720; }
.status-shark { display: block; flex: 0 0 auto; object-fit: contain; border-radius: 8px; }
.submit-button, button { margin-top: 16px; padding: 13px 20px; border: 0; border-radius: 9px; background: var(--blue); color: var(--white); font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: #0678c1; }
button:disabled { opacity: .5; cursor: wait; }
.status { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--blue-light); font-weight: 650; }
.status-shark { width: 48px; height: 48px; }
.status.error { border-color: #c64b31; background: #fff0ec; }
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.progress-track { height: 9px; flex: 1; overflow: hidden; border-radius: 99px; background: #dce8ef; }
.progress-track div { width: 0; height: 100%; background: var(--blue); transition: width .35s ease; }
.progress-wrap span { min-width: 3ch; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.result-head h2 { margin: 0; }
.secondary { margin: 0; padding: 8px 14px; background: #e7eff5; color: var(--navy); }
textarea { width: 100%; min-height: 240px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font: inherit; resize: vertical; }
footer { padding: 36px 0 60px; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 550px) {
  .brand { width: 260px; }
  .hero { padding-top: 4vh; }
  .card { border-radius: 12px; }
  .drop { min-height: 260px; }
}
