:root {
  --ink: #06100e;
  --ink-soft: #0a1815;
  --panel: rgba(12, 29, 25, 0.78);
  --panel-solid: #0d1c19;
  --line: rgba(190, 231, 213, 0.14);
  --line-bright: rgba(147, 255, 204, 0.34);
  --paper: #edf8f2;
  --muted: #99afa6;
  --green: #64f4b3;
  --green-bright: #9affcf;
  --amber: #ffc36b;
  --danger: #ff806e;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 13%, rgba(36, 177, 117, 0.13), transparent 26rem),
    radial-gradient(circle at 18% 48%, rgba(57, 119, 91, 0.10), transparent 30rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--green);
}

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

button,
a,
video {
  -webkit-tap-highlight-color: transparent;
}

#point-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 214, 180, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 214, 180, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 15, 12, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(141, 255, 201, 0.56);
  border-radius: 8px;
  transform: rotate(45deg);
  box-shadow: inset 0 0 12px rgba(100, 244, 179, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(100, 244, 179, 0.75);
}

.brand-mark::before {
  width: 4px;
  height: 4px;
  transform: translate(-6px, 4px);
}

.brand-mark::after {
  width: 3px;
  height: 3px;
  transform: translate(6px, -4px);
}

.brand-mark span {
  width: 5px;
  height: 5px;
}

.nav-links {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a,
.back-top {
  transition: color 160ms ease;
}

.nav-links a:hover,
.back-top:hover {
  color: var(--green);
}

.nav-role {
  padding: 9px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero {
  display: grid;
  min-height: 900px;
  padding-top: 145px;
  padding-bottom: 90px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 80px;
}

.eyebrow,
.section-index {
  margin: 0 0 20px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(100, 244, 179, 0.72);
}

.hero h1,
.section-heading h2,
.builder-title h2,
.timeline-heading h2,
.stack-layout h2 {
  margin: 0;
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 6.4vw, 86px);
}

.hero-line {
  display: block;
}

.hero h1 em {
  display: block;
  color: var(--green-bright);
  font-style: normal;
  text-shadow: 0 0 34px rgba(80, 233, 165, 0.13);
}

.hero-lead {
  max-width: 670px;
  margin: 30px 0 0;
  color: #b4c8bf;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #07130f;
  background: var(--green);
  box-shadow: 0 12px 34px rgba(55, 211, 143, 0.18);
}

.button-primary:hover {
  background: var(--green-bright);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: var(--line-bright);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.hero-meta {
  display: flex;
  margin-top: 50px;
  gap: 0;
}

.hero-meta div {
  display: flex;
  min-width: 128px;
  padding-right: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.hero-meta div + div {
  padding-left: 26px;
}

.hero-meta div:last-child {
  border-right: 0;
}

.hero-meta strong {
  color: var(--paper);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-system {
  width: 100%;
  max-width: 490px;
  justify-self: end;
}

.system-panel {
  position: relative;
  min-height: 610px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(26, 60, 50, 0.72), rgba(7, 19, 16, 0.92)),
    var(--ink-soft);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
}

.system-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(111, 225, 172, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 225, 172, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.system-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(4, 12, 10, 0.8);
  pointer-events: none;
}

.panel-topline,
.panel-readout,
.stack-flow {
  position: relative;
  z-index: 3;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #88aa9b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.live-dot::before {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.radar-stage {
  position: relative;
  display: grid;
  width: min(360px, 84%);
  aspect-ratio: 1;
  margin: 52px auto 36px;
  place-items: center;
  border: 1px solid rgba(111, 246, 181, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(transparent 49.8%, rgba(101, 232, 169, 0.10) 50%, transparent 50.2%),
    linear-gradient(90deg, transparent 49.8%, rgba(101, 232, 169, 0.10) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(80, 222, 155, 0.08), transparent 68%);
  box-shadow: inset 0 0 38px rgba(45, 185, 123, 0.08);
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(110, 238, 177, 0.16);
  border-radius: 50%;
}

.ring-outer {
  inset: 10%;
}

.ring-middle {
  inset: 26%;
}

.ring-inner {
  inset: 40%;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  animation: sweep 5.6s linear infinite;
}

.radar-sweep::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  height: 48%;
  content: "";
  background: conic-gradient(from 180deg, rgba(100, 244, 179, 0.34), transparent 34%);
  transform-origin: 0 0;
}

.rover-symbol {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 112px;
  filter: drop-shadow(0 0 20px rgba(100, 244, 179, 0.26));
}

.rover-body {
  position: absolute;
  inset: 13px 12px;
  border: 1px solid var(--green-bright);
  border-radius: 13px 13px 8px 8px;
  background: rgba(61, 203, 137, 0.13);
  box-shadow: inset 0 0 20px rgba(100, 244, 179, 0.1);
}

.rover-body::before,
.rover-body::after {
  position: absolute;
  right: 9px;
  left: 9px;
  height: 1px;
  content: "";
  background: rgba(154, 255, 207, 0.5);
}

.rover-body::before {
  top: 24px;
}

.rover-body::after {
  bottom: 24px;
}

.lidar {
  position: absolute;
  z-index: 3;
  top: 39px;
  left: 34px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--green-bright);
  border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 0 0 14px rgba(100, 244, 179, 0.65);
}

.lidar::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.wheel {
  position: absolute;
  width: 11px;
  height: 30px;
  border: 1px solid rgba(154, 255, 207, 0.65);
  border-radius: 5px;
  background: rgba(4, 10, 8, 0.9);
}

.wheel-a { top: 15px; left: 0; }
.wheel-b { top: 15px; right: 0; }
.wheel-c { bottom: 15px; left: 0; }
.wheel-d { right: 0; bottom: 15px; }

.echo {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--green);
}

.echo-a { top: 21%; left: 30%; }
.echo-b { top: 32%; right: 18%; }
.echo-c { right: 29%; bottom: 18%; }
.echo-d { bottom: 28%; left: 14%; }
.echo-e { top: 12%; right: 38%; }

.stack-flow {
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: #a3bcb1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.stack-flow i {
  width: 20px;
  height: 1px;
  margin: 0 7px;
  background: linear-gradient(90deg, var(--line-bright), var(--green));
}

.panel-readout {
  display: grid;
  margin-top: 32px;
  padding: 18px 5px 0;
  grid-template-columns: 1fr auto;
  gap: 9px 20px;
  border-top: 1px solid var(--line);
  color: #789589;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.panel-readout b {
  color: var(--green);
  font-weight: 650;
}

.panel-caption {
  display: flex;
  margin: 14px 4px 0;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.panel-caption span {
  color: var(--green);
  font-family: ui-monospace, monospace;
}

.section {
  position: relative;
  padding: 135px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 66px;
}

.section-heading h2,
.builder-title h2,
.timeline-heading h2 {
  font-size: clamp(40px, 5vw, 64px);
}

.section-heading > p:last-child,
.split-heading > p,
.builder-title p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.demo-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 45%, rgba(70, 233, 159, 0.09), transparent 26rem),
    rgba(7, 19, 16, 0.68);
}

