:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: #334155;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

.hero nav {
  text-align: center;
  margin-top: 8px;
}

.hero nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.hero nav a:hover {
  color: var(--accent);
}

body > footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

body > footer a {
  color: var(--accent);
  text-decoration: none;
}

body > footer a:hover {
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
}

.hero {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  text-align: center;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  border-color: var(--accent);
}

textarea {
  min-height: 420px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

button:active {
  transform: translateY(0);
}

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

.success {
  background: var(--accent-2);
  color: #052e16;
}

.ghost {
  background: #334155;
  color: var(--text);
}

.note,
.status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: #86efac;
}

.footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  background: rgba(148, 163, 184, 0.15);
  padding: 2px 6px;
  border-radius: 8px;
}

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

  textarea {
    min-height: 280px;
  }
}