:root {
  --bg: #0a0f14;
  --panel: #121a24;
  --line: #243044;
  --text: #e8f0fa;
  --muted: #8fa3bc;
  --cyan: #22d3ee;
  --orange: #fb923c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 40%);
}

header { padding: 2rem 1.5rem 0.5rem; max-width: 960px; margin: 0 auto; }

h1 {
  margin: 0;
  font-size: 2.25rem;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse-title 4s ease-in-out infinite;
}

@keyframes pulse-title {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.sub { color: var(--muted); margin: 0.35rem 0 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

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

section h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.form-panel, .snippet-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

input, select, textarea, button {
  font-family: inherit;
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a0f14;
  color: var(--text);
  padding: 0.5rem;
}

textarea { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }

button {
  width: auto;
  cursor: pointer;
  font-weight: 600;
  transition: box-shadow 0.2s;
}

button.primary {
  background: linear-gradient(135deg, #0891b2, #ea580c);
  border: none;
  padding: 0.55rem 1.2rem;
}

button:hover { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25); }

.stub-list { list-style: none; padding: 0; margin: 0; }

.stub-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  animation: fade-in 0.3s ease-out;
}

.stub-list li.active { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }

@keyframes fade-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.method {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(251, 146, 60, 0.2);
  color: var(--orange);
}

.snippet-panel {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 1rem 1.5rem;
}

.snippet {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  background: #0a0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

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

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
