:root {
  --bg: #111111;
  --card: #1b1b1b;
  --text: #f4f4f4;
  --muted: #b7b7b7;
  --accent: #2f6bff;
  --accent2: #ff3b30;
  --border: #333333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #222 0%, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge a,
.badge a:visited,
.badge a:hover,
.badge a:active {
  color: var(--muted) !important;
  text-decoration: none !important;
}

h1 {
  font-size: clamp(64px, 12vw, 130px);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.08em;
}

h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 4vw, 42px);
}

.hero p,
footer p {
  color: var(--muted);
}

.card {
  background: rgba(27, 27, 27, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #0f0f0f;
  color: var(--text);
  font: inherit;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: var(--accent);
}

.meta {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 14px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

button.secondary {
  margin-top: 12px;
  background: #2a2a2a;
}

.status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
}

.output-card textarea {
  min-height: 190px;
}

footer {
  text-align: center;
  font-size: 14px;
}