:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #aaa79e;
  --accent: #c8ff65;
  --background: #090a08;
  --panel: #11130f;
  --panel-bright: #171a13;
  --line: #34362f;
  --max: 84rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(200, 255, 101, 0.08), transparent 28rem),
    var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.site-header, main, footer { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand, footer p:first-child {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 0.75rem;
  height: 0.75rem;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 1.5rem rgba(200, 255, 101, 0.6);
}
nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
nav a:hover, nav a:focus-visible { color: var(--ink); }
.nav-github { color: var(--accent); }
.hero {
  min-height: calc(100vh - 5.5rem);
  padding: clamp(5rem, 10vw, 9rem) 0 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(19rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow span {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(200, 255, 101, 0.35);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 12ch;
  margin-bottom: 2.25rem;
  font-size: clamp(3.6rem, 7.4vw, 7.4rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}
h1 em { color: var(--accent); font-style: normal; }
.lede {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.65;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.button-primary { background: var(--accent); border-color: var(--accent); color: #10120d; }
.button-secondary { background: transparent; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.receipt {
  position: relative;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel-bright), var(--panel));
  box-shadow: 1.1rem 1.1rem 0 rgba(200, 255, 101, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.receipt::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(200,255,101,.35), transparent 35%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}
.receipt-head, .receipt dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.receipt-head {
  padding-bottom: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.live-dot { color: var(--accent); }
.live-dot::before { content: "●"; margin-right: 0.4rem; }
.receipt dl { margin: 1rem 0 0; }
.receipt dl div { padding: 0.75rem 0; border-bottom: 1px solid rgba(52,54,47,.7); }
.receipt dt { color: var(--muted); font-size: 0.68rem; }
.receipt dd { margin: 0; text-align: right; font-size: 0.68rem; }
.receipt-foot { margin: 1rem 0 0; color: var(--accent); font-size: 0.66rem; }
.proof-strip {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proof-strip p { margin: 0; color: var(--accent); }
.proof-strip ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.system, .flow, .start { padding: clamp(6rem, 10vw, 10rem) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 0.6fr 1.2fr 1fr; gap: 3rem; align-items: start; margin-bottom: 4rem; }
.section-heading.compact { grid-template-columns: 0.6fr 2.2fr; }
.section-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: 0.95; letter-spacing: -0.06em; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.7; }
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.repo-grid article {
  min-height: 25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--panel);
}
.repo-grid article:last-child { border-right: 1px solid var(--line); }
.repo-grid article.featured { background: var(--panel-bright); border-top-color: var(--accent); }
.card-index { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; }
.repo-grid h3 { margin: auto 0 1rem; font-size: 2rem; letter-spacing: -0.04em; }
.repo-grid article > p:nth-of-type(2) { min-height: 7rem; color: var(--muted); line-height: 1.6; }
.repo-grid a, .text-link { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.flow ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.flow li { padding: 2rem 1.5rem 1rem 0; border-top: 1px solid var(--line); }
.flow li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.flow li span { display: block; margin-bottom: 5rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.flow strong { display: block; margin-bottom: 0.8rem; font-size: 1.05rem; }
.flow li p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.start { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 10vw, 10rem); }
.start-copy { align-self: end; }
.start-copy > p { color: var(--muted); line-height: 1.7; }
footer {
  min-height: 8rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}
footer p { margin: 0; }
footer p:nth-child(2) { text-align: center; }
footer a { text-align: right; color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .receipt { max-width: 34rem; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 1.2rem; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-grid article { min-height: 20rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .repo-grid article:last-child { border-bottom: 1px solid var(--line); }
  .flow ol { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .start { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 2rem, var(--max)); }
  .site-header { min-height: 4.5rem; }
  nav a:not(.nav-github) { display: none; }
  h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero { padding: 4.5rem 0; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .proof-strip, .proof-strip ul { flex-direction: column; gap: 0.8rem; }
  .flow ol { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 1.5rem 0; border-left: 0; }
  .flow li span { margin-bottom: 2rem; }
  footer { grid-template-columns: 1fr; padding: 2rem 0; }
  footer p:nth-child(2), footer a { text-align: left; }
}
