@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  --ink: #1a1a18;
  --muted: #6b6459;
  --paper: #f7f4ed;
  --clay: #d97757;
  --clay-d: #bf5e3f;
  --paper-2: #ece7dc;
  --surface: #fffdf8;
  --surface-cool: #eef5f6;
  --line: #d8d1c3;
  --line-dark: #2d3a4b;
  --field: #0c1522;
  --field-2: #14243a;
  --blue: #bf5e3f;
  --cyan: #D97757;
  --green: #19815d;
  --orange: #c66c2d;
  --cream: #fff7e3;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(24, 29, 39, 0.15);
  --shadow-soft: 0 14px 34px rgba(24, 29, 39, 0.10);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(35, 84, 214, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--paper), #fbfaf5 46%, var(--paper));
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
code, pre, .mono { font-family: "JetBrains Mono", "IBM Plex Mono", monospace; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 21, 0.9);
  backdrop-filter: blur(18px);
}
.nav-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f7fbff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.brand-wordmark {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--field), var(--blue) 56%, var(--cyan));
  box-shadow: 0 8px 24px rgba(35, 84, 214, 0.34);
  font-size: 12px;
  font-weight: 900;
}
.beta {
  padding: 3px 9px;
  border: 1px solid rgba(98, 231, 245, 0.46);
  border-radius: 7px;
  color: #80eaff;
  background: rgba(98, 231, 245, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  color: #aeb8c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #08101d !important;
  background: linear-gradient(135deg, #D97757, #2e65ff);
  box-shadow: 0 10px 34px rgba(46, 101, 255, 0.32);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(18, 211, 230, 0.16), transparent 24rem),
    radial-gradient(circle at 20% 70%, rgba(46, 101, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #43161f 0%, #090d15 72%, #111827 100%);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.04) contrast(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 78%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 12, 21, 0), rgba(7, 12, 21, 0.82));
}
.hero-content {
  min-height: 100vh;
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.9fr);
  gap: 58px;
  align-items: center;
  align-content: center;
  padding: 118px 0 122px;
}
.hero-copy {
  max-width: 700px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #e9b8a4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 20px currentColor;
}
h1, h2, h3, h4 { margin-top: 0; letter-spacing: 0; }
h1 {
  margin: 0;
  font-size: clamp(46px, 5.2vw, 60px);
  line-height: 1.01;
  font-weight: 900;
  max-width: 720px;
}
h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
}
h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 850;
}
p { margin: 0 0 16px; }
.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d7e3f0;
  font-size: 20px;
}
.page-hero .lead { color: #536070; }
.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.btn.secondary { color: var(--ink); background: #fff; }
.btn.dark { color: #fff; border-color: var(--field); background: var(--field); }
.hero .btn.primary {
  color: #06111d;
  border-color: rgba(98, 231, 245, 0.78);
  background: linear-gradient(135deg, #58f0ff 0%, #26cfe3 44%, #3977ff 100%);
  box-shadow: 0 18px 44px rgba(38, 207, 227, 0.22), 0 0 30px rgba(57, 119, 255, 0.18);
}
.hero .btn.secondary {
  color: #dffaff;
  border-color: rgba(98, 231, 245, 0.72);
  background: rgba(8, 16, 29, 0.48);
}
.hero-beta-link {
  display: inline-flex;
  margin-top: 14px;
  color: #88a4ff;
  font-size: 14px;
  font-weight: 800;
}
.hero-visual {
  position: relative;
  min-height: 500px;
  perspective: 1100px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 54px 14px 20px;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(68, 225, 239, 0.24), transparent 19rem);
  filter: blur(14px);
}
.skill-window,
.terminal-window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(13, 17, 25, 0.88);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(16px);
}
.skill-window {
  top: 42px;
  right: 0;
  width: min(100%, 520px);
  overflow: hidden;
  border-top-color: rgba(98, 231, 245, 0.62);
  transform: rotateX(2deg) rotateY(-8deg) rotateZ(2deg);
}
.skill-window::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 231, 245, 0.92), transparent);
  box-shadow: 0 0 26px rgba(98, 231, 245, 0.58);
}
.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  color: #8c98aa;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; margin-right: 8px; }
.skill-window pre {
  min-height: 300px;
  color: #cbd6e4;
  font-size: 14px;
  line-height: 1.55;
}
.yaml { color: #78e6ef; }
.terminal-window {
  right: 28px;
  bottom: 56px;
  width: min(92%, 470px);
  padding: 16px;
  transform: rotateX(1deg) rotateY(-5deg) rotateZ(1deg);
}
.terminal-line {
  color: #d9fbe8;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
}
.terminal-line span {
  color: #75f79d;
  margin-right: 8px;
}
.agent-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(7, 12, 21, 0.62);
  backdrop-filter: blur(14px);
}
.agent-strip span {
  color: rgba(226, 235, 245, 0.64);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #b7c4d4;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section { padding: 90px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 36px;
}
.section-copy { color: var(--muted); font-size: 18px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile, .panel, .doc-section, .article-card, .module-card, .signal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow-soft);
}
.tile, .panel, .signal-card { padding: 24px; }
.tile p, .panel p, .signal-card p { color: var(--muted); }
.dark {
  color: #eaf3f8;
  border-color: rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(7, 139, 143, 0.22), transparent 22rem),
    linear-gradient(145deg, var(--field), #172437);
}
.dark p, .dark li { color: #c9d8e3; }
.label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story { padding-top: 40px; }
.story-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: start;
}
.story-copy { display: grid; gap: 22px; padding-top: 28px; }
.story-step {
  padding: 24px;
  border-left: 4px solid var(--line);
  color: var(--muted);
  opacity: 0.72;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.story-step.active {
  border-color: var(--blue);
  color: var(--ink);
  opacity: 1;
  transform: translateX(8px);
}
.stage {
  position: sticky;
  top: 94px;
  min-height: 620px;
}
.stage-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, rgba(7,139,143,0.28), transparent 18rem), linear-gradient(145deg, #0a1321, #15243a);
  box-shadow: var(--shadow);
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}
.flow-line {
  position: absolute;
  inset: 74px;
  border: 1px solid rgba(128,238,224,0.32);
  border-radius: 8px;
}
.stage-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 134px;
  height: 134px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  color: var(--field);
  background: #f6fbff;
  box-shadow: 0 0 58px rgba(128,238,224,0.26);
  font-weight: 900;
  text-align: center;
}
.artifact {
  position: absolute;
  width: 220px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #f3f9ff;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.artifact b { display:block; margin-bottom: 6px; }
.artifact span { color:#c6d7e3; font-size: 13px; }
.a-scope { left: 38px; top: 68px; }
.a-proto { right: 38px; top: 118px; }
.a-prod { right: 54px; bottom: 88px; }
.a-feedback { left: 48px; bottom: 112px; }

.page-hero {
  padding: 142px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 8%, rgba(7, 139, 143, 0.13), transparent 25rem),
    linear-gradient(180deg, #fffaf0, var(--paper));
}
.page-hero h1 { color: var(--ink); max-width: 920px; font-size: 62px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: 34px;
  align-items: center;
}
.visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.academy-hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(98, 231, 245, 0.20), transparent 26rem),
    radial-gradient(circle at 18% 78%, rgba(35, 84, 214, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffaf0, var(--paper));
}
.academy-console {
  overflow: hidden;
  border: 1px solid rgba(7, 139, 143, 0.24);
  border-radius: 8px;
  color: #e9fbff;
  background:
    radial-gradient(circle at 72% 20%, rgba(98, 231, 245, 0.20), transparent 18rem),
    linear-gradient(145deg, #43161f, #0f1b2c);
  box-shadow: var(--shadow);
}
.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: #e9b8a4;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.console-grid div {
  min-height: 108px;
  display: grid;
  align-content: center;
  padding: 16px;
  background: rgba(8, 16, 29, 0.82);
}
.console-grid strong {
  font-size: 38px;
  line-height: 1;
}
.console-grid span {
  color: #9fb7c6;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.academy-map {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 18px;
}
.academy-map span {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(128,238,224,0.20);
  border-radius: 8px;
  color: #cff9f5;
  background: rgba(255,255,255,0.055);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.console-proof {
  margin: 0 18px 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  color: #cad9e7;
  background: rgba(255,255,255,0.06);
}
.console-proof code { color: #e9b8a4; }
.academy-grid { grid-template-columns: 250px minmax(0, 1fr); }
.academy-thesis {
  background:
    radial-gradient(circle at 86% 10%, rgba(7,139,143,0.12), transparent 18rem),
    linear-gradient(145deg, rgba(7,139,143,0.10), rgba(255,253,248,0.96));
}
.academy-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.academy-outcomes div,
.lab-grid div,
.capstone-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
}
.academy-outcomes div {
  padding: 18px;
}
.academy-outcomes strong,
.lab-grid b,
.capstone-steps b {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}
.academy-outcomes span,
.lab-grid span,
.capstone-steps span {
  color: var(--muted);
}
.academy-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.module-card {
  padding: 24px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.92), rgba(255,253,248,0.80)),
    radial-gradient(circle at 90% 0%, rgba(35,84,214,0.10), transparent 13rem);
}
.academy-modules {
  display: grid;
  gap: 14px;
}
.academy-module {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,253,248,0.92), rgba(255,253,248,0.78)),
    radial-gradient(circle at 100% 0%, rgba(7,139,143,0.11), transparent 18rem);
  box-shadow: var(--shadow-soft);
}
.module-index {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--field), var(--blue) 58%, var(--cyan));
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(35,84,214,0.20);
}
.lesson-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.lesson-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(7,139,143,0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(7,139,143,0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.lab-grid div { padding: 16px; }
.capstone-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.capstone-steps div {
  min-height: 158px;
  padding: 16px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}
.capstone-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--field);
  background: #e9b8a4;
}
.capstone-steps span { color: #c9d8e3; }

.page-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 38px 0 82px;
}
.side-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,248,0.82);
}
.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.side-nav a:hover { color: var(--ink); background: var(--paper-2); }
.content-stack { display: grid; gap: 18px; }
.doc-section { padding: 28px; scroll-margin-top: 88px; }
.doc-section h2 { font-size: 34px; }
.doc-section h3 { margin-top: 18px; }
.list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.list li { margin: 9px 0; }
.code-card {
  overflow: hidden;
  border: 1px solid #263449;
  border-radius: 8px;
  color: #e7f3ff;
  background: #0b1422;
  box-shadow: var(--shadow-soft);
}
.code-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #8aeadd;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 14px;
}
.comment { color: #8aa0b8; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
}
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--field); }
td { color: #4d596b; }

.article-list { display: grid; gap: 16px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  border-radius: 8px;
}
.article-grid .article-card {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.92), rgba(255,253,248,0.78)),
    radial-gradient(circle at 80% 0%, rgba(7,139,143,0.12), transparent 16rem);
}
.article-grid .article-card img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.entity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(7, 139, 143, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(7, 139, 143, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-card p { color: var(--muted); }
.article-body {
  max-width: 850px;
  margin: 0 auto;
  padding: 44px 0 86px;
}
.article-body-wide {
  max-width: 1040px;
}
.article-hero-image {
  margin: -8px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #43161f;
  box-shadow: var(--shadow);
}
.article-hero-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}
.article-body .doc-section { margin-bottom: 18px; }
.answer-first {
  border-color: rgba(7, 139, 143, 0.28);
  background: linear-gradient(145deg, rgba(7,139,143,0.10), rgba(255,253,248,0.95));
}
.pulse {
  border-color: rgba(25, 129, 93, 0.28);
  background: linear-gradient(145deg, rgba(25,129,93,0.09), rgba(255,253,248,0.96));
}
.source-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.source-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.54);
  text-decoration: none;
  font-weight: 800;
}
.source-list a:hover { border-color: rgba(7,139,143,0.36); color: var(--cyan); }
.strategy-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.strategy-band .panel {
  min-height: 150px;
  background:
    radial-gradient(circle at 90% 10%, rgba(7,139,143,0.13), transparent 11rem),
    rgba(255, 253, 248, 0.88);
}

