:root {
  --bg: #f7f2e9;
  --bg-strong: #efe2cf;
  --ink: #1f2a2f;
  --muted: #69757b;
  --line: rgba(31, 42, 47, 0.12);
  --teal: #0d8f87;
  --teal-deep: #0a6f69;
  --sun: #f4b860;
  --brick: #d95c4f;
  --soft-red: #f5d6d2;
  --soft-yellow: #f9eed2;
  --card: rgba(255, 250, 244, 0.82);
  --shadow: 0 24px 60px rgba(73, 54, 28, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 184, 96, 0.42), transparent 32%),
    radial-gradient(circle at top right, rgba(13, 143, 135, 0.24), transparent 26%),
    linear-gradient(160deg, #f8f4ec 0%, #f3e7d4 100%);
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-left {
  top: 12%;
  left: -12%;
  width: 420px;
  height: 420px;
  background: rgba(13, 143, 135, 0.18);
}

.ambient-right {
  right: -8%;
  bottom: 0;
  width: 360px;
  height: 360px;
  background: rgba(217, 92, 79, 0.12);
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  padding: 28px 10px 26px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.point-card,
.panel,
.metric-card,
.download-card {
  backdrop-filter: blur(10px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.point-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.point-card strong,
.panel-head h2 {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.point-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.point-kicker,
.panel-tag,
.download-tag,
.job-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 700;
}

.workbench {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.panel-head {
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dropzone {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  border: 1.5px dashed rgba(13, 143, 135, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 251, 246, 0.9), rgba(242, 233, 218, 0.86));
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  transform: translateY(-2px);
  border-color: rgba(13, 143, 135, 0.58);
  box-shadow: 0 18px 40px rgba(13, 143, 135, 0.12);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 143, 135, 0.18), rgba(244, 184, 96, 0.38));
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dropzone-copy strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.dropzone-copy span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.file-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.ghost-btn,
.primary-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ghost-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.primary-btn {
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal) 0%, #107f78 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(13, 143, 135, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(13, 143, 135, 0.32);
}

.primary-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.status-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(244, 236, 224, 0.78));
  color: var(--muted);
  text-align: center;
}

.job-state {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.status-badge {
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--soft-yellow);
  color: #755318;
}

.status-badge.is-processing {
  background: #d6efe9;
  color: #0b665f;
}

.status-badge.is-done {
  background: #d5efe0;
  color: #145e3d;
}

.status-badge.is-failed {
  background: var(--soft-red);
  color: #8c3027;
}

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

.metric-card {
  padding: 18px;
  border-radius: 22px;
}

.metric-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.downloads {
  display: grid;
  gap: 14px;
}

.download-card {
  display: block;
  padding: 18px 20px;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
}

.download-card strong {
  display: block;
  font-size: 20px;
}

.download-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.error-box {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--soft-red);
  color: #7a2b24;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .hero-points,
  .workbench,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }

  .dropzone {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dropzone-icon {
    margin: 0 auto;
  }

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