/* ============================================================
   Dominu — premium informative site (no deps)
   ============================================================ */

:root{
  --bg: #ffffff;
  --fg: #0b0f19;
  --muted: rgba(11,15,25,.68);
  --muted2: rgba(11,15,25,.52);
  --line: rgba(11,15,25,.12);

  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.58);

  --accent: #00d7ff;        /* from logo family */
  --primary: #0b5cff;
  --primary2: #0037ff;

  --shadow: 0 22px 70px rgba(0,0,0,.10);
  --shadow2: 0 12px 34px rgba(0,0,0,.08);

  --radius: 22px;
  --radius2: 16px;

  --max: 1140px;
  --pad: 24px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #070a10;
    --fg: #e9eefb;
    --muted: rgba(233,238,251,.74);
    --muted2: rgba(233,238,251,.56);
    --line: rgba(233,238,251,.14);

    --card: rgba(255,255,255,.06);
    --card2: rgba(255,255,255,.09);

    --shadow: 0 34px 90px rgba(0,0,0,.55);
    --shadow2: 0 18px 46px rgba(0,0,0,.35);
  }
}

/* Manual theme override */
html[data-theme="light"]{
  --bg:#ffffff; --fg:#0b0f19; --muted:rgba(11,15,25,.68); --muted2:rgba(11,15,25,.52);
  --line:rgba(11,15,25,.12); --card:rgba(255,255,255,.78); --card2:rgba(255,255,255,.58);
  --shadow:0 22px 70px rgba(0,0,0,.10); --shadow2:0 12px 34px rgba(0,0,0,.08);
}
html[data-theme="dark"]{
  --bg:#070a10; --fg:#e9eefb; --muted:rgba(233,238,251,.74); --muted2:rgba(233,238,251,.56);
  --line:rgba(233,238,251,.14); --card:rgba(255,255,255,.06); --card2:rgba(255,255,255,.09);
  --shadow:0 34px 90px rgba(0,0,0,.55); --shadow2:0 18px 46px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--fg); font-family:var(--font); }
a{ color:inherit; text-decoration:none; }
strong{ font-weight:700; }
img{ max-width:100%; display:block; }
::selection{ background:rgba(0,215,255,.22); }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

/* Make anchor jumps land below sticky header */
section[id]{ scroll-margin-top: 96px; }

/* Accessibility */
.skipLink{
  position:absolute;
  left:-9999px;
  top:10px;
  background:var(--fg);
  color:var(--bg);
  padding:10px 12px;
  border-radius:12px;
  z-index:999;
}
.skipLink:focus{ left:12px; }

:focus-visible{
  outline: 2px solid rgba(0,215,255,.65);
  outline-offset: 2px;
}

/* ============================================================
   Scroll progress
   ============================================================ */
.progress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 80;
}
.progress__bar{
  height:3px;
  width:0%;
  background: linear-gradient(90deg, rgba(0,215,255,.95), rgba(11,92,255,.95));
  box-shadow: 0 0 18px rgba(0,215,255,.25);
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar{
  position:sticky;
  top:3px; /* allow progress bar at top */
  z-index:50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark){
  .topbar{ background: rgba(7,10,16,.62); }
}
html[data-theme="dark"] .topbar{ background: rgba(7,10,16,.62); }

.topbar__inner{
  height:74px;
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 210px;
}
.brand__logo{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow: 0 10px 26px rgba(0,215,255,.14);
}
.brand__stack{ display:flex; flex-direction:column; gap:2px; }
.brand__name{ font-weight:850; letter-spacing:-.02em; font-size:15px; line-height:1; }
.brand__tag{ font-size:12px; color:var(--muted); letter-spacing:-.01em; }

.nav{
  display:flex;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  align-items:center;
}
.nav a{
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{ background:rgba(127,127,127,.10); color:var(--fg); }
.nav a.is-active{
  color:var(--fg);
  background: rgba(0,215,255,.10);
  border: 1px solid rgba(0,215,255,.22);
}

/* Audience segmented control */
.seg{
  display:inline-flex;
  border:1px solid var(--line);
  background: rgba(127,127,127,.06);
  border-radius: 14px;
  padding:4px;
  gap:4px;
}
.seg__btn{
  height:34px;
  padding:0 10px;
  border-radius: 12px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
  cursor:pointer;
}
.seg__btn:hover{ color:var(--fg); background:rgba(127,127,127,.10); }
.seg__btn.is-active{
  color:var(--fg);
  border-color: rgba(0,215,255,.28);
  background: linear-gradient(180deg, rgba(0,215,255,.16), rgba(0,215,255,.06));
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
  user-select:none;
  cursor:pointer;
}
.btn--primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 16px 44px rgba(11,92,255,.22);
}
.btn--primary:hover{ filter: brightness(1.03); }
.btn--secondary{
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}
.btn--secondary:hover{ background:rgba(127,127,127,.10); }
.btn--ghost{
  background: transparent;
  border-color: var(--line);
  color:var(--muted);
}
.btn--ghost:hover{ background:rgba(127,127,127,.10); color:var(--fg); }

/* Burger */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:transparent;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:10px;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--fg);
  border-radius:2px;
  opacity:.9;
}

