:root {
  --ink: #131722;
  --muted: #647083;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #dbe2ec;
  --accent: #3157e5;
  --accent-strong: #1838ae;
  --signal: #ffbf3f;
  --panel: #eaf0ff;
  --success: #157451;
  --danger: #b43232;
  --shadow: 0 18px 50px rgba(29, 53, 107, .12);
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: #fff; padding: 10px; }

.masthead {
  min-height: 70px;
  padding: 0 clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand strong { font-size: 19px; }
.masthead nav { display: flex; gap: 24px; font-size: 14px; font-weight: 700; }
.masthead nav a:hover { color: var(--accent); }
.all-tools { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 800; }

main { max-width: 1240px; margin: auto; padding: 0 24px; }
.home-intro {
  padding: 48px 0 22px;
  display: grid;
  grid-template-columns: 1.55fr .7fr;
  gap: 54px;
  align-items: end;
}
.eyebrow, .section-head span, .tool-heading > span, .trust > span, .text-page > span, .faq > span {
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 900;
  color: var(--accent);
}
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -.05em; margin: 10px 0 16px; max-width: 880px; }
.home-intro p { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }
.home-intro ul { list-style: none; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.home-intro li { padding: 7px 0; font-size: 15px; font-weight: 700; }
.home-intro li::before { content: "✓"; color: var(--success); margin-right: 10px; }

.quick-start, .tool-surface {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(145deg, #e7edff, #f7f9ff);
  border: 1px solid #cbd7ff;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(27px, 3vw, 41px); line-height: 1.15; letter-spacing: -.035em; margin: 5px 0; }
.section-head p { max-width: 520px; color: var(--muted); }
.section-head > a { color: var(--accent); font-size: 14px; font-weight: 800; }

.tool-workbench { background: var(--card); padding: 26px; border-radius: 19px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.drop-zone {
  min-height: 225px;
  border: 2px dashed #9eb1e9;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus { border-color: var(--accent); background: #f5f7ff; outline: none; transform: translateY(-1px); }
.drop-icon, .tool-icon { display: grid; place-items: center; background: var(--signal); color: #2c260f; font-weight: 900; }
.drop-icon { width: 72px; height: 58px; border-radius: 18px; margin-bottom: 15px; }
.drop-zone strong { font-size: 22px; }
.drop-zone p { margin: 5px 0; color: var(--muted); }
.drop-zone small { margin-top: 9px; color: #72809a; }
.file-input { position: absolute; opacity: 0; pointer-events: none; }
.file-state { margin: 15px 0; padding: 12px 15px; border-radius: 10px; background: #f2f5fa; color: var(--muted); font-size: 14px; }
.tool-options { display: flex; gap: 14px; flex-wrap: wrap; margin: 15px 0; }
.option-field { display: grid; gap: 7px; min-width: 210px; flex: 1; font-size: 14px; font-weight: 800; }
.option-field input, .option-field select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px; }
.process-button, .download-button, .reset-button, .cancel-button { border: 0; border-radius: 12px; padding: 14px 20px; font-weight: 900; cursor: pointer; }
.process-button { width: 100%; background: var(--accent); color: #fff; font-size: 16px; }
.process-button:hover:not(:disabled) { background: var(--accent-strong); }
.process-button:disabled { opacity: .35; cursor: not-allowed; }
.process-status { margin-top: 16px; padding: 15px; border-radius: 13px; background: #eef2ff; }
.process-status[hidden] { display: none; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-label { color: var(--muted); font-size: 14px; }
.cancel-button { padding: 8px 12px; background: #fff; color: var(--danger); border: 1px solid #e4c5c5; }
progress { width: 100%; height: 10px; margin-top: 12px; accent-color: var(--accent); }
.result { margin-top: 18px; padding: 22px; border-radius: 14px; background: #fff4ce; }
.result strong { font-size: 20px; }
.result-meta { color: var(--muted); }
.result-preview { display: block; width: min(100%, 720px); max-height: 420px; margin: 15px 0; border-radius: 12px; background: #111; }
.download-button { display: inline-block; background: var(--ink); color: #fff; }
.reset-button { background: transparent; color: var(--accent); }
.privacy-line { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.device-note { margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid var(--signal); border-radius: 8px; background: #fff8dc; color: #5d532e; font-size: 14px; }

.tools { padding: 68px 0 38px; }
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.tool-card { min-height: 235px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; transition: .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: #aebff3; box-shadow: var(--shadow); }
.tool-number { color: var(--muted); font-size: 12px; }
.tool-icon { width: 58px; height: 50px; border-radius: 14px; margin: 20px 0; font-size: 12px; }
.tool-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card b { margin-top: auto; color: var(--accent); font-size: 14px; }

.ad-slot { margin: 24px auto; padding: 14px; min-height: 90px; border: 1px dashed #b9c4d8; border-radius: 14px; text-align: center; color: #7b879d; background: rgba(255, 255, 255, .7); }
.ad-slot span { font-size: 11px; letter-spacing: .1em; }
.ad-slot p { margin: 7px 0; font-size: 13px; }
.batch-note, .trust { margin: 30px 0 65px; border-radius: 22px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.batch-note { background: var(--ink); color: #fff; }
.batch-note span { font-size: 11px; letter-spacing: .14em; color: var(--signal); }
.batch-note h2 { margin: 6px 0; font-size: 25px; }
.batch-note p { margin: 0; color: #bec7d7; }
.batch-note strong { white-space: nowrap; border: 1px solid #4e5869; padding: 10px 14px; border-radius: 999px; }
.trust { border: 1px solid var(--line); background: #fff; }
.trust div { flex: 1; }
.trust h2 { margin: 0; }
.trust p { margin: 4px 0; color: var(--muted); }
.trust a { color: var(--accent); font-weight: 800; }

.tool-page { max-width: 1060px; }
.tool-heading { text-align: center; padding: 50px 0 22px; }
.tool-heading > a { display: block; text-align: left; color: var(--muted); font-size: 14px; }
.tool-heading h1 { font-size: clamp(40px, 6vw, 65px); margin: 9px auto 12px; }
.tool-heading p { font-size: 18px; color: var(--muted); max-width: 700px; margin: auto; }
.guide { padding: 66px 0 22px; }
.guide article { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 21px 0; border-top: 1px solid var(--line); }
.guide article > span { color: var(--accent); font-size: 13px; font-weight: 900; }
.guide h3 { margin: 0 0 6px; font-size: 19px; }
.guide p { margin: 0; color: var(--muted); }
.faq { max-width: 780px; margin: 58px auto; }
.faq h2 { margin: 6px 0 18px; font-size: 34px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); }
.text-page { max-width: 800px; min-height: 65vh; padding-top: 76px; }
.text-page h1 { font-size: 48px; }
.text-page p { font-size: 17px; color: var(--muted); }
.text-page a { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 900; }
footer { padding: 38px clamp(24px, 5vw, 76px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 28px; background: #fff; }
footer p { color: var(--muted); margin: 6px 0; }
footer nav { display: flex; gap: 20px; font-size: 14px; }
body[data-busy="true"] { cursor: wait; }

@media (max-width: 1020px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .masthead { min-height: 62px; padding: 0 16px; }
  .masthead nav { display: none; }
  .home-intro { grid-template-columns: 1fr; gap: 20px; padding-top: 38px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .batch-note, .trust, footer { align-items: flex-start; flex-direction: column; }
  .quick-start, .tool-surface { padding: 11px; }
  .tool-workbench { padding: 15px; }
  .drop-zone { min-height: 205px; }
  footer nav { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  main { padding: 0 14px; }
  h1 { font-size: 39px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 190px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .text-page h1 { font-size: 38px; }
}