.demo-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 105px;
}

.video-card {
  position: relative;
  max-width: 430px;
  padding: 12px;
  border: 1px solid var(--line-bright);
  border-radius: 38px;
  background: rgba(14, 35, 29, 0.72);
  box-shadow: var(--shadow), 0 0 0 9px rgba(100, 244, 179, 0.025);
}

.video-card::before {
  position: absolute;
  top: 50%;
  left: -80px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(100, 244, 179, 0.12);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 432 / 960;
  border-radius: 28px;
  background: #020706;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-corner {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(232, 255, 245, 0.28);
  border-radius: 5px;
  color: rgba(240, 255, 248, 0.82);
  background: rgba(2, 8, 6, 0.58);
  backdrop-filter: blur(8px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.video-corner.top-left { top: 16px; left: 16px; }
.video-corner.bottom-right { right: 16px; bottom: 50px; }

.demo-copy {
  max-width: 630px;
}

.demo-copy h3,
.evidence-summary h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.demo-copy > p:not(.section-index, .demo-note),
.evidence-summary > p:not(.section-index) {
  margin: 26px 0 0;
  color: #aec3b9;
  font-size: 17px;
  line-height: 1.9;
}

.demo-facts {
  display: grid;
  margin: 40px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-facts div {
  padding: 21px 18px 21px 0;
}

.demo-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.demo-facts dt {
  margin-bottom: 7px;
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.demo-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.demo-note {
  margin: 25px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  color: #829b90;
  font-size: 13px;
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
}

.split-heading > p {
  margin-bottom: 8px;
}

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

.capability-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(18, 39, 33, 0.78), rgba(8, 20, 17, 0.72));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.capability-card:hover {
  border-color: var(--line-bright);
  background: linear-gradient(155deg, rgba(22, 53, 43, 0.88), rgba(8, 20, 17, 0.8));
  transform: translateY(-4px);
}

.card-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #526d61;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.card-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 4px 0 46px;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  background: rgba(100, 244, 179, 0.045);
}

.card-icon::before,
.card-icon::after {
  position: absolute;
  content: "";
}

.lidar-icon::before {
  inset: 12px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(100, 244, 179, 0.06);
}

.lidar-icon::after {
  top: 26px;
  left: 26px;
  width: 18px;
  height: 1px;
  background: var(--green);
  transform: rotate(-35deg);
  transform-origin: left;
}

.map-icon::before {
  inset: 12px;
  background-image:
    linear-gradient(var(--line-bright) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-bright) 1px, transparent 1px);
  background-size: 9px 9px;
}

.map-icon::after {
  top: 19px;
  left: 26px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 9px 9px var(--amber), -9px 9px rgba(100, 244, 179, 0.48);
}

.dynamic-icon::before {
  top: 14px;
  left: 13px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 17px 13px 0 -2px var(--amber);
}

.dynamic-icon::after {
  right: 11px;
  bottom: 13px;
  width: 22px;
  height: 1px;
  background: var(--green);
  transform: rotate(29deg);
}

.human-icon::before {
  top: 11px;
  left: 20px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.human-icon::after {
  right: 13px;
  bottom: 10px;
  left: 13px;
  height: 16px;
  border: 1px solid var(--green);
  border-radius: 14px 14px 5px 5px;
}

.plan-icon::before {
  top: 13px;
  left: 13px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 21px 21px 0 -1px var(--amber);
}

.plan-icon::after {
  top: 21px;
  left: 19px;
  width: 22px;
  height: 14px;
  border-top: 1px dashed var(--green);
  border-right: 1px dashed var(--green);
  transform: skewX(-24deg) rotate(13deg);
}

.drive-icon::before {
  inset: 15px 10px;
  border: 1px solid var(--green);
  border-radius: 5px;
}

.drive-icon::after {
  top: 20px;
  left: 6px;
  width: 6px;
  height: 15px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 36px 0 var(--green), 0 12px var(--green), 36px 12px var(--green);
}

.capability-card h3,
.principle h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.capability-card p,
.principle p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.capability-card small {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: #688176;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.11em;
}

.evidence-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 15%, rgba(104, 246, 181, 0.09), transparent 28rem),
    rgba(4, 14, 11, 0.72);
}

