:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1d21;
  --muted: #6b7280;
  --accent: #e5484d;
  --accent-soft: #fdeaea;
  --border: #e5e7eb;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); }

.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 1.05rem; }
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.tool-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.tool-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.tool-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.tool-card p { color: var(--muted); font-size: 0.9rem; }

.tool-page { padding: 44px 0 56px; }
.tool-page > h1 { font-size: 1.7rem; text-align: center; margin-bottom: 8px; }
.tool-page > .sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

.dropzone {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone .big { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.dropzone .small { color: var(--muted); font-size: 0.9rem; }
.dropzone input { display: none; }

.file-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}
.file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .meta { color: var(--muted); font-size: 0.85rem; flex-shrink: 0; }
.file-item button {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
}
.file-item button:hover { color: var(--accent); }
.file-item .move { font-size: 0.9rem; }

.controls { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.controls label { font-size: 0.92rem; color: var(--muted); }
.controls input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.95rem;
  width: 180px;
}

.btn {
  display: inline-block;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.action-row { margin-top: 24px; text-align: center; }

.status { margin-top: 14px; text-align: center; font-size: 0.92rem; color: var(--muted); min-height: 1.4em; }
.status.error { color: var(--accent); }

.privacy-note {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.privacy-note strong { color: var(--text); }

.faq { padding-bottom: 64px; }
.faq h2 { font-size: 1.3rem; margin-bottom: 18px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .tool-page > h1 { font-size: 1.35rem; }
}
