:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #171717;
  --muted: #5f625e;
  --line: #d8d8cf;
  --code: #101214;
  --cpp: #2f5f9f;
  --cpp-dark: #183f76;
  --json: #c98a1c;
  --json-soft: #fff2d2;
  --accent: #245a7a;
  --accent-dark: #183f55;
  --green: #2f7a5f;
  --soft: #ecece6;
  --ink: #0f1720;
  --shadow: 0 18px 50px rgba(15, 23, 32, 0.10);
  --cpp-wash: rgba(47, 95, 159, 0.10);
  --json-wash: rgba(201, 138, 28, 0.14);
  --build-wash: rgba(47, 122, 95, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 95, 159, 0.13), transparent 330px),
    radial-gradient(circle at top right, rgba(201, 138, 28, 0.14), transparent 310px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 247, 244, 0) 360px),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
footer {
  max-width: 1880px;
  margin: 0 auto;
  padding: 18px clamp(28px, 4.5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 56px;
  height: auto;
}

.logo-mark-large {
  width: 136px;
}

nav,
.actions,
.links-list,
footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

nav a:hover,
.links a:hover,
.links-list a:hover {
  color: var(--text);
}

main {
  max-width: 1880px;
  margin: 0 auto;
  padding: 22px clamp(28px, 4.5vw, 72px) 30px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(560px, 0.9fr) minmax(680px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 4vw, 72px);
  border-top: 1px solid var(--line);
  padding: 44px 0 38px;
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.pipeline-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pipeline-node {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.pipeline-node span,
.proof-kicker {
  display: block;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 6px;
}

.pipeline-node strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.pipeline-node.source {
  border-color: rgba(47, 95, 159, 0.34);
  background: rgba(47, 95, 159, 0.08);
}

.pipeline-node.core {
  border-color: rgba(47, 122, 95, 0.35);
  background: rgba(47, 122, 95, 0.10);
}

.pipeline-node.output {
  border-color: rgba(201, 138, 28, 0.38);
  background: var(--json-soft);
}

.pipeline-link {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}

.product-lockup {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cpp);
  font-weight: 700;
  letter-spacing: 0;
}

.product-line {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.term-cpp,
.term-json,
.term-build {
  font-weight: 720;
}

h1 .term-cpp,
h2 .term-cpp,
h3 .term-cpp {
  color: var(--cpp-dark);
}

h1 .term-json,
h2 .term-json,
h3 .term-json {
  color: #9a610f;
}

h1 .term-build,
h2 .term-build,
h3 .term-build {
  color: var(--green);
}

p .term-cpp,
li .term-cpp {
  color: var(--cpp-dark);
  background: linear-gradient(180deg, transparent 58%, var(--cpp-wash) 0);
}

p .term-json,
li .term-json {
  color: #80520f;
  background: linear-gradient(180deg, transparent 58%, var(--json-wash) 0);
}

p .term-build,
li .term-build {
  color: #235d48;
  background: linear-gradient(180deg, transparent 58%, var(--build-wash) 0);
}

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

h1 {
  max-width: 760px;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 22px;
  text-wrap: balance;
}

h2 {
  max-width: 720px;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.15;
  margin-bottom: 12px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lede {
  max-width: 780px;
  font-size: clamp(21px, 1.65vw, 26px);
  color: var(--cpp-dark);
  margin-bottom: 14px;
}

.lede .term-json {
  color: #80520f;
}

.intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 18px;
}

.signal-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.signal-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.signal-row span:first-child {
  border-color: rgba(47, 95, 159, 0.34);
  color: var(--cpp-dark);
  background: rgba(47, 95, 159, 0.08);
}

.signal-row span:nth-child(2) {
  border-color: rgba(47, 122, 95, 0.34);
  color: #235d48;
  background: rgba(47, 122, 95, 0.08);
}

.signal-row span:nth-child(3) {
  border-color: rgba(47, 122, 95, 0.34);
  color: #235d48;
  background: rgba(47, 122, 95, 0.08);
}

.signal-row span:nth-child(4) {
  border-color: rgba(201, 138, 28, 0.36);
  color: #80520f;
  background: var(--json-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 650;
  background: var(--panel);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button.primary {
  background: var(--cpp-dark);
  color: white;
  border-color: var(--cpp-dark);
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--text);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cpp-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: var(--ink);
  color: #eff2f2;
  border: 1px solid #2a2f33;
  padding: 24px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: inset 0 4px 0 rgba(47, 95, 159, 0.92), inset 0 -4px 0 rgba(201, 138, 28, 0.82);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.terminal-card {
  background: var(--ink);
  border: 1px solid #2b333b;
  box-shadow: 0 22px 60px rgba(15, 23, 32, 0.18);
  position: relative;
}

.terminal-card::before {
  content: "C++";
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(143, 178, 229, 0.68);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.terminal-card::after {
  content: "JSON";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(240, 179, 63, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #2b333b;
  align-items: center;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #6b747c;
}

.terminal-bar span:first-child {
  background: #d66b5d;
}

.terminal-bar span:nth-child(2) {
  background: #d6b35d;
}

.terminal-bar span:nth-child(3) {
  background: #63a77a;
}

.terminal-bar strong {
  margin-left: auto;
  color: #98a2ad;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
}

.terminal-card pre {
  border: 0;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.workbench,
.proof-strip,
.use-cjm,
.early-adopters,
.product-grid,
.release-details,
.principles,
.philosophy,
.links {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 0 26px;
  border-top: 0;
  background: var(--line);
}

.proof-strip div {
  padding: 22px 20px;
  background: var(--panel);
}

.proof-strip div:nth-child(1) {
  box-shadow: inset 0 4px 0 var(--cpp);
}

.proof-strip div:nth-child(2) {
  box-shadow: inset 0 4px 0 var(--green);
}

.proof-strip div:nth-child(3) {
  box-shadow: inset 0 4px 0 var(--json);
}

.proof-strip div:nth-child(4) {
  box-shadow: inset 0 4px 0 var(--accent-dark);
}

.proof-strip strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.workbench {
  display: grid;
  gap: 34px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(47, 95, 159, 0.07), rgba(201, 138, 28, 0.08)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.use-cjm {
  display: grid;
  gap: 24px;
}

.use-cjm > .section-copy {
  max-width: 860px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-content: start;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cpp), var(--green), var(--json));
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: var(--cpp-dark);
  font-weight: 800;
}

.step-card h3 {
  align-self: center;
  margin: 0;
}

.step-card pre,
.step-card p {
  grid-column: 1 / -1;
}

.step-card pre {
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.use-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47, 95, 159, 0.06), rgba(201, 138, 28, 0.07)),
    var(--panel);
  border: 1px solid var(--line);
}

.use-notes h3 {
  margin-bottom: 12px;
}

.compact-list {
  margin-top: 0;
  gap: 6px;
}

.compact-list li {
  padding-top: 9px;
  padding-bottom: 9px;
}

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

.early-adopters {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 0 10px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(47, 95, 159, 0.10), rgba(47, 122, 95, 0.08), rgba(201, 138, 28, 0.10)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.early-copy,
.dogfood-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
}

.early-copy {
  display: grid;
  align-content: start;
  border-top: 4px solid var(--cpp);
}

.early-copy .actions {
  margin-top: 8px;
}

.lede-lite {
  color: var(--cpp-dark);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dogfood-card {
  background:
    linear-gradient(135deg, rgba(47, 122, 95, 0.08), rgba(201, 138, 28, 0.09)),
    var(--panel);
  border-top: 4px solid var(--green);
}

.dogfood-card h3 {
  margin-bottom: 16px;
}

.dogfood-card p {
  color: var(--muted);
}

.dogfood-card p:last-child {
  margin-bottom: 0;
}

.dogfood-card a {
  color: var(--cpp-dark);
  font-weight: 700;
}

.dogfood-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dogfood-links a {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 12px;
  text-decoration: none;
}

.workflow-chain {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.workflow-chain span {
  display: block;
  border: 1px solid var(--line);
  background: #fbfbf8;
  padding: 10px 12px;
  font-weight: 650;
}

.workflow-chain span:nth-child(1),
.workflow-chain span:nth-child(2) {
  border-color: rgba(47, 95, 159, 0.26);
  background: rgba(47, 95, 159, 0.07);
}

.workflow-chain span:nth-child(3),
.workflow-chain span:nth-child(4) {
  border-color: rgba(47, 122, 95, 0.28);
  background: rgba(47, 122, 95, 0.08);
}

.workflow-chain span:nth-child(5) {
  border-color: rgba(201, 138, 28, 0.34);
  background: var(--json-soft);
}

.workflow-chain span:nth-child(6) {
  border-color: rgba(24, 63, 118, 0.24);
  background: rgba(24, 63, 118, 0.06);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.release-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "scope verify"
    "limits limits";
  gap: 22px;
  align-items: start;
}

.release-details .panel:nth-child(1) {
  grid-area: scope;
}

.release-details .panel:nth-child(2) {
  grid-area: verify;
}

.release-details .panel:nth-child(3) {
  grid-area: limits;
}

.vision,
.architecture,
.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 18px;
  padding: 32px 0 38px;
}

.vision {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-copy p,
.vision-copy p {
  max-width: 660px;
  color: var(--muted);
}

.vision-copy {
  font-size: 17px;
}

.flow {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.architecture-flows {
  display: grid;
  gap: 14px;
}

.flow-caption {
  width: min(100%, 330px);
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.flow-step {
  width: min(100%, 330px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
  font-weight: 650;
}

.flow-step.cpp {
  border-color: rgba(47, 95, 159, 0.36);
  background: rgba(47, 95, 159, 0.08);
}

.flow-step.strong {
  background: linear-gradient(135deg, var(--cpp), var(--green));
  border-color: var(--cpp);
  color: white;
}

.flow-step.json {
  border-color: rgba(201, 138, 28, 0.40);
  background: var(--json-soft);
}

.flow-arrow {
  color: var(--json);
  font-size: 18px;
  line-height: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.release-details h2 {
  font-size: clamp(26px, 2.25vw, 34px);
}

.release-details .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.release-details .panel:nth-child(3) .facts {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cpp), var(--green), var(--json));
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li,
.facts span {
  background: #fbfbf8;
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.facts code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-list li {
  position: relative;
  padding-left: 38px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--cpp);
  box-shadow: 5px 5px 0 var(--json);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.facts span:nth-child(1),
.facts span:nth-child(2) {
  border-color: rgba(47, 95, 159, 0.26);
  background: rgba(47, 95, 159, 0.07);
}

.facts span:nth-child(3),
.facts span:nth-child(4) {
  border-color: rgba(47, 122, 95, 0.28);
  background: rgba(47, 122, 95, 0.08);
}

.facts span:nth-child(6) {
  border-color: rgba(201, 138, 28, 0.34);
  background: var(--json-soft);
}

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

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

.principle-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.principle-grid article:nth-child(1) {
  border-top: 4px solid var(--cpp);
  background: linear-gradient(180deg, rgba(47, 95, 159, 0.06), var(--panel) 42%);
}

.principle-grid article:nth-child(2) {
  border-top: 4px solid var(--green);
  background: linear-gradient(180deg, rgba(47, 122, 95, 0.06), var(--panel) 42%);
}

.principle-grid article:nth-child(3) {
  border-top: 4px solid var(--json);
  background: linear-gradient(180deg, rgba(201, 138, 28, 0.08), var(--panel) 42%);
}

.principle-grid article:nth-child(4) {
  border-top: 4px solid var(--accent-dark);
  background: linear-gradient(180deg, rgba(24, 63, 118, 0.05), var(--panel) 42%);
}

.principle-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.philosophy p,
.release p {
  max-width: 780px;
  color: var(--muted);
}

.links {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 24px;
  padding-top: 24px;
  padding-bottom: 18px;
}

.links h2 {
  margin-bottom: 0;
}

.links-list {
  align-items: center;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 14px;
  padding-bottom: 16px;
}

footer > div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.principles-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background:
    linear-gradient(90deg, rgba(47, 95, 159, 0.07), rgba(201, 138, 28, 0.08)),
    var(--panel);
  border: 1px solid var(--line);
}

.principles-intro .eyebrow {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.principles-intro p:last-child {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

@media (min-width: 1280px) {
  .hero-copy {
    padding-left: 8px;
  }

  .terminal-card pre {
    min-height: 330px;
  }
}

@media (max-width: 1380px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .release-details {
    grid-template-columns: 1fr;
    grid-template-areas:
      "scope"
      "verify"
      "limits";
  }
}

@media (max-width: 780px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 12px;
  }

  .hero,
  .product-grid,
  .release-details,
  .early-adopters,
  .steps-grid,
  .use-notes,
  .proof-strip,
  .vision,
  .architecture,
  .philosophy,
  .principles,
  .example-grid,
  .links {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
    gap: 28px;
  }

  .workbench {
    padding: 24px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  h2 {
    font-size: 28px;
  }

  pre {
    font-size: 13px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principles-intro {
    display: block;
  }

  .principles-intro p:last-child {
    margin-top: 8px;
    text-align: left;
  }

  .use-links {
    justify-content: flex-start;
  }

  .pipeline-panel {
    grid-template-columns: 1fr;
  }

  .pipeline-link {
    transform: rotate(90deg);
    min-height: 18px;
  }
}
