:root {
  color-scheme: dark;
  --bg: #05070b;
  --ink: #0a0d14;
  --ink-soft: #121722;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --blue: #2563ff;
  --blue-electric: #00a3ff;
  --blue-soft: #eaf3ff;
  --muted: #687386;
  --border: #dde6f2;
  --dark-border: rgba(221, 230, 242, 0.14);
  --dark-muted: rgba(247, 249, 252, 0.68);
  --green: #16bf2e;
  --yellow: #f6ff00;
  --red: #fc4242;
  --shadow: 0 24px 80px rgba(4, 10, 24, 0.34);
  --font-sans: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --font-display: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 6%, rgba(37, 99, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #05070b 0%, #080d18 48%, #05070b 100%);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(234, 243, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 243, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 11, 0.82);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  width: min(var(--wrap), calc(100% - 40px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.95), rgba(0, 163, 255, 0.72)),
    var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(37, 99, 255, 0.22);
}

.brand__lockup {
  display: grid;
  gap: 2px;
}

.brand__text {
  letter-spacing: 0;
}

.brand__tagline {
  color: rgba(247, 249, 252, 0.58);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 7px;
  color: rgba(247, 249, 252, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(37, 99, 255, 0.16);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  padding: 104px 0 140px;
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.68fr);
  gap: 78px;
  align-items: center;
}

.hero__copy,
.hero-memo,
.system-card,
.post-card {
  min-width: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 860;
  line-height: 0.88;
}

h2 {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 820;
  line-height: 0.96;
}

h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 780;
  line-height: 1.06;
}

.hero__lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--white);
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 720;
  line-height: 1.12;
}

.hero__body {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--dark-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.builder-line,
.section-kicker,
.post-card__meta,
.article-meta {
  margin: 0;
  color: var(--blue-electric);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: rgba(247, 249, 252, 0.72);
}

.builder-line span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.hero__actions,
.demo-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__actions {
  margin: 36px 0 0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.74);
  background: rgba(37, 99, 255, 0.14);
  outline: none;
}

.button--primary {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 18px 42px rgba(37, 99, 255, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #174ff0;
}

.button--ghost {
  border-color: rgba(0, 163, 255, 0.42);
  color: var(--white);
  background: rgba(0, 163, 255, 0.08);
}

.hero-memo {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.memo-sheet {
  position: absolute;
  right: 0;
  top: 24px;
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
  transform: rotate(-1.5deg);
}

.memo-sheet--shadow {
  top: 72px;
  right: 40px;
  min-height: 360px;
  border-color: rgba(37, 99, 255, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.18), rgba(234, 243, 255, 0.02));
  box-shadow: none;
  transform: rotate(4deg);
}

.memo-sheet__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memo-sheet h2 {
  max-width: 7.8ch;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 0.9;
}

.memo-rows {
  display: grid;
  margin: 34px 0 0;
  gap: 0;
}

.memo-rows div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.memo-rows dt,
.memo-rows dd {
  margin: 0;
}

.memo-rows dt {
  color: var(--muted);
  font-size: 14px;
}

.memo-rows dd {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.memo-verdict {
  display: grid;
  margin-top: 20px;
  padding: 16px;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.memo-verdict span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: 104px 0;
}

.paper-stage {
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 -28px 80px rgba(37, 99, 255, 0.08);
}

.section--white {
  background: var(--white);
  color: var(--ink);
}

.section--thesis {
  padding: 112px 0 82px;
}

.thesis-grid,
.artifact-grid,
.start-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.section-kicker {
  margin-bottom: 16px;
}

.paper-stage .section-kicker,
.section--white .section-kicker {
  color: var(--blue);
}

.thesis-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.thesis-lines p {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: baseline;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 780;
  line-height: 1.05;
}

.thesis-lines span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.section__header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section__header--split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.58fr);
  max-width: none;
  gap: 48px;
  align-items: end;
}

.section__header p:not(.section-kicker),
.start-grid > div > p,
.demo-cta p,
.archive-hero p,
.empty-state p {
  color: var(--dark-muted);
  font-size: 19px;
  line-height: 1.55;
}

.paper-stage .section__header p:not(.section-kicker),
.paper-stage .start-grid > div > p {
  color: var(--muted);
}

.system-layout {
  display: grid;
  gap: 34px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  min-height: 305px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: 0 14px 44px rgba(10, 13, 20, 0.06);
}

.system-card--blue {
  border-color: rgba(37, 99, 255, 0.32);
  background:
    linear-gradient(180deg, var(--blue-soft), var(--white));
}

.system-card span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.system-card p {
  margin: 16px 0 0;
  color: #4a5568;
}

.system-card p strong {
  color: var(--ink);
}

.section--evidence {
  padding-top: 72px;
}

.evidence-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 38px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #07101f 0%, #0b1730 42%, #07101f 100%);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(10, 13, 20, 0.18);
}

.evidence-visual {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(37, 99, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.paper-icon {
  display: grid;
  width: 124px;
  height: 156px;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-5deg);
}

.paper-icon span {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.paper-icon span:first-child {
  width: 42%;
  background: var(--blue-electric);
}

.evidence-copy {
  padding: 10px 0;
}

.evidence-copy h2 {
  max-width: 760px;
  font-size: clamp(40px, 5.4vw, 76px);
}

.evidence-copy p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(247, 249, 252, 0.72);
  font-size: 19px;
}

.evidence-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.evidence-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.evidence-stats dt,
.evidence-stats dd {
  margin: 0;
}

.evidence-stats dt {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 850;
}

.evidence-stats dd {
  margin-top: 6px;
  color: rgba(247, 249, 252, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-note {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--blue-electric);
  color: var(--blue-soft) !important;
  font-family: var(--font-mono);
  font-size: 13px !important;
  font-weight: 760;
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--blue-electric);
  font-weight: 850;
}

.text-link::after {
  margin-left: 8px;
  content: "->";
}

.proof-card {
  padding: 28px;
  border: 1px solid var(--border);
}

.proof-card li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 16px;
  font-weight: 680;
}

