:root {
  --bg: #f5f1ea;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --ink: #12233c;
  --muted: #5e6d7c;
  --line: rgba(18, 35, 60, 0.1);
  --accent: #ec5b3e;
  --accent-dark: #c6462d;
  --accent-soft: rgba(236, 91, 62, 0.12);
  --teal: #3d7f83;
  --teal-soft: rgba(61, 127, 131, 0.12);
  --shadow: 0 18px 40px rgba(18, 35, 60, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(61, 127, 131, 0.14), transparent 24rem),
    radial-gradient(circle at left bottom, rgba(236, 91, 62, 0.14), transparent 26rem),
    var(--bg);
}

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

p {
  color: var(--muted);
  line-height: 1.65;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100vw - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(245, 241, 234, 0.82);
  border-bottom: 1px solid rgba(18, 35, 60, 0.05);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), #f6a236);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.main-nav a,
.lang-links a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover,
.lang-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-links {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.7);
}

.lang-current {
  color: var(--ink);
  background: #fff;
}

.hero,
.page-hero {
  padding: 4.8rem 0 2rem;
}

.hero-grid,
.tool-hero-grid,
.split-grid,
.job-layout,
.tool-layout,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.hero-copy h1,
.page-hero h1,
.tool-hero h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-subtitle,
.page-hero p,
.tool-hero p {
  font-size: 1.1rem;
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-dark);
  border: 1px solid rgba(236, 91, 62, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f89e2b);
  box-shadow: 0 14px 24px rgba(236, 91, 62, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

.button-block {
  width: 100%;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
}

.hero-panel,
.upload-card,
.sidebar-card,
.tool-card,
.info-panel,
.category-panel,
.job-card,
.faq-item,
.tool-meta-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(236, 91, 62, 0.18), transparent 70%);
}

.hero-panel-head,
.hero-panel-foot,
.meta-row,
.job-status-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hero-panel-head {
  margin-bottom: 1.25rem;
}

.hero-tool-stack {
  display: grid;
  gap: 0.9rem;
}

.hero-tool-chip {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246, 240, 234, 0.95));
  border: 1px solid rgba(18, 35, 60, 0.06);
}

.hero-tool-chip span,
.hero-tool-chip small {
  display: block;
}

.hero-tool-chip span {
  font-weight: 700;
}

.hero-tool-chip small {
  margin-top: 0.35rem;
  color: var(--muted);
}

.hero-panel-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-panel-foot strong,
.meta-row strong,
.job-label {
  display: block;
}

.hero-panel-foot span {
  font-size: 0.88rem;
  color: var(--muted);
}

.section {
  padding: 1.5rem 0 2.6rem;
}

.section-tinted {
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-head h2,
.info-panel h2,
.upload-card h2,
.sidebar-card h2,
.faq-item h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tool-card p {
  margin: 0;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #69acb1);
}

.tool-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tool-badge {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.status-queued {
  color: #83570f;
  background: rgba(248, 184, 61, 0.18);
}

.status-processing {
  color: #0c5b6e;
  background: rgba(58, 152, 183, 0.16);
}

.status-completed {
  color: #145f39;
  background: rgba(52, 194, 114, 0.16);
}

.status-failed {
  color: #90211b;
  background: rgba(236, 91, 62, 0.16);
}

.tool-highlights,
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.tool-highlights li,
.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.tool-highlights li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f4aa32);
}

.tool-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-dark);
}

.category-grid,
.trust-stack,
.related-links {
  display: grid;
  gap: 1rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-panel,
.info-panel,
.sidebar-card,
.upload-card,
.job-card,
.tool-meta-card {
  padding: 1.35rem;
}

.category-title,
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
}

.category-links,
.related-links {
  margin-top: 1rem;
}

.category-links a,
.related-links a {
  display: block;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(18, 35, 60, 0.06);
  color: var(--muted);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-panel.warm {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 240, 228, 0.92));
}

.tool-hero-grid,
.tool-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.tool-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.dropzone {
  display: grid;
  gap: 0.55rem;
  min-height: 220px;
  padding: 1.4rem;
  align-content: center;
  justify-items: center;
  border: 2px dashed rgba(18, 35, 60, 0.15);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245, 241, 234, 0.9));
  text-align: center;
  cursor: pointer;
}

.dropzone.dragging {
  border-color: var(--accent);
  background: rgba(236, 91, 62, 0.08);
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.form-error {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: #90211b;
  background: rgba(236, 91, 62, 0.13);
  border: 1px solid rgba(236, 91, 62, 0.16);
}

.dropzone-text,
.dropzone-files,
.field p,
.job-message,
.footer-links a,
.site-footer p {
  color: var(--muted);
}

.tool-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 35, 60, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

.field p {
  margin: 0;
  font-size: 0.92rem;
}

.sidebar-panel + .sidebar-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 35, 60, 0.08);
}

.job-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.progress-track {
  margin-top: 1rem;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 35, 60, 0.08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  transition: width 0.25s ease;
}

.job-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.35rem;
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(18, 35, 60, 0.08);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-grid,
  .tool-layout,
  .tool-hero-grid,
  .job-layout,
  .category-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .header-row,
  .hero-grid,
  .tool-layout,
  .tool-hero-grid,
  .split-grid,
  .job-layout,
  .footer-grid,
  .category-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    padding: 0.8rem 0;
  }

  .main-nav {
    justify-content: start;
  }

  .language-switcher {
    justify-content: space-between;
    width: 100%;
  }

  .hero,
  .page-hero {
    padding-top: 2.4rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .tool-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