.builder-banner {
  margin-bottom: 64px;
}

.builder-title {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.9fr;
  gap: 85px;
}

.builder-title p {
  margin-bottom: 7px;
  line-height: 1.85;
}

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

.evidence-card {
  display: flex;
  min-height: 230px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 31, 26, 0.62);
}

.evidence-accent {
  color: #07120e;
  border-color: transparent;
  background: var(--green);
}

.metric-value {
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-label {
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.evidence-accent .metric-label {
  color: #153d2c;
}

.evidence-card p {
  margin: auto 0 0;
  color: #829b90;
  font-size: 12px;
  line-height: 1.7;
}

.evidence-accent p {
  color: #28533f;
}

.activity-layout {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 14px;
}

.activity-card,
.evidence-summary {
  min-height: 390px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 25, 20, 0.68);
}

.activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.activity-heading h3 {
  margin: 0;
  font-size: 26px;
}

.heat-legend {
  display: flex;
  margin-top: 4px;
  align-items: center;
  gap: 4px;
  color: #6d887c;
  font-size: 9px;
}

.heat-legend i,
.commit-cell {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(130, 188, 160, 0.09);
  border-radius: 3px;
  background: rgba(110, 160, 137, 0.08);
}

.heat-legend i[data-level="1"],
.commit-cell[data-level="1"] { background: #174a36; }
.heat-legend i[data-level="2"],
.commit-cell[data-level="2"] { background: #21815a; }
.heat-legend i[data-level="3"],
.commit-cell[data-level="3"] { background: #35bd7e; }
.heat-legend i[data-level="4"],
.commit-cell[data-level="4"] {
  border-color: rgba(154, 255, 207, 0.44);
  background: var(--green);
  box-shadow: 0 0 8px rgba(100, 244, 179, 0.16);
}

.heatmap-wrap {
  margin-top: 54px;
}

.heatmap-months {
  display: grid;
  margin-left: 47px;
  margin-bottom: 10px;
  grid-template-columns: 1fr 3fr 0.8fr;
  color: #597368;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.heatmap-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.weekday-labels {
  display: grid;
  width: 35px;
  height: 122px;
  align-items: center;
  color: #4f6b5f;
  font-family: ui-monospace, monospace;
  font-size: 7px;
}

.commit-heatmap {
  display: grid;
  height: 122px;
  grid-auto-columns: 14px;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 14px);
  gap: 4px;
}

.commit-cell {
  cursor: crosshair;
  transition: transform 120ms ease, border-color 120ms ease;
}

.commit-cell:hover,
.commit-cell:focus-visible {
  z-index: 2;
  border-color: var(--paper);
  outline: none;
  transform: scale(1.35);
}

.commit-cell.is-empty {
  visibility: hidden;
}

.heatmap-caption {
  margin: 26px 0 0 47px;
  color: #698278;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.evidence-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(24, 58, 47, 0.75), rgba(8, 21, 17, 0.78));
}

.evidence-summary h3 {
  font-size: clamp(30px, 3.1vw, 43px);
}

.evidence-summary > p:not(.section-index) {
  font-size: 14px;
}

.proof-chain {
  display: flex;
  margin-top: 36px;
  align-items: center;
  color: #91aa9e;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.proof-chain i {
  width: 18px;
  height: 1px;
  margin: 0 6px;
  background: var(--green);
}

.timeline-heading {
  margin: 135px 0 60px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 148px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--green), rgba(100, 244, 179, 0.08));
}

.timeline-item {
  position: relative;
  display: grid;
  min-height: 138px;
  padding: 18px 0 38px;
  grid-template-columns: 120px 1fr auto;
  gap: 56px;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 143px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 15px rgba(100, 244, 179, 0.42);
}

.timeline-date,
.timeline-hash {
  color: #648073;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.timeline-date {
  padding-top: 2px;
}

.timeline-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
}

