:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-warm: #f5f1e8;
  --ink: #151515;
  --muted: #625c55;
  --blue: #1f52aa;
  --yellow: #d2a432;
  --red: #c53a2e;
  --line: rgba(21, 21, 21, 0.16);
  --line-strong: rgba(21, 21, 21, 0.78);
  --shadow: 0 1.6rem 4rem rgba(21, 21, 21, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 0.55rem; box-shadow: 0 0.3rem 0.8rem rgba(21, 21, 21, 0.15); }
nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.35rem); }
nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: min(76rem, calc(100% - 2.5rem));
  min-height: min(48rem, calc(100vh - 4.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) 0 clamp(5rem, 9vh, 8rem);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.02; }
h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  letter-spacing: -0.07em;
}
.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.58;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.feature-pills li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.8);
  font-size: 0.87rem;
  font-weight: 700;
}
.availability { max-width: 37rem; }
.launch-card {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 6.4rem;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 1.35rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.launch-card:hover {
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 2rem 4.5rem rgba(21, 21, 21, 0.18);
}
.launch-card img { width: 4.25rem; border-radius: 1rem; }
.launch-copy { display: grid; gap: 0.1rem; }
.launch-kicker { color: #d2a432; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.launch-copy strong { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.025em; }
.launch-meta { color: rgba(255, 253, 247, 0.62); font-size: 0.78rem; }
.launch-arrow { font-size: 1.65rem; font-weight: 750; }
.coming-soon { margin: 1rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--yellow); color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.coming-soon strong { color: var(--ink); }

.hero-visual {
  position: relative;
  min-height: clamp(29rem, 48vw, 38rem);
  isolation: isolate;
}
.visual-grid {
  position: absolute;
  inset: 5% -8% 0;
  z-index: -3;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(21, 21, 21, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.07) 1px, transparent 1px),
    rgba(245, 241, 232, 0.72);
  background-size: 42px 42px;
  transform: rotate(2deg);
}
.color-block { position: absolute; z-index: -2; }
.color-block-blue { top: 0; right: -5%; width: 34%; aspect-ratio: 1; border-radius: 50% 0 0 50%; background: var(--blue); }
.color-block-yellow { left: -7%; bottom: 2%; width: 31%; aspect-ratio: 1; background: var(--yellow); }
.color-block-red { right: 4%; bottom: -3%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.paper {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 1.25rem 2.75rem rgba(21, 21, 21, 0.14);
}
.paper::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 4.5rem;
  aspect-ratio: 1;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.paper-back { top: 19%; right: 0; width: 61%; height: 49%; transform: rotate(7deg); opacity: 0.82; }
.paper-front { top: 29%; left: 0; width: 68%; height: 52%; transform: rotate(-5deg); }
.paper-label { margin-bottom: 2rem; color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 750; }
.paper-front strong { max-width: 9ch; margin-bottom: auto; font-size: clamp(1.7rem, 3.5vw, 2.8rem); letter-spacing: -0.05em; }
.markdown-mark { color: var(--red); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1.4rem; font-weight: 850; }
.paper-line { display: block; width: 100%; height: 0.7rem; margin-top: 0.75rem; border-radius: 999px; background: rgba(21, 21, 21, 0.14); }
.paper-line-medium { width: 72%; }
.paper-line-short { width: 43%; }
.hero-icon {
  position: absolute;
  top: 3%;
  left: 10%;
  width: clamp(8rem, 17vw, 13rem);
  border-radius: 22%;
  filter: drop-shadow(0 1.4rem 1.5rem rgba(21, 21, 21, 0.24));
  transform: rotate(-3deg);
}
.hero-badge {
  position: absolute;
  right: 10%;
  bottom: 9%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: 0 0.75rem 2rem rgba(21, 21, 21, 0.15);
}

.principles {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 8rem;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -1.4rem; }
.section-heading h2, .trust h2, .closing h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
}
.section-heading > p:last-child { margin: 0 0 0.3rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.principle-card {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--ink);
  border-radius: 1.6rem;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 1.25rem 3rem rgba(21, 21, 21, 0.07);
}
.principle-card-local { background: var(--blue); color: white; }
.principle-card-clients { grid-column: 1 / -1; min-height: 22rem; background: var(--ink); color: var(--paper); }
.card-copy { max-width: 33rem; }
.card-number { margin: 0 0 3rem; color: var(--red); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 850; }
.principle-card-local .card-number { color: #ffe073; }
.principle-card-clients .card-number { color: var(--yellow); }
.principle-card h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.055em; }
.principle-card p:not(.card-number) { color: var(--muted); line-height: 1.65; }
.principle-card-local p:not(.card-number), .principle-card-clients p:not(.card-number) { color: rgba(255, 255, 255, 0.72); }
code { padding: 0.12em 0.3em; border-radius: 0.35em; background: rgba(21, 21, 21, 0.08); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
.file-tree {
  position: absolute;
  right: -1rem;
  bottom: -0.5rem;
  display: grid;
  gap: 0.55rem;
  width: min(92%, 31rem);
  padding: 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 1.1rem 0 0 0;
  background: var(--paper-warm);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  box-shadow: -1rem -1rem 0 var(--yellow);
}
.sync-path { position: absolute; right: 1.5rem; bottom: 2rem; left: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.sync-node { display: grid; place-items: center; min-height: 4.2rem; padding: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.62); border-radius: 1rem; background: rgba(255, 255, 255, 0.08); font-size: 0.76rem; font-weight: 750; text-align: center; }
.sync-node-core { border-color: #ffe073; color: #ffe073; }
.sync-connector { color: rgba(255, 255, 255, 0.6); font-size: 1.35rem; }
.client-row { position: absolute; right: 2rem; bottom: 2rem; left: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 253, 247, 0.3); border-radius: 1.1rem; overflow: hidden; }
.client-row span { display: grid; gap: 0.3rem; padding: 1.2rem; border-right: 1px solid rgba(255, 253, 247, 0.24); }
.client-row span:last-child { border-right: 0; }
.client-row b { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.85rem; letter-spacing: 0.1em; }
.client-row small { color: rgba(255, 253, 247, 0.55); }

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto 8rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--ink);
  border-radius: 1.75rem;
  background: var(--paper-warm);
  box-shadow: 0.9rem 0.9rem 0 var(--red);
}
.trust-copy { color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.trust-copy p { margin-top: 0; }
.trust-copy ul { display: grid; gap: 0.55rem; padding-left: 1.2rem; }
.text-link { display: inline-block; margin-top: 0.7rem; color: var(--ink); font-weight: 800; text-decoration: none; }

.closing {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto 7rem;
  text-align: center;
}
.closing img { border-radius: 1.35rem; box-shadow: 0 1rem 2rem rgba(21, 21, 21, 0.16); }
.closing .eyebrow { margin-top: 1.5rem; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}
.primary-button:hover { background: var(--blue); color: white; }

.document-shell { width: min(52rem, calc(100% - 2rem)); margin: 3rem auto 6rem; }
.document {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--ink);
  border-radius: 1.6rem;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
  line-height: 1.72;
}
.document h1 { max-width: none; margin-bottom: 1rem; font-size: clamp(2.8rem, 7vw, 5rem); }
.document h2 { margin: 2.6rem 0 0.5rem; color: var(--blue); font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.035em; }
.document p, .document li { color: #4f4a44; }
.document-lede { color: var(--ink) !important; font-size: 1.16rem; line-height: 1.65; }
.effective { color: var(--muted) !important; }
.document-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
footer p { margin: 0; }
footer div { display: flex; gap: 1rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.5rem; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .feature-pills { justify-content: center; }
  .hero-visual { width: min(34rem, 100%); min-height: 31rem; margin: 0 auto; }
  .section-heading, .trust { grid-template-columns: 1fr; text-align: center; }
  .section-heading .eyebrow { margin-bottom: -0.7rem; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card-clients { grid-column: auto; min-height: 28rem; }
  .client-row { grid-template-columns: repeat(2, 1fr); }
  .client-row span:nth-child(2) { border-right: 0; }
  .client-row span:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 253, 247, 0.24); }
  .trust-copy { text-align: left; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem 0.75rem; font-size: 0.85rem; }
  nav a:first-child { flex-basis: 100%; text-align: right; }
  .hero { width: min(100% - 1.5rem, 76rem); }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .launch-card { grid-template-columns: 3.6rem 1fr; text-align: left; }
  .launch-card img { width: 3.6rem; border-radius: 0.85rem; }
  .launch-arrow { display: none; }
  .hero-visual { min-height: 26rem; }
  .hero-icon { left: 3%; width: 7rem; }
  .paper { padding: 1.25rem; }
  .paper-front strong { font-size: 1.55rem; }
  .hero-badge { right: 3%; font-size: 0.65rem; }
  .principles, .trust { width: min(100% - 1.5rem, 76rem); }
  .principle-card { min-height: 31rem; }
  .principle-card-clients { min-height: 32rem; }
  .sync-path { flex-direction: column; }
  .sync-connector { transform: rotate(90deg); }
  .file-tree { width: 96%; }
  .client-row { right: 1rem; bottom: 1rem; left: 1rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

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