/* Mobile nav */
.mobileNav{
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.80);
  backdrop-filter: blur(14px);
}
@media (prefers-color-scheme: dark){
  .mobileNav{ background: rgba(7,10,16,.72); }
}
html[data-theme="dark"] .mobileNav{ background: rgba(7,10,16,.72); }
.mobileNav__inner{
  padding:14px var(--pad) 18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.mobileNav a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  color:var(--muted);
}
.mobileNav a:hover{ color:var(--fg); background:rgba(127,127,127,.10); }

/* ============================================================
   Hero
   ============================================================ */
.kicker{
  color:var(--muted);
  font-weight:850;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  margin:0 0 10px 0;
}

.hero{
  padding:64px 0 26px;
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute;
  inset:-160px 0 auto 0;
  height:620px;
  background:
    radial-gradient(900px 280px at 14% 18%, rgba(0,215,255,.14), transparent 60%),
    radial-gradient(860px 280px at 82% 30%, rgba(11,92,255,.12), transparent 62%),
    radial-gradient(700px 260px at 50% 82%, rgba(11,15,25,.07), transparent 60%);
  pointer-events:none;
}
@media (prefers-color-scheme: dark){
  .hero:before{
    background:
      radial-gradient(900px 280px at 14% 18%, rgba(0,215,255,.20), transparent 60%),
      radial-gradient(860px 280px at 82% 30%, rgba(11,92,255,.16), transparent 62%),
      radial-gradient(700px 260px at 50% 82%, rgba(233,238,251,.07), transparent 60%);
  }
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
  position:relative;
}

