:root {
  --bg: #eef4ff;
  --card: rgba(255,255,255,.86);
  --text: #132238;
  --muted: #60708a;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --border: rgba(37,99,235,.15);
  --shadow: 0 24px 70px rgba(37, 99, 235, .16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6,182,212,.22), transparent 35%),
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 35%),
    linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
}
.app { width: min(1040px, 100%); margin: 0 auto; padding: 28px 16px 56px; }
.hero { text-align: center; padding: 28px 8px 20px; }
.badge {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  background: #dff6ff; color: #075985; font-weight: 700; font-size: 14px;
}
h1 { font-size: clamp(34px, 7vw, 68px); line-height: .95; margin: 18px 0 16px; letter-spacing: -2px; }
.hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2.5vw, 20px); line-height: 1.55; }
.card {
  background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: 28px; padding: 26px; box-shadow: var(--shadow); margin-top: 18px;
}
.uploader { text-align: center; cursor: pointer; border: 2px dashed rgba(37,99,235,.25); transition: .25s ease; }
.uploader:hover, .uploader.dragover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255,255,255,.96); }
.upload-icon { font-size: 56px; margin-bottom: 8px; }
h2 { margin: 0 0 8px; font-size: 24px; }
.uploader p, .result p { color: var(--muted); margin: 0 0 18px; }
button, .download {
  border: 0; border-radius: 16px; padding: 14px 20px; font-weight: 800; font-size: 16px; cursor: pointer;
  text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
}
.primary, .download { width: 100%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 28px rgba(37,99,235,.22); }
.secondary { color: var(--accent); background: #e8f0ff; }
.file-name { margin-top: 14px; font-weight: 700; color: #0f766e; word-break: break-word; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.option input { margin-top: 4px; accent-color: var(--accent); }
.option strong { display: block; margin-bottom: 6px; }
.option small { color: var(--muted); line-height: 1.4; }
.progress-wrap { margin-top: 18px; }
.progress-label { color: var(--muted); margin-bottom: 8px; }
.progress { height: 12px; background: #dbeafe; border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s ease; }
textarea { width: 100%; min-height: 260px; border: 1px solid var(--border); border-radius: 18px; padding: 16px; resize: vertical; font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1e293b; }
.notice { margin-top: 18px; color: #475569; line-height: 1.6; font-size: 14px; padding: 4px 8px; }
.hidden { display: none; }
@media (max-width: 820px) {
  .option-grid { grid-template-columns: 1fr; }
  .card { border-radius: 22px; padding: 20px; }
  h1 { letter-spacing: -1px; }
}
