:root {
  --bg: #0b0c10;
  --panel: #14151c;
  --line: rgba(255,255,255,0.08);
  --text: #f2f1eb;
  --muted: #9a988f;
  --accent: #6eb5ff;
  --accent2: #e8a15a;
  --ok: #4cba82;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(900px 400px at 80% -10%, #122033 0%, transparent 50%),
    radial-gradient(700px 300px at 10% 0%, #1a140c 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent); }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b0c10;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.brand h1 { font-size: 16px; }
.brand p { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 16px; font-size: 13px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
main { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; }
.hero { margin-bottom: 40px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.hero h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 12px; }
.lede { color: var(--muted); max-width: 62ch; margin-bottom: 24px; }
.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.card h3 { font-size: 13px; color: var(--muted); font-weight: 600; }
.card .val { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.card .hint { font-size: 12px; color: var(--muted); }
.section { margin-top: 36px; }
.section h2 { font-size: 20px; margin-bottom: 14px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.panel h3 { font-size: 14px; margin-bottom: 10px; color: var(--accent); }
.panel ul { padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.panel code, .codeblock {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 6px;
}
.codeblock {
  display: block;
  padding: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
}
.try-panel { display: grid; gap: 12px; }
.lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
textarea, select {
  width: 100%;
  background: #0e0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
textarea { resize: vertical; min-height: 72px; }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}
.row > div:first-child { flex: 1; min-width: 180px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line);
  background: #1a1b24;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { border-color: rgba(255,255,255,0.2); }
.btn.primary {
  background: linear-gradient(135deg, #2a4a6e, #1e3a5f);
  border-color: rgba(110,181,255,0.35);
}
.btn:disabled { opacity: 0.5; cursor: wait; }
.out {
  font-family: var(--mono);
  font-size: 12px;
  background: #0e0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-height: 120px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c8c6bc;
  max-height: 420px;
  overflow: auto;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.ok { color: var(--ok); }
.bad { color: #e06c75; }
