/* ASK SYBIL - public site design system (formerly Helm Sybil).
   Palette shared with the portal/console: deep navy surfaces, blue/violet
   accents, mono type for data. Self-contained: no external fonts/CDNs. */
:root {
  --bg: #0a111c; --bg2: #0f141d; --panel: #121926; --panel2: #16202f;
  --line: #1e2a3a; --line2: #2a3a50;
  --tx: #e8eef6; --tx2: #93a4b8; --tx3: #5f7186;
  --acc: #4da3ff; --acc2: #7c6bff; --ok: #3ecf8e; --warn: #f0b45a; --err: #ff6b6b;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 82% -6%, rgba(124,107,255,.055), transparent 62%),
    radial-gradient(720px 420px at -12% 42%, rgba(77,163,255,.045), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--tx); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(77,163,255,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px;
  border-radius: 4px; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ── nav ─────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,17,28,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; color: var(--tx); display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  box-shadow: 0 0 12px rgba(77,163,255,.7);
  animation: dotpulse 3.6s ease-in-out infinite; }
@keyframes dotpulse {
  0%, 100% { box-shadow: 0 0 8px rgba(77,163,255,.5); }
  50% { box-shadow: 0 0 16px rgba(124,107,255,.85); }
}
nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav .links a { color: var(--tx2); font-size: 14px; }
nav .links a:not(.btn) { position: relative; }
nav .links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: right .22s ease;
}
nav .links a:hover { color: var(--tx); text-decoration: none; }
nav .links a:hover:not(.btn)::after, nav .links a.on:not(.btn)::after { right: 0; }
nav .links a.on { color: var(--tx); }
.navdrop { position: relative; }
.navdrop::before { content: ""; position: absolute; top: 100%; left: -140px; right: 0;
  height: 12px; }
