:root {
  --red: #e5322d;
  --red-dark: #c62a26;
  --ink: #33333d;
  --muted: #7a7a86;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --border: #e6e8ec;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo { display: flex; align-items: center; font-weight: 800; font-size: 20px; }
.logo-mark {
  background: var(--red);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  margin-right: 6px;
}
.logo-text { color: var(--ink); }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--red); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; background: var(--bg-soft); }
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 760px;
  font-weight: 800;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

/* Tool grid */
.tools-section { padding: 40px 0 72px; }
.cat-heading {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cat-heading:first-child { margin-top: 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-new { background: #22a06b; color: #fff; }
.badge-soon { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.tool-card.is-soon { opacity: 0.82; }
.tool-card.is-soon:hover { opacity: 1; }
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.tool-card h3 { margin: 0 0 6px; font-size: 18px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Workflow banner */
.workflow-banner { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 40px 0; }
.workflow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.workflow-inner h2 { margin: 0 0 6px; font-size: 24px; }
.workflow-inner p { margin: 0; color: var(--muted); max-width: 520px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Tool page */
.tool-hero { text-align: center; padding: 48px 0 24px; }
.tool-hero .tool-icon { margin: 0 auto 16px; width: 64px; height: 64px; font-size: 32px; }
.tool-hero h1 { font-size: 34px; margin: 0 0 8px; }
.tool-hero p { color: var(--muted); margin: 0 auto; max-width: 560px; }

.workspace { max-width: 720px; margin: 0 auto 80px; padding: 0 20px; }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-soft);
}
.dropzone.dragover { border-color: var(--red); background: #fff5f5; }
.dropzone .big-btn { margin-bottom: 12px; }
.dropzone .hint { color: var(--muted); font-size: 14px; }

.big-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.big-btn:hover { background: var(--red-dark); }
.big-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.file-list { list-style: none; padding: 0; margin: 20px 0; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.file-list .fname { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fsize { color: var(--muted); font-size: 13px; }
.file-list .fremove, .file-list .fmove {
  border: none; background: var(--bg-soft); border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; font-size: 15px;
}
.file-list .fremove:hover { background: #ffe3e3; }

.controls { margin: 24px 0; display: grid; gap: 16px; }
.control-row { display: flex; flex-direction: column; gap: 6px; }
.control-row label { font-weight: 600; font-size: 14px; }
.control-row input, .control-row select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.actions { text-align: center; margin-top: 8px; }

.status { text-align: center; margin-top: 16px; min-height: 22px; color: var(--muted); }
.status.error { color: var(--red); }
.status.success { color: #22a06b; }

.result { text-align: center; margin-top: 24px; }
.download-link {
  display: inline-block; background: #22a06b; color: #fff; padding: 14px 28px;
  border-radius: 10px; font-weight: 700; margin-top: 8px;
}
.download-link:hover { background: #1b8457; }

.back-link { display: inline-block; margin: 24px 0 0; color: var(--red); font-weight: 600; }

/* Coming-soon panel */
.soon-panel {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 48px 28px;
}
.soon-panel h2 { margin: 8px 0 8px; font-size: 24px; }
.soon-panel p { color: var(--muted); max-width: 480px; margin: 0 auto 10px; }
.soon-panel .soon-note { font-size: 14px; }
.soon-panel .big-btn { margin-top: 18px; }
.soon-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px; margin: 0;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 30px; }
}
