/* Shared shell for the static content pages (/how-it-works, /what-is-an-organizational-digital-twin).
   Tokens and the atmospheric treatment are lifted from cli-studio/index.html, which still
   carries its own inline copy — it is a gated page with page-specific components, and
   rewiring it onto this file buys nothing today. Fold it in if a third page needs the
   same components. */

:root {
  --bg-0: #0e0f11;
  --text: #edeef0;
  --text-dim: #9a9fa6;
  --text-faint: rgba(154, 159, 166, 0.45);
  --accent: #5b7c99;
  --accent-data: #3e8577;
  --hair: rgba(237, 238, 240, 0.1);
  --hair-strong: rgba(237, 238, 240, 0.16);
  --font-display: 'Eldrion', sans-serif;
  --font-body: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', 'Inter', monospace;
}

/* @font-face lives in /assets/fonts.css, which every page loads. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg-0); }
a { color: inherit; }

/* One cool light in the void — the same single atmospheric source the other pages use. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72% 46% at 50% -8%, rgba(91, 124, 153, 0.16), transparent 68%),
    radial-gradient(48% 30% at 78% 8%, rgba(62, 133, 119, 0.08), transparent 70%);
}

/* ---- chrome ---- */

.BrandMark {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
  text-decoration: none;
}
.BrandMark img { width: 22px; height: auto; display: block; }
.BrandMark span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.Back {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 8;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
}
.Back:hover { color: var(--text); }

/* ---- reading column ---- */

main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 148px 32px 96px;
}

.Overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}
.Overline::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1 {
  font-weight: 600;
  margin: 20px 0 0;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.14;
  max-width: 18ch;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: #f5f7f9;
}

.Lead {
  font-size: 16px;
  line-height: 27px;
  color: #cdd1d6;
  max-width: 58ch;
  margin: 28px 0 0;
}
.Lead strong { color: var(--text); font-weight: 500; }

section { margin-top: 72px; }

h2 {
  font-size: 23px;
  line-height: 31px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #f5f7f9;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  line-height: 25px;
  font-weight: 500;
  margin: 32px 0 8px;
  color: var(--text);
}

p {
  font-size: 15px;
  line-height: 25px;
  color: #cdd1d6;
  max-width: 62ch;
  margin: 0 0 16px;
}

strong { color: var(--text); font-weight: 500; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-data);
  background: rgba(62, 133, 119, 0.09);
  padding: 1.5px 5px;
  border-radius: 2px;
}

main a:not(.BrandMark):not(.Back) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 124, 153, 0.4);
}
main a:not(.BrandMark):not(.Back):hover { border-bottom-color: var(--accent); }

*:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

ul { padding-left: 0; list-style: none; margin: 0 0 16px; }
li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 25px;
  color: #cdd1d6;
  max-width: 62ch;
  margin-bottom: 9px;
}
li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ---- numbered pipeline, threaded on a hairline spine ---- */

.Steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-left: 30px;
  margin-top: 34px;
}
.Steps::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hair-strong) 10%, var(--hair-strong) 90%, transparent);
}
.Step { position: relative; }
.Step::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  background: var(--bg-0);
}
.Step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.Step h3 { margin: 0 0 7px; font-size: 18px; line-height: 25px; }
.Step p { margin: 0; font-size: 14px; line-height: 22px; max-width: 52ch; }

/* ---- contrast panel: what it is vs. what it is not ---- */

.Split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 0.75px solid var(--hair-strong); border-radius: 4px; overflow: hidden; margin-top: 28px; }
.Split > div { background: var(--bg-0); padding: 22px 24px; }
.Split-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.Split .is .Split-label { color: var(--accent-data); }
.Split li { font-size: 13.5px; line-height: 21px; margin-bottom: 11px; }
.Split li:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */

.Faq { border-top: 0.75px solid var(--hair); margin-top: 30px; }
.Faq-item { border-bottom: 0.75px solid var(--hair); padding: 22px 0; }
.Faq-item h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.Faq-item p { margin: 0; font-size: 14.5px; line-height: 23px; }

/* ---- long-form prose (generated doc pages) ---- */

.Prose h2 { margin-top: 56px; }
.Prose > h2:first-child { margin-top: 0; }
.Prose hr { display: none; }
.Prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent-data);
  background: rgba(62, 133, 119, 0.06);
}
.Prose blockquote p { margin: 0; color: var(--text); }
.Prose pre {
  margin: 18px 0;
  padding: 16px 18px;
  border: 0.75px solid var(--hair-strong);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  overflow-x: auto;
}
.Prose pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.7; }

.Table-scroll { overflow-x: auto; margin: 22px 0; }
.Prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 13.5px;
  line-height: 21px;
}
.Prose th, .Prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 0.75px solid var(--hair);
  vertical-align: top;
  color: #cdd1d6;
}
.Prose th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
  border-bottom-color: var(--hair-strong);
}
.Prose td code { font-size: 12px; }

/* ---- footer nav ---- */

.PageNav {
  margin-top: 84px;
  padding-top: 26px;
  border-top: 0.75px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
}
.PageNav a { color: var(--text-dim) !important; border-bottom: none !important; }
.PageNav a:hover { color: var(--text) !important; }

@media (max-width: 720px) {
  main { padding: 120px 24px 72px; }
  .BrandMark { top: 20px; left: 24px; }
  .Back { top: 24px; right: 24px; }
  .Split { grid-template-columns: 1fr; }
}