.navmenu { display: none; position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; background: var(--panel); border: 1px solid var(--line2);
  border-radius: var(--r); padding: 6px 0; z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.navdrop:hover .navmenu, .navdrop:focus-within .navmenu { display: block; }
.navmenu a { display: block; padding: 9px 16px; color: var(--tx2);
  font-size: 14px; white-space: nowrap; }
.navmenu a:hover { color: var(--tx); background: var(--panel2); }
.navmenu a::after { content: none !important; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--line2);
  color: var(--tx); background: var(--panel); cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { border-color: var(--acc); text-decoration: none; }
.btn.pri { background: linear-gradient(135deg, var(--acc), var(--acc2));
  border: none; color: #fff; }
.btn.pri:hover { filter: brightness(1.1); transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(77,163,255,.35); }
.btn.sm { padding: 6px 14px; font-size: 13px; }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 560px;
  background: radial-gradient(ellipse at 30% 40%, rgba(77,163,255,.13), transparent 55%),
              radial-gradient(ellipse at 75% 30%, rgba(124,107,255,.11), transparent 55%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.02em; max-width: 760px; position: relative;
}
.hero h1 .grad { background: linear-gradient(120deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--tx2); font-size: 19px; max-width: 620px; margin: 22px 0 34px; position: relative; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.hero .ctas .btn { padding: 12px 26px; font-size: 15px; }
/* Synapse-mesh illustration fills the right-side space beside the hero
   text. Hidden until the wrap can reserve a real column for it, so text
   can never slide underneath. */
.hero-art { display: none; }
@media (min-width: 1040px) {
  .hero .wrap { position: relative; padding-right: 432px; }
  .hero-art { display: block; position: absolute; top: 8px; right: 24px;
    width: 396px; height: 396px; pointer-events: none;
    filter: drop-shadow(0 10px 34px rgba(77,163,255,.14));
    animation: artfloat 9s ease-in-out infinite; }
}
@keyframes artfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* Section-top illustrations sit beside the header text inside a flex
   .art-head row - no padding is reserved on the wrap, so card grids and
   tables below keep their full-width columns. */
.page-art { display: none; }
@media (min-width: 980px) {
  .has-art .art-head { display: flex; align-items: center; gap: 44px; }
  .has-art .art-head > div { flex: 1; min-width: 0; }
  .has-art .page-art { display: block; flex: none; width: 232px; height: 232px;
    pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(77,163,255,.12));
    animation: artfloat 10s ease-in-out infinite; }
}
/* Docs variant - smaller mark for the narrower docbody column. */
@media (min-width: 1180px) {
  .docbody .art-head { display: flex; align-items: center; gap: 32px; }
  .docbody .art-head > div { flex: 1; min-width: 0; }
  .docbody .page-art { display: block; flex: none; width: 176px; height: 176px;
    pointer-events: none;
    filter: drop-shadow(0 10px 26px rgba(77,163,255,.12));
    animation: artfloat 10s ease-in-out infinite; }
}

/* ── stats strip ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin: 56px 0 0; }
.stats .s { background: var(--panel); padding: 22px 24px; position: relative; }
.stats .s-ic { position: absolute; top: 16px; right: 18px; font-size: 14px;
  color: var(--tx3); }
.stats .s b { display: block; font-family: var(--mono); font-size: 26px;
  font-weight: 700;
  background: linear-gradient(120deg, #e8eef6, var(--acc));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .s span { color: var(--tx3); font-size: 13px; }

/* ── sections ────────────────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); position: relative; }
section.alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 220px at 86% 0%, rgba(124,107,255,.05), transparent 60%);
}
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
.kicker::before {
  content: ""; display: inline-block; width: 18px; height: 2px;
  margin-right: 10px; vertical-align: middle; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
}
h1, h2 { font-size: 30px; font-weight: 750; letter-spacing: -.015em; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.lead { color: var(--tx2); max-width: 640px; margin-bottom: 36px; }

/* ── card grids ──────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  opacity: 0; transition: opacity .2s;
}
.card:hover { border-color: var(--line2); transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,.28); }
.card:hover::after { opacity: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { color: var(--tx2); font-size: 14.5px; }
.card .ic { font-size: 20px; color: var(--acc);
  filter: drop-shadow(0 0 6px rgba(77,163,255,.45)); }
/* .sic - small inline glyph, the mini companion to .ic */
.sic { font-style: normal; color: var(--acc); margin-right: 7px;
  filter: drop-shadow(0 0 5px rgba(77,163,255,.35)); }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px;
  padding: 2px 9px; border-radius: 20px; border: 1px solid var(--line2);
  color: var(--tx3); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(62,207,142,.4); }
.badge.warn { color: var(--warn); border-color: rgba(240,180,90,.4); }
.badge.acc { color: var(--acc); border-color: rgba(77,163,255,.4); }
.badge.vio { color: var(--acc2); border-color: rgba(124,107,255,.4); }

/* inline form errors (aria-live) - the portal/payment convention */
.ferr { padding: 8px 12px; font-size: 12.5px; color: var(--err);
  background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.3);
  border-radius: 9px; margin-top: 8px; }

/* capability tag clouds (services family cards) */
.capcloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.captag { font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 5px 10px; border-radius: 7px; color: var(--tx2);
  background: rgba(77,163,255,.06); border: 1px solid rgba(77,163,255,.16);
  transition: border-color .15s, color .15s, transform .15s, background .15s; }
.captag:hover { color: var(--acc); border-color: rgba(77,163,255,.55);
  background: rgba(77,163,255,.12); transform: translateY(-1px); }

/* ── tables ──────────────────────────────────────────────── */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx3);
  padding: 12px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--tx2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(77,163,255,.03); }
td.name { color: var(--tx); font-family: var(--mono); font-size: 13px; }
td.num { font-family: var(--mono); font-size: 13px; text-align: right; }
th.num { text-align: right; }

