:root {
  --bg: #05070d;
  --bg-2: #090d18;
  --panel: rgba(13, 18, 33, 0.76);
  --panel-strong: rgba(18, 26, 46, 0.92);
  --text: #edf4ff;
  --muted: #9aa7bd;
  --line: rgba(159, 178, 255, 0.2);
  --red: #ff3158;
  --blue: #2bd8ff;
  --purple: #a855ff;
  --green: #48f0a4;
  --shadow-red: 0 0 38px rgba(255, 49, 88, 0.24);
  --shadow-blue: 0 0 38px rgba(43, 216, 255, 0.22);
  --shadow-purple: 0 0 44px rgba(168, 85, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans", "Aptos", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(168, 85, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(43, 216, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 72% 92%, rgba(255, 49, 88, 0.14), transparent 24rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}

html.js body.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

html.js body.page-leaving {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: var(--panel-strong);
  box-shadow: var(--shadow-blue);
  transform: translate(-50%, -180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px auto 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.brand,
.nav a {
  color: var(--text);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.brand {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.nav a:hover,
.case-card:hover h3 {
  color: var(--blue);
}

.nav a[aria-current="page"] {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(43, 216, 255, 0.52);
}

main [id] {
  scroll-margin-top: 96px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 22px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer__inner {
  display: grid;
  gap: 10px;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
}

.site-footer p a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer p a:hover {
  color: var(--blue);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(32px, 7vw, 86px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(12, 16, 30, 0.96), rgba(10, 13, 24, 0.66)),
    linear-gradient(90deg, rgba(255, 49, 88, 0.13), rgba(43, 216, 255, 0.09), rgba(168, 85, 255, 0.13));
  box-shadow: var(--shadow-purple);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(43, 216, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 216, 255, 0.13), transparent 62%);
  box-shadow: var(--shadow-blue);
}

.hero__meta,
.section__header p,
.case-card__tag {
  color: var(--blue);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero__lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  border-color: rgba(43, 216, 255, 0.5);
  background: linear-gradient(135deg, rgba(43, 216, 255, 0.18), rgba(168, 85, 255, 0.18));
  box-shadow: var(--shadow-blue);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.signal-card,
.case-card,
.method__grid > div,
.stack-step,
.proof-grid > div {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.signal-card {
  min-height: 230px;
  padding: 26px;
}

.signal-card span {
  display: block;
  margin-bottom: 54px;
  color: var(--muted);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.signal-card h2,
.case-card h3,
.method h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.signal-card p,
.case-card p,
.method p,
.case-card li {
  color: var(--muted);
  line-height: 1.65;
}

.signal-card--red {
  box-shadow: var(--shadow-red);
}

.signal-card--blue {
  box-shadow: var(--shadow-blue);
}

.signal-card--purple {
  box-shadow: var(--shadow-purple);
}

.section {
  margin-top: 86px;
}

.section__header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.case-groups {
  display: grid;
  gap: 34px;
}

.case-group {
  display: grid;
  gap: 16px;
}

.case-group__header {
  display: grid;
  max-width: 860px;
  gap: 8px;
}

.case-group__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.case-group__header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.stack-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: stretch;
}

.stack-step {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 22px;
}

.stack-step::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--blue), var(--purple));
  opacity: 0.85;
}

.stack-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 68px;
  border: 1px solid rgba(43, 216, 255, 0.34);
  border-radius: 50%;
  color: var(--blue);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--shadow-blue);
}

.stack-step h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.stack-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.case-card {
  min-height: 300px;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--panel);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.case-card:hover {
  border-color: rgba(43, 216, 255, 0.48);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

.case-card__tag {
  margin-bottom: 28px;
  color: var(--purple);
}

.case-card__status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(72, 240, 164, 0.2);
  border-radius: 999px;
  color: var(--green);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(72, 240, 164, 0.08);
}

.case-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.proof {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 49, 88, 0.16), transparent 20rem),
    radial-gradient(circle at 82% 20%, rgba(43, 216, 255, 0.12), transparent 24rem),
    var(--panel-strong);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.proof-grid > div {
  padding: 24px;
}

.proof-grid .proof-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(43, 216, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(43, 216, 255, 0.06), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.proof-card__label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--purple);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card__meta {
  margin-bottom: 10px;
  color: var(--green);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.proof-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.proof-gallery .diagram-frame {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-top: 0;
}

.proof-gallery .diagram-caption {
  margin-top: auto;
  padding-top: 12px;
}

.proof-image-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  cursor: zoom-in;
}

.proof-image-link img {
  transition: filter 180ms ease, transform 180ms ease;
}

.proof-image-link:hover img {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.006);
}

.proof-image-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.proof-gallery__card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 49, 88, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.04);
}

.proof-gallery__card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-gallery__card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.proof-gallery__card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.proof-gallery__card img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid rgba(43, 216, 255, 0.18);
  border-radius: 16px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.method {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel-strong);
}

