:root {
  --ink: #0d2236;
  --slate: #33506a;
  --paper: #f7f4ef;
  --line: #d8d1c7;
  --accent: #eb5e28;
  --accent-soft: #f8d8ca;
  --ok: #116149;
  --font-sans: "Space Grotesk", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at 15% -10%, #fff7ef 0%, #f4efe7 42%, #ece6dc 100%);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(51, 80, 106, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 80, 106, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.layout {
  width: min(980px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: grid;
  gap: 1.5rem;
}

.hero {
  background: linear-gradient(120deg, #fff9f3 0%, #f0e7da 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(29, 45, 60, 0.08);
}

.kicker {
  margin: 0;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

h1 {
  margin: 0.65rem 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.lead {
  margin: 0;
  max-width: 70ch;
  color: #263f56;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.55;
}

.panel {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(30, 50, 70, 0.06);
}

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

#job-form {
  display: grid;
  gap: 0.8rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input,
select,
button {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

input,
select {
  border: 1px solid #b8ab9c;
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  color: #1b3044;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(235, 94, 40, 0.25);
  outline-offset: 1px;
}

button {
  border: 1px solid #172f43;
  border-radius: 999px;
  background: linear-gradient(120deg, #18354d, #224765);
  color: #f7f4ef;
  padding: 0.66rem 1.1rem;
  width: fit-content;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(24, 53, 77, 0.2);
}

.status,
.download {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #d3c9bc;
  background: #fff9f1;
}

.status.ok {
  border-color: #95c7b8;
  background: #edf8f4;
  color: var(--ok);
}

.status.error {
  border-color: #d8a5a0;
  background: #fff0ef;
  color: #8f2d22;
}

.hidden {
  display: none;
}

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

.content article {
  border: 1px solid #d8d1c7;
  border-radius: 16px;
  padding: 1rem;
  background: #fffcf7;
}

.content h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.content p {
  margin: 0;
  color: #324f6b;
  font-family: var(--font-serif);
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 420ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .grid-2,
  .content {
    grid-template-columns: 1fr;
  }

  .layout {
    width: min(980px, calc(100% - 1.2rem));
  }

  .hero,
  .panel {
    border-radius: 14px;
    padding: 1.1rem;
  }
}
