:root {
  --background: #080b10;
  --background-elevated: #0d1118;
  --surface: #111720;
  --surface-strong: #171f2a;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --text: #f4f7f6;
  --text-secondary: #aab4bd;
  --text-tertiary: #737e88;
  --mint: #7ce7c5;
  --mint-strong: #5bdab3;
  --mint-soft: rgba(124, 231, 197, 0.11);
  --blue: #73a7ff;
  --blue-soft: rgba(115, 167, 255, 0.11);
  --amber: #f4c66c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.36);
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --shell: 1120px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    var(--background);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.1), var(--background) 62%);
  content: "";
  pointer-events: none;
}

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

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

button {
  color: inherit;
  font: inherit;
}

code {
  font-family: var(--font-mono);
}

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

.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 {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--mint);
  color: #07100d;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-a {
  top: -320px;
  left: 44%;
  width: 720px;
  height: 620px;
  background: radial-gradient(circle, rgba(79, 137, 234, 0.17), transparent 69%);
}

.ambient-b {
  top: 180px;
  right: 48%;
  width: 600px;
  height: 560px;
  background: radial-gradient(circle, rgba(75, 221, 178, 0.1), transparent 70%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
}

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

.site-nav a,
.site-footer nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 540;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  display: grid;
  min-height: 720px;
  padding-block: 112px 104px;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.05fr);
  gap: 72px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(124, 231, 197, 0.2);
  border-radius: 999px;
  background: var(--mint-soft);
}

.pulse {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(124, 231, 197, 0.1);
}

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

h1 {
  max-width: 700px;
  margin: 24px 0 24px;
  font-size: clamp(52px, 6.2vw, 82px);
  font-weight: 640;
  letter-spacing: -0.064em;
  line-height: 0.98;
}

h1 em {
  color: var(--mint);
  font-style: normal;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.07;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 680;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

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

.button:focus-visible,
.text-link:focus-visible,
.contract-grid a:focus-visible,
.install-command button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.button.primary {
  background: var(--mint);
  color: #07100d;
  box-shadow: 0 12px 38px rgba(75, 221, 178, 0.13);
}

.button.primary:hover {
  background: var(--mint-strong);
}

.button.secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.evidence-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  background: rgba(13, 17, 24, 0.9);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
  display: grid;
  min-height: 46px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  grid-template-columns: 1fr auto 1fr;
}

.window-bar > :last-child {
  justify-self: end;
  color: var(--mint);
  text-transform: uppercase;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #303946;
}

.command-line {
  display: flex;
  padding: 24px 24px 22px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  font-size: 13px;
}

.prompt {
  color: var(--mint);
  font-family: var(--font-mono);
}

.pipeline {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
}

.pipeline li {
  position: relative;
  display: grid;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-tertiary);
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
}

.pipeline li:last-child {
  border-bottom: 0;
}

.pipeline li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 2px;
  background: transparent;
  content: "";
}

.pipeline li.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 24px rgba(115, 167, 255, 0.6);
}

.pipeline li.is-complete,
.pipeline li.is-active {
  color: var(--text);
}

.step-index,
.step-state,
.pipeline small {
  font-family: var(--font-mono);
  font-size: 10px;
}

.step-index {
  color: var(--text-tertiary);
}

.pipeline strong,
.pipeline small {
  display: block;
}

.pipeline strong {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.pipeline small {
  color: var(--text-tertiary);
}

.step-state {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-tertiary);
}

.is-complete .step-state {
  border-color: rgba(124, 231, 197, 0.18);
  background: var(--mint-soft);
  color: var(--mint);
}

.is-active .step-state {
  border-color: rgba(115, 167, 255, 0.2);
  background: var(--blue-soft);
  color: #a9c9ff;
  animation: verify-pulse 2.2s ease-in-out infinite;
}

.evidence-footer {
  display: flex;
  min-height: 48px;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: rgba(124, 231, 197, 0.025);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
}

.evidence-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evidence-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.signal-strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.016);
}

