:root {
  color-scheme: dark;
  --bg: #090b0d;
  --panel: #101316;
  --panel-strong: #15191d;
  --line: #282e33;
  --line-bright: #3a4249;
  --text: #f1f4ee;
  --muted: #9aa29d;
  --dim: #69716c;
  --acid: #b9f227;
  --acid-soft: rgba(185, 242, 39, 0.12);
  --blue: #70b7ff;
  --amber: #f6bd61;
  --red: #ff8274;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 0%, rgba(185, 242, 39, 0.05), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; }

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

code {
  color: #d8e6d0;
  font-size: 0.9em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--acid);
  color: #0a0c0d;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.8rem max(1.25rem, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(58, 66, 73, 0.7);
  background: rgba(9, 11, 13, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

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

.brand strong {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: -0.1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-family: var(--mono);
  font-size: 0.75rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-bright);
}

.hero,
.section,
footer {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.86fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding-block: 6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 1rem rgba(185, 242, 39, 0.8);
}

h1, h2, h3, p { text-wrap: pretty; }

.hero > *,
.split-heading > *,
.quickstart-section > * {
  min-width: 0;
}

.lede,
.plain-language,
.section-heading p,
.trust-strip p {
  overflow-wrap: anywhere;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(4.2rem, 8vw, 7.7rem); }
h1 span { color: var(--acid); }
h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }

h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 43rem;
  margin: 2rem 0 0;
  color: #c0c7c1;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-bright);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #0a0c0d;
}

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

.button-secondary:hover,
.button-secondary:focus-visible { border-color: var(--text); }

.plain-language {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.turn-card {
  border: 1px solid var(--line-bright);
  background: linear-gradient(145deg, rgba(21, 25, 29, 0.96), rgba(11, 13, 15, 0.96));
  box-shadow: 1.3rem 1.3rem 0 rgba(185, 242, 39, 0.035);
}

.turn-card-header {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.live-label { color: var(--acid); }

.turn-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.turn-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  padding: 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
}

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

.turn-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  bottom: -0.27rem;
  left: 2.2rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid var(--acid);
  border-bottom: 1px solid var(--acid);
  background: var(--panel);
  content: "";
  transform: rotate(45deg);
}

.step-number {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.turn-flow strong,
.turn-flow small { display: block; }

.turn-flow strong { font-size: 0.92rem; }

.turn-flow small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 51rem; }

.section-heading > p:last-child {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.architecture {
  width: min(43rem, 100%);
  margin: 5rem auto;
  text-align: center;
}

.arch-node {
  padding: 1.3rem 1rem;
  border: 1px solid var(--line-bright);
  background: var(--panel);
}

.arch-node span,
.arch-node strong,
.arch-node small { display: block; }

.arch-node span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.arch-node strong {
  margin-top: 0.3rem;
  font-size: 0.96rem;
}

.arch-node small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.arch-entry { width: min(20rem, 100%); margin-inline: auto; }
.arch-adapter { border-color: var(--acid); background: var(--acid-soft); }
.arch-ledger { border-color: #738344; }

.arch-arrow,
.arch-split,
.arch-merge {
  color: var(--acid);
  font-family: var(--mono);
}

.arch-arrow { padding: 0.45rem; }
.arch-split,
.arch-merge { display: flex; justify-content: space-around; padding: 0.25rem 18%; }
.arch-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

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

.truth-grid article { padding: 2rem; border-right: 1px solid var(--line); }
.truth-grid article:last-child { border-right: 0; }

.truth-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.truth-keep { color: var(--blue); }
.truth-add { color: var(--acid); }
.truth-not { color: var(--amber); }

.truth-grid ul {
  margin: 1.25rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.84rem;
}

.truth-grid li { padding: 0.45rem 0; border-bottom: 1px solid rgba(40, 46, 51, 0.65); }

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 4rem;
  align-items: end;
}

.split-heading > p:last-child { margin: 0; }

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guarantee-card {
  min-height: 16rem;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 22, 0.65);
}

.card-index {
  display: block;
  margin-bottom: 3rem;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.guarantee-card p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.viewer-frame {
  margin: 4rem 0 0;
  border: 1px solid var(--line-bright);
  background: #07090a;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.45);
}

.viewer-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.viewer-frame figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-align: center;
}

.quickstart-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(28rem, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.quickstart-section h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); }

.quickstart-section p:not(.eyebrow) { color: var(--muted); }

.quick-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.quick-links a {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.quick-links a:hover { color: var(--acid); }

.terminal { border: 1px solid var(--line-bright); background: #050607; }

.terminal-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line-bright); }
.terminal-bar span:first-child { background: var(--red); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--acid); }
.terminal-bar small { margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 0.62rem; }

.terminal pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  color: #d6ddd7;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  line-height: 1.8;
}

.prompt { color: var(--acid); }
.comment { color: #69746c; }

.trust-strip {
  display: grid;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto 8rem;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #664c28;
  background: rgba(246, 189, 97, 0.06);
}

.trust-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
}

.trust-strip h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.trust-strip p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

footer p { text-align: center; }
footer > a { font-family: var(--mono); text-decoration: none; }
footer > a:hover { color: var(--acid); }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .turn-card { max-width: 38rem; }
  .truth-grid, .guarantee-grid { grid-template-columns: 1fr 1fr; }
  .truth-grid article:nth-child(2) { border-right: 0; }
  .truth-grid article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .split-heading, .quickstart-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-heading > p:last-child { max-width: 38rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
}

@media (max-width: 580px) {
  .site-header { min-height: 4.5rem; }
  .brand small { display: none; }
  .hero, .section, footer, .trust-strip { width: min(100% - 1.5rem, 1240px); }
  .hero { padding-block: 4.5rem; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .arch-columns, .truth-grid, .guarantee-grid { grid-template-columns: 1fr; }
  .arch-split, .arch-merge { display: none; }
  .arch-columns { gap: 0.5rem; margin-block: 0.5rem; }
  .truth-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-grid article:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .guarantee-card { min-height: auto; }
  .card-index { margin-bottom: 1.5rem; }
  .quickstart-section { grid-template-columns: minmax(0, 1fr); }
  .terminal pre { font-size: 0.65rem; }
}

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