:root {
  --bg: #0f0d1a;
  --panel: #1a1730;
  --well: #13111f;
  --border: #2e2950;
  --text: #f2f0ff;
  --muted: #a9a3c9;
  --accent: #b18cff;
  --bad: #ff7a85;
  --good: #6fe3a1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 10% -10%, #3a1f6b55, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, #0f5a6b55, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 32px;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 960px; }
.narrow { max-width: 720px; }
header.hero { text-align: center; margin-bottom: 36px; }
h1.logo {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff8ad8, #b18cff, #6fd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header.hero p { color: var(--muted); margin-top: 8px; font-size: 1.1rem; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 16px; }
.section-title h2 { font-size: 1.35rem; }
.section-title span { color: var(--muted); font-size: .95rem; }
section + section { margin-top: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card {
  --accent: #b18cff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
a.card:hover, a.card:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 32px -12px var(--accent); outline: none; }
@media (prefers-reduced-motion: no-preference) { a.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; } }
.icon { font-size: 2.2rem; line-height: 1; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.pill { align-self: flex-start; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #120f22; font-weight: 700; font-size: .92rem; }
.pill.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.url { font-size: .8rem; color: var(--muted); opacity: .75; }
.tag { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c9a8ff; background: #2a1f4d; border: 1px solid #45367a; padding: 3px 8px; border-radius: 999px; }
footer { margin-top: auto; padding-top: 48px; color: var(--muted); font-size: .85rem; opacity: .7; text-align: center; }

/* Apakšlapas */
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 24px; font-size: .95rem; }
.back:hover { color: var(--text); }
.page-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.page-head .icon { font-size: 3rem; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
.page-head small { display: block; color: var(--muted); font-size: .95rem; font-weight: 400; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.box { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.box h2 { font-size: 1.15rem; margin-bottom: 10px; }
.box ul, .box ol { padding-left: 22px; display: grid; gap: 6px; }
.box p + p { margin-top: 8px; }
.box .mut, .mut { color: var(--muted); font-size: .92rem; }
code { background: var(--well); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.request { border-color: var(--accent); }
form.req { display: grid; gap: 14px; margin-top: 6px; }
form.req label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
form.req input, form.req textarea, .field {
  font: inherit; color: var(--text); background: var(--well); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
form.req textarea { min-height: 84px; resize: vertical; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #120f22; padding: 10px 20px; justify-self: start; text-decoration: none; display: inline-block;
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; font-size: .95rem; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--good); }
.also { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
