:root {
  --bg-1: #f5f0e6;
  --bg-2: #d8ecf0;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-line: rgba(17, 24, 39, 0.1);
  --text: #10202d;
  --muted: #4f6271;
  --brand: #146356;
  --brand-dark: #0f4d43;
  --accent: #d16b3d;
  --shadow: rgba(16, 32, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(209, 107, 61, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20, 99, 86, 0.16), transparent 24%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(6px);
}

.backdrop-one {
  top: 8%;
  right: -64px;
  width: 260px;
  height: 260px;
  border-radius: 56px;
  background: rgba(209, 107, 61, 0.14);
  transform: rotate(16deg);
}

.backdrop-two {
  left: -48px;
  bottom: 10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(20, 99, 86, 0.14);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px var(--shadow);
}

.hero-copy {
  padding: 30px;
}

.logo {
  width: 148px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

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

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  font-weight: 700;
}

.intro {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-card {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(20, 99, 86, 0.12), rgba(209, 107, 61, 0.1));
}

.metric {
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  font-size: 20px;
  line-height: 1.1;
}

.panel {
  margin-top: 24px;
  padding: 28px;
}

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

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

.upload-tile {
  display: grid;
  gap: 10px;
  min-height: 200px;
  padding: 22px;
  border-radius: 6px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 251, 0.9));
}

.upload-title {
  font-size: 20px;
  font-weight: 700;
}

.upload-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

input[type="file"] {
  width: 100%;
  margin-top: auto;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font: inherit;
}

input[type="file"]:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(20, 99, 86, 0.22);
  outline-offset: 2px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  min-width: 180px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 99, 86, 0.22);
}

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

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background: linear-gradient(135deg, #d16b3d, #b7552d);
  box-shadow: 0 12px 28px rgba(209, 107, 61, 0.22);
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1 1 320px;
}

.status[data-state="error"] {
  color: #a0321c;
}

.status[data-state="success"] {
  color: var(--brand-dark);
}

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

  h1 {
    max-width: 100%;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1100px);
    padding: 24px 0 32px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
