:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --card: #fff;
  --ink: #142033;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #eff6ff, #f8fafc);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(248,250,252,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.75);
}

.nav-brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover { color: var(--brand); }

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 48px auto;
}

header {
  margin-bottom: 28px;
}

.brand {
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}

.drop-zone {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 40px 20px;
  border: 2px dashed #b7c6e2;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
  text-align: center;
}

.drop-zone:hover,
.drop-zone.dragover { border-color: var(--brand); background: #f8fbff; }
.drop-zone span { color: var(--muted); font-size: 14px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:not(:disabled):hover { background: var(--brand-dark); transform: translateY(-1px); }
.button.secondary { background: #e8eefb; color: var(--brand-dark); }
.button.small { padding: 9px 15px; font-size: 14px; background: #e8eefb; color: var(--brand-dark); }

.status {
  margin-top: 16px;
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.info-grid article {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(226,232,240,.9);
}

.info-grid h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section { margin-top: 18px; }
.section h2 { margin: 0 0 16px; font-size: 22px; }
.section-copy { color: var(--muted); line-height: 1.8; }

.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 2;
}

.pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pricing strong { font-size: 30px; letter-spacing: -.02em; }
.pricing span { color: var(--muted); font-weight: 600; }

.faq dt { margin-top: 18px; font-weight: 750; }
.faq dd { margin: 6px 0 0; color: var(--muted); line-height: 1.8; }
.faq a, .legal a, footer a { color: var(--brand); font-weight: 650; }

.result { margin-top: 18px; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.result-head > div { display: flex; gap: 8px; }
pre {
  max-height: 430px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 18px;
  margin: 16px 0 0;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #243247;
  font-size: 15px;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal h1 { margin-top: 0; font-size: 34px; }
.legal h2 { margin-top: 28px; font-size: 18px; }
.legal p { color: var(--muted); line-height: 1.9; }

.success { text-align: center; }
.success h1 { margin-top: 0; }
.success .button { display: inline-block; margin-top: 10px; text-decoration: none; }

@media (max-width: 640px) {
  .shell { margin: 20px auto; }
  .card { padding: 18px; border-radius: 18px; }
  .drop-zone { padding: 28px 14px; }
  .actions .button { flex: 1; }
  .nav { width: calc(100% - 24px); padding: 14px 0; }
  .nav-links { gap: 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .faq dt { margin-top: 16px; }
}