.callout {
  padding: 26px;
  border: 1px solid rgba(35,84,214,0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(35,84,214,0.10), rgba(7,139,143,0.08));
}
.waitlist {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.waitlist input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.waitlist button {
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--field);
  background: #e9b8a4;
  font-weight: 900;
  cursor: pointer;
}

/* Editorial rebuild: dark developer-grade market intelligence surfaces. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(18px);
}
.topbar .brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.topbar .brand span:first-child { color: #f4fbff; }
.topbar .brand span:last-child { color: #dbe7f2; }
.topbar .nav-cta {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(98, 231, 245, 0.62);
  color: #86edff !important;
  background: rgba(98, 231, 245, 0.05);
}
.editorial-body {
  background:
    radial-gradient(circle at 80% -8%, rgba(98, 231, 245, 0.12), transparent 34rem),
    radial-gradient(circle at 0% 18%, rgba(35, 84, 214, 0.08), transparent 28rem),
    linear-gradient(180deg, #f7f4ed, #fbfaf5 44%, #f1ede3);
}
.intel-hero,
.mcp-hero,
.intel-article-hero {
  position: relative;
  overflow: hidden;
  color: #eef7ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, rgba(98, 231, 245, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 28%, rgba(98, 231, 245, 0.14), transparent 22rem),
    radial-gradient(circle at 8% 6%, rgba(35, 84, 214, 0.18), transparent 25rem),
    linear-gradient(180deg, #43161f, #0b111d 62%, #0a101a);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}
.intel-hero::before,
.mcp-hero::before,
.intel-article-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9, 13, 22, 0.74));
}
.intel-hero { padding: 142px 0 86px; }
.mcp-hero { padding: 142px 0 92px; }
.intel-article-hero { padding: 132px 0 72px; }
.intel-hero > *,
.mcp-hero > *,
.intel-article-hero > * { position: relative; z-index: 1; }
.intel-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
}
.intel-hero h1,
.mcp-hero h1,
.intel-article-hero h1 {
  max-width: 980px;
  color: #fffef5;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.intel-article-hero h1 { max-width: 1080px; }
.intel-hero .lead,
.mcp-hero .lead,
.intel-article-hero .lead {
  max-width: 760px;
  color: #c4d2e2;
}
.intel-hero .eyebrow,
.mcp-hero .eyebrow,
.intel-article-hero .eyebrow { color: #77e8f6; }
.intel-terminal {
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(98, 231, 245, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 6%, rgba(98, 231, 245, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #0b111b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateY(-7deg) rotateX(2deg);
}
.intel-terminal pre {
  min-height: 260px;
  margin: 16px 0 0;
  overflow: auto;
  color: #d9e6f0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.editorial-panel,
.founder-box,
.playbook-panel,
.related-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 96% 0%, rgba(7, 139, 143, 0.08), transparent 12rem),
    rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-soft);
}
.founder-box {
  border-color: rgba(7, 139, 143, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 139, 143, 0.12), rgba(35, 84, 214, 0.06)),
    rgba(255, 253, 248, 0.95);
}
.editorial-article {
  display: grid;
  gap: 20px;
  padding-top: 42px;
  padding-bottom: 90px;
}
.editorial-image {
  margin: 0;
  border-radius: 12px;
  border-color: rgba(20, 36, 58, 0.18);
  box-shadow: 0 22px 70px rgba(24, 29, 39, 0.18);
}
.editorial-image img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-prose {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}
.article-prose p {
  max-width: 890px;
  margin: 0 0 22px;
  color: #2e3846;
  font-size: 18px;
  line-height: 1.82;
}
.article-prose p:last-child { margin-bottom: 0; }
.editorial-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editorial-list,
.playbook-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.editorial-list li,
.playbook-list li {
  position: relative;
  padding: 13px 14px 13px 34px;
  border: 1px solid rgba(216, 209, 195, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #273241;
}
.editorial-list li::before,
.playbook-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(7, 139, 143, 0.1);
}
.playbook-panel {
  border-color: rgba(25, 129, 93, 0.24);
  background:
    radial-gradient(circle at 94% 0%, rgba(25, 129, 93, 0.12), transparent 13rem),
    #fffdf8;
}
.related-panel .actions { margin-top: 12px; }
.market-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.market-cluster,
.intelligence-card {
  border: 1px solid rgba(216, 209, 195, 0.92);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(7, 139, 143, 0.08), transparent 11rem),
    rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
}
.market-cluster {
  min-height: 190px;
  padding: 22px;
}
.market-cluster h3 { margin-top: 8px; }
.intelligence-card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.intelligence-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 139, 143, 0.35);
  box-shadow: 0 24px 54px rgba(24, 29, 39, 0.16);
}
.intelligence-card img {
  min-height: 220px;
  background: #43161f;
}
.intelligence-card h3 {
  font-size: 24px;
  line-height: 1.1;
}
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.readiness-grid div {
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(216, 209, 195, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.readiness-grid b,
.readiness-grid span {
  display: block;
}
.readiness-grid span {
  margin-top: 8px;
  color: var(--muted);
}
footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fffdf8;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.foot a { margin-left: 16px; color: var(--ink); text-decoration: none; font-weight: 800; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  h1 { font-size: 58px; }
  h2 { font-size: 38px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 28px; padding-bottom: 146px; }
  .hero-visual { min-height: 430px; }
  .skill-window { right: auto; left: 0; width: min(100%, 600px); transform: none; }
  .terminal-window { right: 0; bottom: 26px; transform: none; }
  .agent-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .agent-strip span { letter-spacing: 0.18em; }
  .hero-proof, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid, .strategy-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-track-grid, .academy-outcomes, .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capstone-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .story-wrap, .split, .page-grid { grid-template-columns: 1fr; }
  .intel-hero-grid { grid-template-columns: 1fr; }
  .intel-terminal { transform: none; }
  .market-cluster-grid, .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid-two { grid-template-columns: 1fr; }
  .stage { position: relative; top: auto; min-height: 560px; }
  .side-nav { position: relative; top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .topbar {
    min-height: 54px;
    padding: 0 14px;
  }
  .topbar .brand {
    max-width: 180px;
    overflow: hidden;
    font-size: 11px;
    letter-spacing: 0.2em;
  }
  .brand span:nth-child(2) { display: none; }
  h1, .page-hero h1 { font-size: 43px; }
  .intel-hero h1,
  .mcp-hero h1,
  .intel-article-hero h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .lead { font-size: 18px; }
  .intel-hero, .mcp-hero { padding: 104px 0 62px; }
  .intel-article-hero { padding: 102px 0 56px; }
  .intel-terminal {
    min-height: auto;
    padding: 14px;
  }
  .intel-terminal pre {
    min-height: auto;
    max-height: 340px;
    font-size: 11px;
  }
  .hero-content { padding-top: 102px; padding-bottom: 150px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-visual { min-height: 345px; }
  .skill-window pre { min-height: 230px; font-size: 11px; }
  .terminal-window { left: 18px; right: 0; width: auto; bottom: 14px; padding: 12px; }
  .terminal-line { font-size: 11px; }
  .agent-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 20px; }
  .agent-strip span { font-size: 10px; letter-spacing: 0.18em; }
  .hero-proof, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article-grid, .strategy-band { grid-template-columns: 1fr; }
  .market-cluster-grid, .readiness-grid { grid-template-columns: 1fr; }
  .editorial-panel, .founder-box, .playbook-panel, .related-panel, .article-prose { padding: 22px; }
  .article-prose p { font-size: 17px; }
  .editorial-article { padding-top: 28px; }
  .academy-track-grid, .academy-outcomes, .lab-grid, .capstone-steps { grid-template-columns: 1fr; }
  .academy-console { margin-top: 6px; }
  .console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-module { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .module-index { width: 62px; height: 62px; }
  .capstone-steps div { min-height: auto; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
  .capstone-steps b { margin-bottom: 0; }
  .proof-item { min-height: auto; }
  section { padding: 64px 0; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { height: 180px; }
  .waitlist { flex-direction: column; }
  .foot { align-items: flex-start; flex-direction: column; }
  .foot a { margin-left: 0; margin-right: 14px; }
  .artifact { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: auto; margin: 10px; }
  .stage-panel { min-height: auto; padding: 155px 8px 12px; }
  .stage-center { top: 86px; }
  .flow-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Mobile grid safety: prevent tables/code blocks from expanding the page itself. */
