/* Shared STRATAM public site chrome (stratam.io docs portal) */
:root, [data-theme="dark"] {
  --bg: #0c1116;
  --bg-elev: #111820;
  --surface: #161e27;
  --text: #eef3f7;
  --text-2: #a8b6c4;
  --text-3: #7a8b9a;
  --accent: #6aa89c;
  --accent-soft: rgba(106, 168, 156, 0.14);
  --accent-ink: #0a1210;
  --sky: #8eb4d4;
  --warn: #c9b27a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shell: rgba(255, 255, 255, 0.04);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --lift: 0 16px 48px rgba(0, 0, 0, 0.35);
  --r: 1.15rem;
  --r-sm: 0.85rem;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 320ms var(--ease);
  --font: "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}
[data-theme="light"] {
  --bg: #f3f6f5;
  --bg-elev: #eef2f0;
  --surface: #ffffff;
  --text: #1a262c;
  --text-2: #52646f;
  --text-3: #7a8d97;
  --accent: #3f8f80;
  --accent-soft: rgba(63, 143, 128, 0.12);
  --accent-ink: #f7fbfa;
  --sky: #4d7eaa;
  --warn: #9a7d35;
  --line: rgba(26, 38, 44, 0.08);
  --line-strong: rgba(26, 38, 44, 0.12);
  --shell: rgba(26, 38, 44, 0.035);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --lift: 0 14px 36px rgba(26, 38, 44, 0.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, color-mix(in srgb, var(--sky) 10%, transparent), transparent 50%);
}
[data-theme="light"] .ambient { opacity: 0.5; }
.shell {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 3.5rem;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.75rem;
}
.brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand em { font-style: normal; color: var(--accent); font-weight: 600; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.topbar .grow { flex: 1; min-width: 0.5rem; }
.theme-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-btn:hover { background: var(--accent-soft); color: var(--text); }
.badge {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
h1 .hl { color: var(--accent); }
.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: 0;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--lift);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--t), transform 160ms var(--ease);
  min-height: 9.5rem;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
  text-decoration: none;
}
.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  flex: 1;
}
.card .go {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent);
}
.bezel {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 0.25rem);
  padding: 0.28rem;
  box-shadow: var(--lift);
  margin: 1rem 0 1.25rem;
}
.bezel-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--inset);
  padding: 1.25rem 1.35rem;
}
h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h2.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0;
}
pre, code { font-family: var(--mono); }
pre {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-2);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0.75rem 0 1.25rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--text-3);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
ul { color: var(--text-2); padding-left: 1.15rem; }
li { margin: 0.35rem 0; }
li strong { color: var(--text); }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-2); }
.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.92rem;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 700ms var(--ease) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
