:root {
  --navy: #173b66;
  --navy-2: #0f2f54;
  --blue-soft: #edf4fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --green: #18794e;
  --green-soft: #ecf8f2;
  --red: #b42318;
  --red-soft: #fff1f0;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 47, 84, 0.10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(23,59,102,.08), transparent 36%),
    #f7f9fc;
  color: var(--ink);
}

.shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 44px; }
.hero { text-align: center; margin-bottom: 28px; }
.eyebrow { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.04; margin: 14px 0 12px; letter-spacing: -.035em; }
.hero p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.6; }

.card { background: var(--white); border: 1px solid rgba(23,59,102,.08); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.privacy { display: flex; gap: 12px; align-items: flex-start; background: var(--green-soft); border: 1px solid #ccebdd; border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; }
.privacy-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-weight: 900; flex: 0 0 auto; }
.privacy strong { color: #135c3e; }
.privacy p { margin: 4px 0 0; color: #456858; font-size: 13px; line-height: 1.45; }

.drop-zone { border: 2px dashed #b7c8da; border-radius: 16px; padding: 34px 20px; text-align: center; cursor: pointer; transition: .18s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus, .drop-zone.dragover { border-color: var(--navy); background: #f8fbff; transform: translateY(-1px); }
.file-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--navy); color: white; display: grid; place-items: center; margin: 0 auto 13px; font-size: 13px; font-weight: 900; letter-spacing: .05em; }
.drop-title { font-weight: 800; font-size: 17px; }
.drop-sub { color: var(--muted); font-size: 13px; margin-top: 5px; }

.field { display: block; margin-top: 20px; }
.field > span { display: block; font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.password-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.password-wrap:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,59,102,.09); }
.password-wrap input { width: 100%; border: 0; outline: 0; padding: 13px 14px; font: inherit; }
.text-button { border: 0; background: transparent; padding: 12px 14px; color: var(--navy); font-weight: 800; cursor: pointer; }

button { font: inherit; }
.primary, .secondary { border: 0; border-radius: 12px; padding: 13px 17px; font-weight: 800; cursor: pointer; transition: .15s ease; }
.primary { background: var(--navy); color: white; width: 100%; margin-top: 20px; }
.primary:hover:not(:disabled) { background: var(--navy-2); transform: translateY(-1px); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: white; color: var(--navy); border: 1px solid #b7c8da; }
.secondary:hover { background: #f8fbff; }

.progress-wrap { margin-top: 20px; }
.progress-track { height: 8px; background: #e9eef4; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--navy); transition: width .18s ease; }
.progress-text { color: var(--muted); margin-top: 8px; font-size: 13px; }

.result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-top { display: flex; align-items: center; gap: 13px; }
.success-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.result h2 { margin: 0 0 4px; font-size: 19px; }
.result p { margin: 0; color: var(--muted); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.actions .primary { margin: 0; }
.hint { font-size: 12px; margin-top: 10px !important; line-height: 1.5; }
.error { margin-top: 18px; padding: 13px 14px; border-radius: 12px; background: var(--red-soft); border: 1px solid #ffccc7; color: var(--red); font-size: 13px; line-height: 1.5; }
.hidden { display: none !important; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.details article { background: white; border: 1px solid #e3e9f0; border-radius: 15px; padding: 18px; }
.details h3 { margin: 0 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.details strong { color: var(--navy); }
.details p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 7px 0 0; }
footer { text-align: center; color: #98a2b3; font-size: 12px; padding: 0 16px 32px; }

@media (max-width: 640px) {
  .shell { padding-top: 38px; }
  .card { padding: 20px; border-radius: 18px; }
  .details, .actions { grid-template-columns: 1fr; }
  .hero p { font-size: 15px; }
}
