:root {
  --bg: #f5f6f8;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafb;
  --text: #1f2937;
  --muted: #566173;
  --line: #e5e9ef;
  --primary: #e5322d;
  --primary-strong: #c72a25;
  --primary-soft: #fff0ef;
  --success: #0e8a53;
  --danger: #c11f18;
  --warning: #a85f00;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 18px 45px rgba(18, 33, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", "SUIT", "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(800px 420px at 12% -10%, #ffe7e5 0%, transparent 60%),
    radial-gradient(760px 360px at 88% -18%, #ffe4e1 0%, transparent 58%),
    var(--bg);
}

a {
  color: var(--primary-strong);
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(229, 50, 45, 0.28);
  outline-offset: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 158px;
  height: auto;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
}

.nav a:hover {
  border-color: #ffd0cc;
  background: var(--primary-soft);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hero {
  background:
    linear-gradient(145deg, #fff 10%, #fff5f3 70%),
    radial-gradient(circle at 100% 0, rgba(229, 50, 45, 0.12), transparent 46%);
  border: 1px solid #ffd5d0;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta {
  margin-top: 18px;
}

button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(229, 50, 45, 0.2);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.secondary {
  background: #fff;
  color: #1f2937;
  border-color: var(--line);
  box-shadow: none;
}

button.warning {
  background: #fff6e6;
  color: var(--warning);
  border-color: #ffd8a0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #f2d7d4;
  background: linear-gradient(160deg, #fff 20%, #fffbfb 100%);
}

.tool-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #ffd3ce;
  background: #fff7f6;
  color: #b62d28;
  font-size: 12px;
  font-weight: 700;
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6dde6;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.status {
  margin-top: 10px;
  border: 1px solid #d9e0e8;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #f8fbff;
  color: #274c77;
}

.status.success {
  background: #eafaf2;
  border-color: #aee2c4;
  color: var(--success);
}

.status.error {
  background: #fff2f0;
  border-color: #ffd0cb;
  color: var(--danger);
}

.status.warning {
  background: #fff9eb;
  border-color: #ffe2ad;
  color: var(--warning);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

.table th {
  color: #334155;
  font-size: 14px;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.job-progress {
  min-width: 130px;
}

.job-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.job-progress-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  transition: width 0.6s ease;
}

.job-progress.is-active .job-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0) 90%);
  background-size: 160px 100%;
  animation: progress-sheen 1.2s linear infinite;
}

.job-progress-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

@keyframes progress-sheen {
  from {
    background-position: -160px 0;
  }
  to {
    background-position: 160px 0;
  }
}

.upload-progress {
  margin-top: 10px;
  border: 1px solid #f2d7d4;
  border-radius: var(--radius-md);
  padding: 10px;
  background: #fff8f7;
}

.upload-progress progress {
  width: 100%;
  height: 12px;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.section-split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.5fr 1fr;
}

.session-box {
  border: 1px dashed #ffc2bc;
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff8f7;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  color: #6b1f1a;
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.46);
  display: grid;
  place-items: center;
  padding: 18px;
}

.dialog {
  width: min(460px, 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.dialog h3 {
  margin: 0;
  font-size: 22px;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.feedback-stars {
  display: flex;
  gap: 6px;
}

.star-btn {
  border: 1px solid #ffd0cc;
  border-radius: 10px;
  background: #fff7f6;
  color: #e5322d;
  width: 40px;
  height: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px 24px 24px;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 132px;
  }

  .container {
    padding: 16px;
  }

  .hero {
    padding: 22px;
    border-radius: 20px;
  }

  .row,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-progress-fill {
    transition: none;
  }

  .job-progress.is-active .job-progress-fill::after {
    animation: none;
  }
}