/* ── pricing ─────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px; margin-bottom: 56px; }
.plan { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px; position: relative; }
.plan.hot { border-color: var(--acc);
  animation: hotglow 4.5s ease-in-out infinite; }
@keyframes hotglow {
  0%, 100% { box-shadow: 0 0 28px rgba(77,163,255,.07); }
  50% { box-shadow: 0 0 46px rgba(77,163,255,.16); }
}
.plan .pname { font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx2); }
.plan .price { font-size: 40px; font-weight: 800; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; color: var(--tx3); font-weight: 500; }
.plan .inc { color: var(--tx3); font-size: 13px; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 18px 0 24px; }
.plan li { color: var(--tx2); font-size: 14px; padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "›"; position: absolute; left: 6px; color: var(--acc); }

/* ── filters ─────────────────────────────────────────────── */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
  align-items: center; }
.filters input[type="search"] {
  background: var(--panel); border: 1px solid var(--line2); color: var(--tx);
  border-radius: 8px; padding: 9px 14px; font-size: 14px; font-family: var(--sans);
  min-width: 240px; outline: none;
}
.filters input[type="search"]:focus { border-color: var(--acc); }
.chip { background: var(--panel); border: 1px solid var(--line2); color: var(--tx2);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.chip.on { color: var(--tx); border-color: var(--acc); background: rgba(77,163,255,.08); }

/* ── docs ────────────────────────────────────────────────── */
pre.code { background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--tx2); }
pre.code .c { color: var(--tx3); }
.docgrid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.docnav { position: sticky; top: 84px; align-self: start; }
.docnav a { display: block; color: var(--tx3); font-size: 14px; padding: 5px 0; }
.docnav a .sic { color: var(--tx3); font-size: 12px; margin-right: 6px;
  filter: none; transition: color .15s; }
.docnav a:hover { color: var(--tx); text-decoration: none; }
.docnav a:hover .sic { color: var(--acc); }
.docbody h3 { margin: 36px 0 12px; font-size: 20px; }
.docbody h3:first-child { margin-top: 0; }
.docbody p, .docbody li { color: var(--tx2); font-size: 14.5px; }
.docbody ul, .docbody ol { margin: 10px 0 16px 22px; }
.docbody code { font-family: var(--mono); font-size: 12.5px; background: var(--bg2);
  padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.docbody pre.code { margin: 12px 0 20px; }
.docbody pre.code code { background: none; border: none; padding: 0; }

/* ── footer ──────────────────────────────────────────────── */
footer { position: relative; padding: 44px 0; margin-top: 40px; }
footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,163,255,.4) 30%,
    rgba(124,107,255,.4) 70%, transparent);
}
footer .wrap { display: flex; gap: 40px; flex-wrap: wrap; }
footer .fcol { min-width: 160px; }
footer .fcol b { display: block; font-size: 13px; margin-bottom: 12px; color: var(--tx); }
footer .fcol b .sic { font-size: 12px; margin-right: 6px; }
footer .fcol a { display: block; color: var(--tx3); font-size: 13px; padding: 3px 0; }
footer .base { color: var(--tx3); font-size: 12.5px; margin-top: 32px;
  font-family: var(--mono); }

/* ── states ──────────────────────────────────────────────── */
.note { border: 1px solid var(--line2); border-left: 3px solid var(--acc);
  border-radius: 8px; padding: 14px 18px; color: var(--tx2); font-size: 14px;
  background: var(--panel); margin: 20px 0; }
.note.warn { border-left-color: var(--warn); }
.loading { color: var(--tx3); font-family: var(--mono); font-size: 13px;
  padding: 30px 0; }
.empty { color: var(--tx3); padding: 30px 0; font-size: 14px; }

@media (max-width: 760px) {
  nav .links { gap: 14px; }
  nav .links a.hide-sm { display: none; }
  .docgrid { grid-template-columns: 1fr; }
  .docnav { position: static; display: flex; gap: 16px; flex-wrap: wrap; }
  .hero { padding: 60px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art, .page-art, .brand .dot, .plan.hot { animation: none; }
}