.timeline-content p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline-hash {
  padding-top: 2px;
  color: var(--green);
}

.engineering-section {
  border-top: 1px solid var(--line);
  background: rgba(9, 23, 19, 0.48);
}

.engineering-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.engineering-layout .section-heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 23, 19, 0.72);
}

.principle > span {
  display: block;
  margin-bottom: 25px;
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.stack-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.stack-layout {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 85px;
}

.stack-layout h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stack-tags span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a2b8ae;
  background: rgba(255, 255, 255, 0.018);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #040c0a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: #6f887d;
  font-size: 11px;
}

.footer-inner p strong {
  color: #a5bcb1;
}

.back-top {
  color: var(--green);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    padding-top: 155px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-system {
    max-width: 560px;
    justify-self: center;
  }

  .system-panel {
    min-height: 570px;
  }

  .demo-layout {
    gap: 65px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .activity-layout,
  .engineering-layout {
    grid-template-columns: 1fr;
  }

  .engineering-layout .section-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 30px, 620px);
  }

  .site-header {
    background: rgba(5, 15, 12, 0.78);
    backdrop-filter: blur(18px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .nav-role {
    padding: 7px 10px;
    font-size: 9px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    gap: 60px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .hero-line {
    font-size: 0.9em;
    white-space: nowrap;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta div,
  .hero-meta div + div {
    min-width: 0;
    padding: 0 12px;
  }

  .hero-meta div:first-child {
    padding-left: 0;
  }

  .hero-meta strong {
    font-size: 17px;
  }

  .system-panel {
    min-height: 500px;
    padding: 18px;
    border-radius: 26px;
  }

  .radar-stage {
    margin-top: 42px;
  }

  .stack-flow {
    font-size: 7px;
  }

  .stack-flow i {
    width: 9px;
    margin-inline: 4px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading h2,
  .builder-title h2,
  .timeline-heading h2 {
    font-size: clamp(37px, 10vw, 52px);
  }

  .demo-layout,
  .split-heading,
  .builder-title,
  .stack-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .video-card {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .demo-copy {
    order: -1;
  }

  .demo-facts {
    grid-template-columns: 1fr;
  }

  .demo-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .capability-card {
    min-height: 300px;
  }

  .activity-card,
  .evidence-summary {
    min-height: auto;
    padding: 25px;
  }

  .activity-heading {
    flex-direction: column;
  }

  .heatmap-wrap {
    margin-top: 36px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .heatmap-months,
  .heatmap-body {
    width: 335px;
  }

  .proof-chain {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    white-space: normal;
  }

  .proof-chain i {
    width: 1px;
    height: 10px;
    margin: 0 0 0 4px;
  }

  .timeline-heading {
    margin-top: 95px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-item {
    padding-left: 32px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item::before {
    top: 25px;
    left: 0;
  }

  .timeline-hash {
    position: absolute;
    top: 18px;
    right: 0;
  }

  .engineering-layout {
    gap: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
