@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f2e9;
  --bg-alt: #efe6d8;
  --ink: #1f1b16;
  --muted: #6b6157;
  --accent: #ff7a5a;
  --accent-2: #2a9d8f;
  --card: #fffaf3;
  --stroke: rgba(31, 27, 22, 0.12);
  --shadow: 0 20px 45px rgba(31, 27, 22, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #ffe7d1 0%, transparent 50%),
    radial-gradient(circle at 80% 10%, #dff2f0 0%, transparent 45%),
    linear-gradient(120deg, var(--bg), var(--bg-alt));
  min-height: 100vh;
  padding: 48px clamp(16px, 4vw, 48px) 32px;
  position: relative;
  overflow-x: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
}

.orb-one {
  width: 280px;
  height: 280px;
  background: linear-gradient(140deg, #ffe1c2, #ffd6de);
  top: -120px;
  right: -80px;
}

.orb-two {
  width: 220px;
  height: 220px;
  background: linear-gradient(160deg, #cbe9f5, #e8f7dc);
  bottom: 60px;
  left: -120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 12px 0 8px;
}

.hero-text p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 52ch;
}

.pill {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.callout {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(42, 157, 143, 0.12);
  border-radius: 14px;
  font-size: 0.9rem;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
}

.hint a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 30px rgba(31, 27, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(31, 27, 22, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

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

.btn {
  border: none;
  background: var(--accent-2);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(42, 157, 143, 0.2);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 27, 22, 0.2);
  box-shadow: none;
}

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

.status {
  font-size: 0.9rem;
  color: var(--muted);
}

.output {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  padding: 12px;
  background: #10100f;
  color: #f4f1eb;
  border-radius: 14px;
  min-height: 80px;
  overflow-x: auto;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr repeat(4, 0.8fr) auto;
  gap: 8px;
  align-items: center;
}

.item-row input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 27, 22, 0.15);
  font-size: 0.85rem;
}

.item-row button {
  border: none;
  background: rgba(255, 122, 90, 0.15);
  color: var(--accent);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

@media (max-width: 780px) {
  body {
    padding: 32px 16px 24px;
  }

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

  .item-row input:nth-child(n + 3) {
    grid-column: span 1;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