.method__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.method__grid > div {
  padding: 24px;
}

.article-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.article-hero {
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 49, 88, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 14%, rgba(43, 216, 255, 0.16), transparent 24rem),
    var(--panel-strong);
  box-shadow: var(--shadow-purple);
}

.article-hero__meta,
.article-section__eyebrow {
  color: var(--blue);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.article-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.flow-step,
.skill-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.flow-step {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
}

.flow-step span {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-step h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.article-section,
.article-wide {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.article-section {
  min-height: 260px;
  padding: 26px;
}

.article-wide {
  margin-top: 18px;
  padding: 30px;
  scroll-margin-top: 100px;
}

.article-wide--accent {
  background:
    radial-gradient(circle at 12% 0%, rgba(72, 240, 164, 0.12), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(168, 85, 255, 0.12), transparent 22rem),
    var(--panel);
  box-shadow: 0 0 52px rgba(72, 240, 164, 0.08);
}

.article-section h2,
.article-wide h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.article-section p,
.article-wide p,
.article-section li,
.article-wide li {
  color: var(--muted);
  line-height: 1.7;
}

.article-section a,
.article-wide a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.article-section a:hover,
.article-wide a:hover {
  color: var(--text);
}

.article-section ul,
.article-wide ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.diagram-frame {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 10%, rgba(43, 216, 255, 0.12), transparent 20rem),
    radial-gradient(circle at 90% 10%, rgba(168, 85, 255, 0.12), transparent 22rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 60px rgba(43, 216, 255, 0.08);
}

.diagram-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.diagram-caption {
  margin: 12px 4px 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.runbook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.detail-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.public-example {
  padding: 22px;
  border: 1px solid rgba(43, 216, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(43, 216, 255, 0.055), transparent),
    rgba(255, 255, 255, 0.04);
}

.runbook-card {
  padding: 22px;
  border: 1px solid rgba(168, 85, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 85, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(43, 216, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.04);
}

.runbook-card__source {
  margin-bottom: 12px;
  color: var(--purple);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.runbook-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.runbook-card h4 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.runbook-note {
  max-width: 820px;
}

.detail-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.1rem;
}

.public-example h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.public-example p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.doc-snippet,
.doc-content pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(72, 240, 164, 0.18);
  border-radius: 18px;
  color: #c9ffe5;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(72, 240, 164, 0.075), transparent),
    rgba(2, 6, 10, 0.72);
}

.doc-snippet--commands {
  border-color: rgba(43, 216, 255, 0.2);
  color: #d7f7ff;
  background:
    linear-gradient(180deg, rgba(43, 216, 255, 0.075), transparent),
    rgba(2, 6, 10, 0.72);
}

.doc-snippet--expected {
  border-color: rgba(72, 240, 164, 0.2);
}

.doc-snippet code,
.doc-content pre code {
  font: inherit;
}

.doc-page {
  width: min(1040px, calc(100% - 32px));
}

.doc-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
}

.doc-toc,
.doc-content {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.doc-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 24px;
}

.doc-toc .article-section__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.doc-toc a {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--blue);
}

.doc-content {
  padding: clamp(22px, 4vw, 42px);
}

.doc-title {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.doc-section {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.doc-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.doc-section h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.03em;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  line-height: 1.75;
}

.doc-section ul,
.doc-section ol {
  padding-left: 22px;
}

.doc-section code:not(pre code) {
  color: #d7f7ff;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.92em;
}

.doc-warning {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 49, 88, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 49, 88, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-red);
}

.doc-warning--soft {
  border-color: rgba(43, 216, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(43, 216, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-blue);
}

.doc-warning strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-warning p {
  margin-bottom: 0;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-table th,
.doc-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--text);
  background: rgba(43, 216, 255, 0.08);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric span {
  color: var(--muted);
  line-height: 1.55;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.evidence-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.next-card {
  display: block;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.next-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--purple);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-card:hover {
  border-color: rgba(168, 85, 255, 0.52);
  box-shadow: var(--shadow-purple);
}

html.js [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease var(--reveal-delay, 0ms),
    transform 260ms ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js body,
  html.js body.page-ready,
  html.js body.page-leaving,
  html.js [data-reveal],
  .case-card,
  .next-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .skip-link,
  .proof-image-link img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .signal-grid,
  .case-list,
  .stack-map,
  .proof-grid,
  .method__grid,
  .article-grid,
  .article-flow,
  .detail-grid,
  .proof-gallery,
  .runbook-columns,
  .metric-strip,
  .evidence-list,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
    padding: 16px 18px;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .shell,
  .article-shell,
  .site-footer,
  .topbar {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .article-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .hero,
  .article-hero,
  .article-wide,
  .article-section,
  .diagram-frame,
  .doc-toc,
  .doc-section {
    border-radius: 24px;
  }
}
