* { box-sizing: border-box; }
:root {
  --bg: #0e1320;
  --panel: #151d2d;
  --panel-2: #1b2437;
  --text: #eef3ff;
  --muted: #a8b5d3;
  --line: rgba(255,255,255,0.08);
  --primary: #5c8dff;
  --primary-2: #7ea5ff;
  --danger: #ff6b6b;
  --success: #3ddc97;
  --shadow: 0 18px 48px rgba(0,0,0,0.28);
  color-scheme: dark;
}
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(92,141,255,0.15), transparent 32%),
    radial-gradient(circle at bottom right, rgba(61,220,151,0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}
body { min-height: 100vh; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.narrow {
  width: min(520px, calc(100% - 32px));
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(14,19,32,0.74);
  border-bottom: 1px solid var(--line);
}
.row { display: flex; gap: 16px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero {
  padding: 48px 0 72px;
  display: grid;
  gap: 24px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: white;
  font-size: 1.15rem;
}
.brand.block {
  display: inline-block;
  margin-bottom: 8px;
}
h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: 1.35rem; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }
.stack {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.button, button {
  appearance: none;
  border: 1px solid rgba(126,165,255,0.28);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(126,165,255,0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.button:hover, button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.primary {
  background: linear-gradient(135deg, var(--primary), #7b5cff);
  border-color: transparent;
}
.linklike {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--primary-2);
}
.badge {
  display: inline-flex;
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(61,220,151,0.11);
  border: 1px solid rgba(61,220,151,0.25);
  color: #c8ffe8;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.message {
  min-height: 1.2rem;
  color: var(--muted);
  white-space: pre-wrap;
}
.message.error { color: #ffadad; }
.message.success { color: #b7ffd8; }
.panel-soft {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--line);
}
.code {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: #0b1020;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  border: 1px solid var(--line);
}
.client-secret {
  color: #ffd86b;
}
@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.25rem;
  }
}
