:root {
  color-scheme: light;
  --bg: #f4efe4;
  --bg-deep: #efe2cf;
  --ink: #1b1a16;
  --muted: #6b5f53;
  --accent: #f25c54;
  --accent-2: #0f766e;
  --card: #fff7eb;
  --border: rgba(27, 26, 22, 0.12);
  --shadow: 0 20px 60px rgba(27, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fffaf2 0%, var(--bg) 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -30vh -10vw auto;
  height: 70vh;
  background:
    radial-gradient(circle at 25% 35%, rgba(242, 92, 84, 0.28), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(15, 118, 110, 0.22), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  font-family: "Unbounded", "Segoe UI", sans-serif;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

.hero-card {
  background: linear-gradient(135deg, #fff, #fff6e8 65%, #fff0e0 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 14px 30px rgba(27, 26, 22, 0.08);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: #fffdf8;
}

button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: "Unbounded", "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(242, 92, 84, 0.3);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(242, 92, 84, 0.35);
}

button:active {
  transform: translateY(1px);
}

.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.summary {
  background: #fffdf8;
  border-radius: 16px;
  padding: 16px;
  border: 1px dashed rgba(27, 26, 22, 0.2);
  white-space: pre-wrap;
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 60px;
}

.plot-wrap {
  margin-top: 16px;
  display: none;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.plot-wrap img {
  width: 100%;
  border-radius: 12px;
}

.status {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--accent-2);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .inline {
    width: 100%;
  }

  button,
  select,
  input {
    width: 100%;
  }

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