.page-grid,
.page-grid > *,
.content-stack,
.doc-section,
.table-wrap,
.code-card,
.side-nav,
.tile,
.panel,
.article-card,
.signal-card {
  min-width: 0;
}
.table-wrap,
.code-card {
  max-width: 100%;
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .side-nav { grid-template-columns: 1fr; }
  .doc-section { padding: 22px; }
}

/* === Design system v2 — "The Certifying Machine": Anthropic clay × editorial serif === */
h1, h2, .page-hero h1, .intel-hero h1, .mcp-hero h1, .intel-article-hero h1, .doc-section h2, .academy-hero h1 {
  font-family: 'Newsreader', Georgia, serif; font-weight: 500; letter-spacing: -0.02em;
}
.btn.primary, .hero .btn.primary {
  background: var(--clay) !important; border-color: var(--clay) !important; color: #fff !important;
  box-shadow: 0 10px 26px rgba(217,119,87,0.30);
}
.btn.primary:hover, .hero .btn.primary:hover { background: var(--clay-d) !important; }
.nav-cta, .topbar .nav-cta { background: var(--clay) !important; border-color: var(--clay) !important; color: #fff !important; }
.brand-mark { background: linear-gradient(135deg, #0c0f14, #1a1f29) !important; color: var(--clay) !important; }
.label { color: var(--clay-d); }
.btn.secondary:hover { border-color: var(--clay); }
.entity-pill { border-color: rgba(217,119,87,0.28); color: var(--clay-d); background: rgba(217,119,87,0.07); }

/* === Design system v3 — matte red surfaces + night-blue touches (replaces black/navy) === */
:root { --red:#5e2230; --red-deep:#43161f; --night:#16273f; --night-2:#21395c; }
/* dark surfaces → matte red */
.hero, .intel-hero, .mcp-hero, .intel-article-hero, .academy-hero, .academy-console,
.stage-panel, .dark, .capstone-steps div, .article-hero-image,
.terminal-window, .skill-window {
  background: linear-gradient(158deg, var(--red), var(--red-deep)) !important;
}
.code-card, .intel-terminal, pre { /* code blocks → deep matte red */ }
.code-card, .intel-terminal { background: var(--red-deep) !important; border-color: rgba(250,247,240,0.12) !important; }
.intel-terminal { box-shadow: 0 30px 90px rgba(67,22,31,0.4) !important; }
.brand-mark { background: linear-gradient(135deg, var(--red-deep), var(--red)) !important; color: var(--clay) !important; }
/* table header on red */
th { background: var(--red) !important; }
/* on-dark accents: teal/cyan → clay (warm), keep readable on red */
.intel-hero .eyebrow, .mcp-hero .eyebrow, .intel-article-hero .eyebrow, .hero .eyebrow,
.console-top, .code-top, .academy-map span, .beta { color: var(--clay) !important; }
.beta { border-color: rgba(217,119,87,0.5) !important; background: rgba(217,119,87,0.08) !important; }
/* night-blue touch on data/secondary chips */
.card .ic, .lesson-list span { color: var(--night-2) !important; }
/* terminal/console green stays for "pass/ok"; soften cyan code text to cream */
.code-card pre, .intel-terminal pre, .terminal-line { color: rgba(250,247,240,0.9) !important; }

/* === v3 — canonical nav visual on legacy pages (ivory translucent, clay CTA) === */
.site-nav, .topbar { background: rgba(250,247,240,.82) !important; border-bottom:1px solid var(--line) !important; backdrop-filter: blur(12px); }
.site-nav .brand, .topbar .brand, .brand-wordmark, .topbar .brand span { color: var(--ink) !important; }
.nav-links a { color: var(--muted) !important; }
.nav-links a:hover, .nav-links a.active { color: var(--clay-d) !important; }
.nav-cta, .topbar .nav-cta { background: var(--clay) !important; border-color: var(--clay) !important; color: #fff !important; }