.signal-grid {
  display: grid;
  min-height: 92px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.signal-grid p {
  margin: 0;
  padding: 8px 28px;
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.signal-grid p:first-child {
  padding-left: 0;
}

.signal-grid p:last-child {
  border-right: 0;
}

.signal-grid span,
.card-number {
  margin-right: 12px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.section {
  padding-block: 128px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading.compact {
  max-width: 650px;
  margin-bottom: 48px;
}

.section-heading .kicker,
.safety-copy .kicker,
.start-panel .kicker {
  margin-bottom: 18px;
}

.section-heading > p:last-child,
.safety-copy > p,
.start-panel > div:first-child > p:last-child {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 17px;
}

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

.feature-card {
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background:
    radial-gradient(circle at 95% 5%, rgba(115, 167, 255, 0.07), transparent 40%),
    var(--surface-soft);
}

.feature-card.feature-wide {
  display: grid;
  min-height: 360px;
  align-items: center;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
}

.feature-card p {
  max-width: 530px;
  color: var(--text-secondary);
  font-size: 15px;
}

.mini-map {
  display: flex;
  min-height: 230px;
  padding: 30px;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--background-elevated);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mini-map span {
  position: relative;
}

.mini-map .folder {
  color: var(--mint);
}

.mini-map .branch {
  position: absolute;
  width: 1px;
  height: 112px;
  margin: 32px 0 0 8px;
  background: var(--border-strong);
}

.mini-map .file {
  margin-left: 34px;
}

.mini-map .file::before {
  position: absolute;
  top: 50%;
  left: -26px;
  width: 18px;
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.mini-map .dim {
  color: var(--text-tertiary);
}

.hash-pair {
  display: grid;
  margin-top: 68px;
  padding: 18px;
  align-items: center;
  border: 1px solid rgba(124, 231, 197, 0.14);
  border-radius: var(--radius-small);
  background: rgba(124, 231, 197, 0.04);
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  color: var(--mint);
  font-size: 11px;
  text-align: center;
}

.hash-pair span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #07100d;
  font-weight: 800;
}

.artifact-stack {
  position: relative;
  min-height: 146px;
  margin-top: 44px;
}

.artifact-stack span {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  height: 68px;
  padding: 0 22px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.artifact-stack span:nth-child(1) {
  top: 0;
  transform: scale(0.9);
  opacity: 0.45;
}

.artifact-stack span:nth-child(2) {
  top: 26px;
  transform: scale(0.95);
  opacity: 0.7;
}

.artifact-stack span:nth-child(3) {
  top: 58px;
  color: var(--text);
}

.safety-section {
  padding-top: 24px;
}

.safety-panel {
  display: grid;
  padding: 68px;
  border: 1px solid rgba(124, 231, 197, 0.13);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 231, 197, 0.08), transparent 38%),
    var(--background-elevated);
  grid-template-columns: 0.85fr 1.15fr;
  gap: 76px;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 650;
}

.boundary {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(0, 0, 0, 0.16);
}

.boundary > div:not(.boundary-line) {
  padding: 24px 28px;
}

.boundary p {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.boundary li {
  color: var(--text-secondary);
  font-size: 12px;
}

.boundary li span {
  margin-right: 5px;
  color: var(--mint);
}

.boundary-line {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 13px);
}

.boundary-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 3px 8px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 198, 108, 0.24);
  border-radius: 999px;
  background: var(--background-elevated);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boundary-locked {
  opacity: 0.55;
}

.boundary-locked li span {
  color: var(--text-tertiary);
}

.contracts-section {
  padding-top: 32px;
}

.contract-grid {
  display: grid;
  border-top: 1px solid var(--border);
}

.contract-grid a {
  display: grid;
  min-height: 92px;
  padding: 0 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 0.8fr 1fr auto;
  gap: 20px;
  transition: background 160ms ease;
}

.contract-grid a:hover {
  background: rgba(255, 255, 255, 0.022);
}

.contract-grid span {
  font-size: 15px;
  font-weight: 620;
}

.contract-grid code {
  color: var(--text-tertiary);
  font-size: 12px;
}

.contract-grid i {
  color: var(--mint);
  font-style: normal;
}

.start-section {
  padding-top: 24px;
}

.start-panel {
  position: relative;
  padding: 72px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 90% 10%, rgba(115, 167, 255, 0.16), transparent 38%),
    radial-gradient(circle at 10% 100%, rgba(124, 231, 197, 0.12), transparent 38%),
    var(--surface);
}

.start-panel > div:first-child {
  max-width: 700px;
}

.install-command {
  display: flex;
  max-width: 680px;
  min-height: 62px;
  margin: 34px 0 20px;
  padding: 0 10px 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.22);
}

.install-command code {
  overflow-x: auto;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.install-command button {
  min-width: 76px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  min-height: 220px;
  padding-block: 56px;
  align-items: start;
  grid-template-columns: 1fr auto;
  gap: 28px 60px;
}

.footer-grid > div > p,
.credit {
  margin: 12px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

.credit {
  grid-column: 1 / -1;
}

.credit a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

@keyframes verify-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(115, 167, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(115, 167, 255, 0.055);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-block: 88px 100px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .evidence-window {
    width: min(100%, 650px);
    transform: none;
  }

  .safety-panel {
    padding: 54px;
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 58px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-medium);
    background: rgba(13, 17, 24, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .site-nav a:hover {
    background: var(--surface-soft);
  }

  .hero {
    padding-block: 72px 80px;
    gap: 52px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .evidence-window {
    border-radius: 14px;
  }

  .window-bar {
    grid-template-columns: 1fr auto;
  }

  .window-bar > :nth-child(2) {
    display: none;
  }

  .pipeline {
    padding-inline: 16px;
  }

  .pipeline li::before {
    left: -16px;
  }

  .step-state {
    display: none;
  }

  .pipeline li {
    grid-template-columns: 34px 1fr;
  }

  .signal-grid {
    padding-block: 18px;
    grid-template-columns: 1fr;
  }

  .signal-grid p,
  .signal-grid p:first-child {
    padding: 10px 0;
    border-right: 0;
  }

  .section {
    padding-block: 88px;
  }

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

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

  .feature-card.feature-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-card {
    min-height: 360px;
    padding: 28px;
  }

  .safety-panel,
  .start-panel {
    padding: 34px 26px;
    border-radius: var(--radius-medium);
  }

  .boundary ul {
    grid-template-columns: 1fr;
  }

  .contract-grid a {
    min-height: 104px;
    grid-template-columns: 1fr auto;
  }

  .contract-grid code {
    grid-row: 2;
  }

  .contract-grid i {
    grid-row: 1 / 3;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }

  .credit {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    line-height: 1.55;
  }

  .hash-pair {
    grid-template-columns: 1fr;
  }

  .hash-pair span {
    margin-inline: auto;
  }

  .install-command {
    padding-left: 14px;
  }

  .install-command code {
    font-size: 11px;
  }

  .install-command button {
    min-width: 64px;
  }
}

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

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