:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --card: rgba(255, 255, 255, 0.92);
  --text: #1f2a24;
  --muted: #5b665f;
  --green: #188a1f;
  --blue: #066aab;
  --orange: #f57421;
  --sand: #d8c3a5;
  --border: rgba(31, 42, 36, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(245,241,232,0.96) 0%, rgba(255,255,255,0.95) 70%),
    linear-gradient(120deg, rgba(6,106,171,0.18), rgba(24,138,31,0.1));
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(245,116,33,0.18), transparent 22%),
    radial-gradient(circle at left, rgba(6,106,171,0.12), transparent 28%);
}

.shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(20, 32, 25, 0.08);
  backdrop-filter: blur(8px);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  padding: 30px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.lede, .small, .hero-note p, figcaption {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 138, 31, 0.08);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.hero-note {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(6,106,171,0.06), rgba(24,138,31,0.08));
}

.hero-note ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.form-card,
.result-card {
  padding: 24px;
  margin-bottom: 22px;
}

.generator-form {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="file"],
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

button,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 106, 171, 0.18);
}

button:hover,
.download:hover {
  filter: brightness(1.03);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

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

figure {
  margin: 0;
}

figcaption {
  margin-bottom: 10px;
  font-weight: 700;
}

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f3f3f3;
}

.error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 116, 33, 0.12);
  color: #8a3e12;
}

@media (max-width: 900px) {
  .hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-head,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