.hero h1{
  margin:0 0 14px 0;
  font-size:52px;
  line-height:1.06;
  letter-spacing:-.035em;
}
.lead{
  margin:0;
  font-size:18px;
  line-height:1.65;
  color:var(--muted);
  max-width: 72ch;
}
.ctaRow{
  margin:18px 0 14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Right panel */
.hero__panel{ display:flex; flex-direction:column; gap:14px; }
.glass{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.glass__header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.dot{ width:10px; height:10px; border-radius:99px; opacity:.92; }
.dot--r{ background:#ff5f57; }
.dot--y{ background:#febc2e; }
.dot--g{ background:#28c840; }
.glass__title{
  margin-left:10px;
  font-size:13px;
  color:var(--muted);
  font-weight:750;
}

/* Trace table */
.trace{ padding:14px 16px 16px; }
.trace__row{
  display:grid;
  grid-template-columns: 118px 1fr;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.trace__row:last-of-type{ border-bottom:none; }
.trace__tag{
  font-weight:850;
  font-size:13px;
  color:var(--fg);
}
.trace__txt{
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}
.trace__footer{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top:12px;
  color:var(--muted2);
  font-size:12px;
}
.sep{ opacity:.55; }

.panelNote{
  padding:14px 16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(127,127,127,.06);
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

/* ============================================================
   Sections
   ============================================================ */
.section{ padding:54px 0; }
.section--last{ padding-bottom: 74px; }
.section__head{ margin-bottom:18px; max-width: 92ch; }
.section h2{
  margin:0 0 8px 0;
  font-size:34px;
  letter-spacing:-.02em;
}
.sublead{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  max-width: 92ch;
}

/* Callouts */
.callout{
  margin-top:14px;
  padding:14px 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(0,215,255,.22);
  background: linear-gradient(180deg, rgba(0,215,255,.09), rgba(127,127,127,.06));
  color:var(--muted);
  line-height:1.6;
}
.callout--tight{ margin-top:0; }
.callout--thin{
  border-color: var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
}

/* Cards & grids */
.grid3{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid2{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  padding:18px 18px 16px;
}
.card h3{
  margin:0 0 8px 0;
  font-size:18px;
  letter-spacing:-.01em;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}
.card--soft{
  background: rgba(127,127,127,.06);
  box-shadow:none;
}

/* Actions row in cards (missing in original) */
.card__actions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Diagram */
.diagram{
  margin-top:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(127,127,127,.06);
  padding:18px;
}
.diagram__row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  font-size:13px;
  color:var(--muted);
}
.arrow{ color:var(--muted2); }
.diagram__caption{
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

/* Accordion (kept) */
.accordion{ margin-top:18px; display:grid; gap:10px; }
.acc{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.acc summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:14px;
}
.acc summary::-webkit-details-marker{ display:none; }
.acc__title{ font-weight:850; letter-spacing:-.01em; }
.acc__meta{ color:var(--muted); font-size:13px; }
.acc__body{
  padding:0 18px 16px;
  color:var(--muted);
  line-height:1.65;
}

/* Table (kept) */
.tableWrap{
  margin-top:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:auto;
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 720px;
}
.table th, .table td{
  text-align:left;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.table thead th{
  font-size:13px;
  color:var(--muted);
  font-weight:850;
}
.table tbody td{
  color:var(--muted);
  line-height:1.6;
}

/* Code blocks */
.code{
  margin:0;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(127,127,127,.06);
  overflow:auto;
  font-family: var(--mono);
  font-size:13px;
  line-height:1.6;
  color: var(--fg);
}
.miniTxt{ margin-top:10px; font-size:12px; }

/* Bullets */
.bullets{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
}
.bullets li{ margin:6px 0; }

/* Chips (tooltips) kept for optional use */
.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(127,127,127,.06);
  color:var(--muted);
  font-size:13px;
  position:relative;
  user-select:none;
  cursor:default;
}
.chip:hover{ color:var(--fg); }

.chip:hover::after,
.chip:focus-visible::after{
  content: attr(data-tip);
  position:absolute;
  left:0;
  bottom:-58px;

  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  color:var(--muted);

  padding:10px 12px;
  border-radius:14px;
  font-size:12px;
  line-height:1.45;

  width:max-content;
  max-width:360px;

  box-shadow: var(--shadow2);
  z-index:30;
}
.chip:hover::before,
.chip:focus-visible::before{
  content:"";
  position:absolute;
  left:18px;
  bottom:-14px;
  width:10px;
  height:10px;
  transform: rotate(45deg);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
  z-index:31;
}
@media (max-width: 860px){
  .chip:hover::after,
  .chip:hover::before{ content:none; }
}

/* ============================================================
   Document viewer (md.html) — make it match site
   ============================================================ */
.doc{
  max-width: 900px;
  margin: 42px auto;
  padding: 0 var(--pad);
}
.doc article{
  margin-top: 12px;
}
.doc p{
  color: var(--muted);
  line-height: 1.85;
  margin: 12px 0;
}
.doc h1, .doc h2, .doc h3{
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 22px 0 10px;
}
.doc h1{ font-size: 40px; line-height: 1.10; }
.doc h2{ font-size: 28px; line-height: 1.18; }
.doc h3{ font-size: 20px; line-height: 1.25; }
.doc ul, .doc ol{
  margin: 10px 0 16px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.85;
}
.doc li{ margin: 6px 0; }
.doc a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc pre{
  margin: 14px 0;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(127,127,127,.06);
  overflow: auto;
}
.doc code{
  font-family: var(--mono);
  font-size: 13px;
}
.doc blockquote{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(0,215,255,.35);
  background: rgba(127,127,127,.06);
  border-radius: 12px;
  color: var(--muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer{
  padding:28px 0 38px;
  border-top:1px solid var(--line);
}
.footer__inner{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:16px;
  align-items:start;
}
.footer__brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:-.02em;
}
.footer__logo{
  width:22px; height:22px;
  border-radius:10px;
}
.footer__links{
  display:flex; gap:14px;
  color:var(--muted);
  font-size:13px;
}
.footer__links a:hover{ color:var(--fg); }
.footer__fine{ text-align:right; font-size:12px; }

/* Utilities */
.muted{ color:var(--muted); }

/* Back to top */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  color: var(--fg);
  cursor: pointer;
  display: none;
  z-index: 60;
}
.toTop.is-show{ display:block; }

/* Audience visibility hooks */
[data-aud-only] { display: none; }
html[data-audience="overview"] [data-aud-only~="overview"]{ display: block; }
html[data-audience="governance"] [data-aud-only~="governance"]{ display: block; }
html[data-audience="technical"] [data-aud-only~="technical"]{ display: block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto !important; }
  *{ transition:none !important; animation:none !important; }
}

/* Responsive */
@media (max-width: 1060px){
  .hero h1{ font-size:46px; }
}
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .nav{ display:none; }
  .burger{ display:inline-flex; }
  .seg{ display:none; } /* keep topbar clean on mobile */
}
@media (max-width: 840px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__fine{ text-align:left; }
}
@media (max-width: 520px){
  .hero{ padding:56px 0 22px; }
  .hero h1{ font-size:36px; }
}
