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

:root {
  color-scheme: light;
  --bg: #f4efe8;
  --ink: #1c1b19;
  --muted: #5e5a54;
  --accent: #ff6a3d;
  --accent-dark: #d14820;
  --panel: #fff9f2;
  --panel-border: rgba(28, 27, 25, 0.12);
  --shadow: 0 25px 60px rgba(28, 27, 25, 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 top left, #ffe9d6 0%, transparent 50%),
    radial-gradient(circle at bottom right, #d6e6ff 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

.subtitle {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.badge {
  background: var(--ink);
  color: #fff6ec;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-header.spaced {
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.field span {
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  background: #fffdf9;
  color: var(--ink);
}

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

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #f0e7dd;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(28, 27, 25, 0.18);
}

button.primary {
  background: var(--accent);
  color: #fffaf4;
}

button.primary:hover {
  background: var(--accent-dark);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--panel-border);
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.app-card {
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
  background: #fffdf9;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.app-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.app-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.output {
  background: #1c1b19;
  color: #f9f5ef;
  padding: 16px;
  border-radius: 14px;
  min-height: 120px;
  overflow: auto;
  font-size: 0.85rem;
}

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