:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #242424;
  --paper: #f7f7f3;
  --paper-deep: #efefe9;
  --white: #ffffff;
  --muted: #66665f;
  --line: #d9d9d1;
  --line-dark: #343434;
  --acid: #c9ff45;
  --blue: #c9dcff;
  --lavender: #ddd2ff;
  --peach: #ffd7bd;
  --max: 1240px;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #5d45ff; outline-offset: 4px; border-radius: 5px; }
::selection { background: var(--acid); color: var(--ink); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,247,243,.88);
  border-bottom: 1px solid rgba(17,17,17,.12);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .72rem; width: max-content; font-weight: 760; letter-spacing: -.025em; }
.brand-name { font-size: 1.03rem; }
.brand-symbol {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.brand-symbol span { position: absolute; display: block; background: var(--ink); border-radius: 99px; }
.brand-symbol span:first-child { width: 15px; height: 2px; left: 8px; top: 10px; transform: rotate(28deg); }
.brand-symbol span:last-child { width: 15px; height: 2px; left: 8px; bottom: 10px; transform: rotate(-28deg); }
nav { display: flex; align-items: center; gap: 1.8rem; color: #4c4c47; font-size: .9rem; font-weight: 560; }
nav a, .footer-links a { transition: color .16s ease; }
nav a:hover, .footer-links a:hover { color: #000; }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .64rem .95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 680;
  background: var(--ink);
  color: var(--white);
  transition: transform .16s ease, background .16s ease;
}
.header-cta:hover { transform: translateY(-1px); background: #2c2c2c; }

main > section, footer { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.hero {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17,17,17,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.hero-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  position: relative;
}
.kicker, .section-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .62rem;
  font-size: .72rem;
  line-height: 1;
  font-weight: 780;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #5d5d57;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #38aa57; box-shadow: 0 0 0 5px rgba(56,170,87,.12); }
h1 {
  margin: 1.35rem 0 1.6rem;
  max-width: 760px;
  font-size: clamp(4.2rem, 8vw, 8.2rem);
  line-height: .88;
  letter-spacing: -.08em;
  font-weight: 720;
}
h2 {
  margin: .9rem 0 1rem;
  font-size: clamp(2.7rem, 5.3vw, 5.7rem);
  line-height: .97;
  letter-spacing: -.065em;
  font-weight: 680;
}
h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h3 { margin: 0; letter-spacing: -.025em; }
.hero-copy { max-width: 690px; margin: 0; color: #51514c; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 2.15rem; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .8rem 1.18rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 680;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.button-dark:hover { background: #2a2a2a; }
.button-light { background: rgba(255,255,255,.55); color: var(--ink); border: 1px solid var(--line); }
.button-light:hover, .button-outline:hover { border-color: #8b8b83; background: var(--white); }
.button-outline { border: 1px solid var(--line); background: transparent; }
.hero-proof { margin-top: 3.2rem; padding-top: 1.35rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 660px; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-size: .88rem; }
.hero-proof span { margin-top: .18rem; color: var(--muted); font-size: .76rem; }

.protocol-window {
  background: #111;
  color: #fff;
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 30px 90px rgba(20,20,20,.18), 0 2px 6px rgba(0,0,0,.16);
  transform: rotate(1.15deg);
}
.window-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem .55rem 1rem; color: #9d9d95; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.window-status { color: var(--acid); }
.exchange { padding: .25rem; display: grid; gap: .62rem; }
.identity { display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; }
.identity-driver { justify-self: end; flex-direction: row-reverse; text-align: right; }
.identity-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #5a5a55; border-radius: 50%; font-size: .75rem; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: .83rem; }
.identity small { color: #8f8f89; font-size: .7rem; margin-top: .05rem; }
.event { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .75rem; padding: .88rem; border-radius: 15px; color: #1a1a19; }
.event-index { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; font-size: .65rem; font-weight: 750; }
.event strong, .event small { display: block; }
.event strong { font-size: .83rem; }
.event small { color: rgba(17,17,17,.62); font-size: .68rem; margin-top: .08rem; }
.event-state { padding: .28rem .48rem; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; font-size: .61rem; font-weight: 730; text-transform: uppercase; letter-spacing: .08em; }
.event-public { background: var(--blue); }
.event-private { background: var(--lavender); }
.event-proof { background: var(--peach); }
.event-receipt { background: var(--acid); }
.window-note { margin-top: .8rem; padding: .8rem .55rem .45rem; border-top: 1px solid #2d2d2b; color: #8c8c86; font-size: .7rem; }

.statement { padding: clamp(6rem, 10vw, 10rem) 0; }
.statement h2 { max-width: 1100px; }
.statement-grid { max-width: 900px; margin: 3.5rem 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem; color: #565650; font-size: 1.05rem; }
.statement-grid p { margin: 0; }

.principles-section, .boundaries-section, .roadmap-section, .docs-section, .status-section, .contribute-section, .sustainability-section { padding: clamp(5.5rem, 9vw, 9rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 880px; margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 660px; color: var(--muted); font-size: 1rem; }
.section-heading.compact { margin-bottom: 2rem; }
.principle-list { border-top: 1px solid var(--ink); }
.principle-list article { display: grid; grid-template-columns: 70px minmax(220px, .7fr) 1fr; gap: 2rem; align-items: baseline; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.principle-list article > span { font-size: .7rem; font-weight: 760; color: var(--muted); }
.principle-list h3 { font-size: 1.1rem; }
.principle-list p { margin: 0; color: var(--muted); }

.protocol-section {
  width: 100%;
  max-width: none;
  padding: clamp(6rem, 9vw, 9rem) max(1.25rem, calc((100vw - var(--max))/2));
  background: #111;
  color: #f5f5f1;
}
.section-heading.inverse .section-kicker { color: #a9a9a0; }
.system-map { margin-top: 3.2rem; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 1rem; align-items: center; }
.system-node { min-height: 180px; padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: 22px; display: flex; flex-direction: column; justify-content: flex-end; background: #181818; }
.system-node strong { font-size: 1.9rem; letter-spacing: -.045em; }
.system-node small { margin-top: .25rem; color: #93938d; }
.node-label, .rail-label { color: var(--acid); font-size: .67rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; }
.system-path { display: grid; justify-items: center; gap: .68rem; color: #8d8d87; font-size: .7rem; text-align: center; }
.path-line { width: 90%; height: 1px; position: relative; background: linear-gradient(90deg, transparent, #8d8d87, var(--acid)); }
.path-line i { position: absolute; right: 0; top: -3px; width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px rgba(201,255,69,.09); }
.path-line.reverse { background: linear-gradient(90deg, var(--acid), #8d8d87, transparent); }
.path-line.reverse i { right: auto; left: 0; }
.relay-cloud { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.relay-cloud span { padding: .65rem .35rem; border: 1px solid #3a3a37; border-radius: 10px; color: #cacac3; background: #171717; }
.private-rail, .proof-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid #343431; }
.private-rail strong, .proof-rail strong { font-size: 1rem; font-weight: 560; }
.architecture-notes { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.architecture-notes div { padding-top: 1rem; border-top: 1px solid #3a3a37; }
.architecture-notes span { color: var(--acid); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; }
.architecture-notes p { color: #a0a099; margin-bottom: 0; font-size: .9rem; }

.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.boundary-grid > div { min-height: 230px; padding: 1.45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.boundary-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--ink); border-radius: 50%; margin-bottom: 3rem; font-size: 1.05rem; }
.boundary-grid strong { display: block; font-size: 1.05rem; }
.boundary-grid p { color: var(--muted); margin-bottom: 0; font-size: .9rem; }

.roadmap-line { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.phase { position: relative; padding: 1.55rem 1.25rem 1.25rem 0; border-right: 1px solid var(--line); min-height: 310px; }
.phase + .phase { padding-left: 1.25rem; }
.phase::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.phase + .phase::before { left: 1.25rem; }
.phase-active::before { background: var(--acid); box-shadow: 0 0 0 7px rgba(201,255,69,.35); }
.phase > span { display: block; color: var(--muted); font-size: .68rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
.phase h3 { margin-top: 2rem; font-size: 1.3rem; }
.phase p { color: var(--muted); font-size: .9rem; }
.phase small { position: absolute; left: 0; bottom: 1.25rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .65rem; text-transform: uppercase; letter-spacing: .09em; }
.phase + .phase small { left: 1.25rem; }
.phase-active small { border-color: var(--ink); background: var(--ink); color: var(--white); }

.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.docs-grid a { display: grid; grid-template-columns: 38px 1fr auto; gap: 1rem; align-items: start; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding-left .16s ease, background .16s ease; }
.docs-grid a:nth-child(odd) { border-right: 1px solid var(--line); }
.docs-grid a:nth-child(even) { padding-left: 1rem; }
.docs-grid a:hover { padding-left: .6rem; background: rgba(255,255,255,.4); }
.docs-grid a:nth-child(even):hover { padding-left: 1.6rem; }
.docs-grid > a > span { color: var(--muted); font-size: .68rem; font-weight: 750; }
.docs-grid strong { font-size: 1rem; }
.docs-grid p { margin: .25rem 0 0; color: var(--muted); font-size: .84rem; }
.docs-grid i { font-style: normal; }

.sustainability-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); }
.sustainability-copy p:not(.section-kicker) { max-width: 620px; color: var(--muted); font-size: 1rem; }
.text-link { display: inline-flex; gap: .6rem; margin-top: 1.2rem; padding-bottom: .2rem; border-bottom: 1px solid var(--ink); font-weight: 670; }
.sustainability-model { border-top: 1px solid var(--ink); }
.sustainability-model > div { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 125px 160px 1fr; gap: 1rem; align-items: baseline; }
.sustainability-model span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.sustainability-model strong { font-size: 1rem; }
.sustainability-model p { margin: 0; color: var(--muted); font-size: .85rem; }

.status-card { padding: clamp(2rem, 5vw, 4.5rem); border-radius: 28px; background: var(--acid); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.status-card .section-kicker { color: #4b5f12; }
.status-card h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); margin-bottom: 0; }
.status-card > p { margin: 0; max-width: 600px; font-size: 1rem; }

.contribute-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.contribute-section > div > p:not(.section-kicker) { max-width: 600px; color: var(--muted); }
.contribute-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; }

footer { padding: 3rem 0 4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong, .footer-brand p { display: block; }
.footer-brand p { margin: .1rem 0 0; color: var(--muted); font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .82rem; }
.footer-status { grid-column: 1 / -1; margin: 0; color: #8b8b84; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 1020px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .protocol-window { max-width: 700px; transform: none; }
  .architecture-notes, .boundary-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-line { grid-template-columns: repeat(2, 1fr); }
  .phase:nth-child(2) { border-right: 0; }
  .phase:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sustainability-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-shell, .hero-inner, main > section, footer { width: min(calc(100% - 1.5rem), var(--max)); }
  .site-header { position: static; }
  .nav-shell { min-height: 64px; }
  .header-cta { padding: .55rem .72rem; font-size: .78rem; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 4rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  h2 { font-size: clamp(2.5rem, 13vw, 4.3rem); }
  .hero-proof { grid-template-columns: 1fr; gap: .7rem; }
  .hero-proof div { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; }
  .protocol-window { padding: .7rem; border-radius: 20px; }
  .event { grid-template-columns: 30px 1fr; }
  .event-state { grid-column: 2; justify-self: start; }
  .statement-grid, .status-card, .contribute-section { grid-template-columns: 1fr; }
  .statement-grid { margin-top: 2rem; gap: 1rem; }
  .principle-list article { grid-template-columns: 40px 1fr; gap: .8rem; }
  .principle-list article p { grid-column: 2; }
  .system-map { grid-template-columns: 1fr; }
  .system-path { padding: 1.3rem 0; }
  .path-line { width: 1px; height: 48px; background: linear-gradient(180deg, transparent, #8d8d87, var(--acid)); }
  .path-line.reverse { background: linear-gradient(180deg, var(--acid), #8d8d87, transparent); }
  .path-line i { right: -3px; top: auto; bottom: 0; }
  .path-line.reverse i { left: -3px; top: 0; }
  .relay-cloud { grid-template-columns: 1fr; }
  .private-rail, .proof-rail { grid-template-columns: 1fr; }
  .architecture-notes, .boundary-grid, .roadmap-line, .docs-grid { grid-template-columns: 1fr; }
  .boundary-grid { border-left: 0; }
  .boundary-grid > div { min-height: 190px; }
  .roadmap-line { border-top: 0; }
  .phase, .phase + .phase { border-top: 1px solid var(--ink); border-right: 0; padding-left: 0; }
  .phase::before, .phase + .phase::before { left: 0; }
  .phase small, .phase + .phase small { left: 0; }
  .docs-grid a:nth-child(odd) { border-right: 0; }
  .docs-grid a:nth-child(even) { padding-left: 0; }
  .docs-grid a:nth-child(even):hover, .docs-grid a:hover { padding-left: .5rem; }
  .sustainability-model > div { grid-template-columns: 1fr; gap: .3rem; }
  .contribute-actions { justify-content: flex-start; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