.proof-card li:first-child {
  border-top: 0;
}

.proof-card li span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.proof-card li:nth-child(2) span {
  background: var(--green);
}

.proof-card li:nth-child(4) span {
  background: var(--yellow);
}

.proof-card li:last-child span {
  background: var(--blue-electric);
}

.proof-card code,
.article-content code {
  color: var(--blue);
  font-family: var(--font-mono);
}

.section--start {
  padding: 92px 0;
}

.start-links {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  overflow: hidden;
}

.start-links a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.start-links a:last-child {
  border-bottom: 0;
}

.start-links a:hover,
.start-links a:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.start-links span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.start-links strong {
  font-size: 18px;
}

.demo-cta {
  padding: 96px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 163, 255, 0.14), transparent 20rem),
    var(--ink);
}

.demo-cta__inner {
  justify-content: space-between;
  gap: 36px;
}

.demo-cta__inner > div {
  max-width: 760px;
}

.demo-cta h2 {
  font-size: clamp(40px, 5.2vw, 76px);
}

.site-footer {
  border-top: 1px solid var(--dark-border);
  background: #03050a;
}

.site-footer__inner {
  display: flex;
  width: min(var(--wrap), calc(100% - 40px));
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 auto;
  padding: 40px 0;
  gap: 30px;
}

.site-footer p {
  max-width: 460px;
  margin: 14px 0 0;
  color: rgba(247, 249, 252, 0.56);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer__links a {
  color: rgba(247, 249, 252, 0.68);
  font-size: 14px;
}

.archive-hero,
.article-header,
.error-page {
  padding: 92px 0 56px;
}

.archive-hero h1,
.article-header h1,
.error-page h1 {
  max-width: 950px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
}

.article-excerpt {
  max-width: 760px;
  color: var(--dark-muted);
  font-size: 22px;
}

.article-meta {
  display: flex;
  gap: 12px;
}

.article-content {
  max-width: 820px;
  padding: 42px 44px 90px;
  margin-bottom: 90px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.article-content .kg-width-wide {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-wide img,
.article-content .kg-width-full img {
  display: block;
  width: 100%;
  height: auto;
}

.article-content > * {
  margin-top: 0;
  margin-bottom: 24px;
}

.article-content p,
.article-content li {
  color: #263042;
  font-size: 19px;
  line-height: 1.75;
}

.article-content h2 {
  margin-top: 54px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.08;
}

.article-content h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--ink);
}

.article-content a {
  color: var(--blue);
  border-bottom: 1px solid rgba(37, 99, 255, 0.34);
}

.article-content blockquote {
  margin: 34px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 96px;
  gap: 16px;
}

.post-card,
.empty-state {
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.post-card__link {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 24px;
}

.post-card h2 {
  font-size: 25px;
  line-height: 1.08;
}

.post-card p:not(.post-card__meta) {
  color: var(--dark-muted);
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.error-page {
  min-height: 60vh;
}

@media (max-width: 980px) {
  .hero__grid,
  .thesis-grid,
  .section__header--split,
  .system-grid,
  .evidence-card,
  .start-grid,
  .post-feed {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-memo {
    max-width: 680px;
    min-height: 500px;
  }

  .system-card {
    min-height: auto;
  }

  .system-card span {
    margin-bottom: 34px;
  }

  .evidence-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-visual {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    background: rgba(5, 7, 11, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .wrap,
  .site-header__inner,
  .site-footer__inner {
    width: min(362px, calc(100% - 28px));
    max-width: 362px;
    margin-left: 14px;
    margin-right: auto;
  }

  .brand__tagline {
    display: none;
  }

  .hero {
    padding: 70px 0 62px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 68px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero__lede {
    font-size: 26px;
  }

  .hero__body,
  .section__header p:not(.section-kicker),
  .artifact-copy p,
  .start-grid > div > p,
  .demo-cta p {
    font-size: 17px;
  }

  .hero__actions,
  .demo-cta__inner {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-memo {
    min-height: 0;
    max-width: 100%;
  }

  .memo-sheet {
    position: relative;
    top: auto;
    right: auto;
    padding: 22px;
    width: 100%;
    transform: none;
  }

  .memo-sheet--shadow {
    display: none;
  }

  .memo-sheet h2 {
    max-width: none;
    font-size: 40px;
  }

  .memo-sheet__top,
  .memo-rows div {
    gap: 10px;
  }

  .memo-rows div {
    grid-template-columns: 1fr;
  }

  .memo-rows dd {
    font-size: 12px;
  }

  .thesis-lines p {
    grid-template-columns: 34px 1fr;
    gap: 10px;
    font-size: 25px;
  }

  .section {
    padding: 76px 0;
  }

  .paper-stage {
    margin-top: 0;
  }

  .section--thesis {
    padding-top: 78px;
  }

  .evidence-card {
    padding: 16px;
  }

  .evidence-copy h2 {
    font-size: 34px;
  }

  .evidence-stats {
    grid-template-columns: 1fr;
  }

  .start-links a {
    grid-template-columns: 38px 1fr;
    min-height: 62px;
    padding: 0 14px;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .article-content {
    padding: 28px 20px 70px;
    margin-bottom: 70px;
  }
}
