@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #f2efe8;
  --panel: rgba(255, 252, 247, 0.92);
  --line: #d6cbb8;
  --text: #1d1a16;
  --muted: #5d5448;
  --accent: #b84c2a;
  --accent-dark: #8c381d;
  --shadow: 0 24px 80px rgba(71, 48, 23, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 76, 42, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(89, 124, 103, 0.24), transparent 28%),
    linear-gradient(135deg, #f5f1e7 0%, #ece5d8 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 720px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.lead {
  margin: 16px 0 28px;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 500;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
}

input:focus {
  outline: 2px solid rgba(184, 76, 42, 0.18);
  border-color: var(--accent);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

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

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.progress-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.progress-header,
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-header {
  margin-bottom: 12px;
}

.progress-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-bar {
  overflow: hidden;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(93, 84, 72, 0.12);
  border: 1px solid rgba(93, 84, 72, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c95c38 0%, #e4a23a 100%);
  transition: width 120ms linear;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #1f1c19;
  color: #f6ead8;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .panel {
    padding: 22px;
    border-radius: 22px;
  }
}
