:root {
  color-scheme: dark;
  --bg-0: #08111f;
  --bg-1: #101c2f;
  --bg-2: #172846;
  --paper: rgba(247, 240, 225, 0.08);
  --paper-strong: rgba(247, 240, 225, 0.14);
  --text: #f4ead9;
  --muted: rgba(244, 234, 217, 0.72);
  --accent: #ffb74a;
  --accent-2: #8bd3ff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 183, 74, 0.16), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(139, 211, 255, 0.13), transparent 25%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.35;
}

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

.hero {
  padding: 24px 0 32px;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.94;
  max-width: 8ch;
}

.lede {
  max-width: 80%;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.form,
.facts {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.form {
  border-radius: 24px;
  padding: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 12, 24, 0.46);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(255, 183, 74, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 183, 74, 0.12);
}

.hidden {
  display: none;
}

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

.grid .field:last-child {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), #ffd79c);
  color: #20150a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(255, 183, 74, 0.25);
}

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

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.status {
  margin: 0;
  color: var(--muted);
}

.facts {
  border-radius: 24px;
  padding: 22px;
}

.facts h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.facts p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.facts-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.facts-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.facts-grid strong {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts-grid span {
  color: var(--text);
}

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

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

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

  .grid .field:last-child {
    grid-column: auto;
  }
}
