/* FomoBlock marketing system.
   Paradigm sparseness, Linear restraint, Coinbase Prime seriousness.
   White paper, serif display, mono data. No gradients, no glass, no noise. */

:root {
  --paper: #ffffff;
  --paper-dim: #fafaf8;
  --ink: #111213;
  --sub: #4e535c;
  --faint: #898f99;
  --line: #e9e9e6;
  --line-strong: #d7d7d2;
  --accent: #5f6a5f; /* mineral sage ink, the on-white voice of #cbd0ca */
  --pos: #1f8a5b;
  --neg: #c0392b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); }

::selection { background: rgba(47, 85, 212, 0.12); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.lnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.lnav .in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.lnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.lnav .brand img { width: 22px; height: 22px; border-radius: 5px; display: block; }
.lnav .brand b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lnav a.nl {
  font-size: 13.5px;
  color: var(--sub);
  transition: color 0.15s;
}
.lnav a.nl:hover { color: var(--ink); }
.lnav a.nl[aria-current="page"] { color: var(--ink); }
.lnav .cta {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 7px 15px;
  border-radius: 999px;
  transition: background 0.15s;
}
.lnav .cta:hover { background: #2b2d31; }

/* ---------- hero ---------- */

.lhero {
  max-width: 760px;
  margin: 0 auto;
  padding: 108px 24px 56px;
  text-align: center;
}
.lhero .mark { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.lhero h1 {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lhero .sub {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--sub);
}
.lhero .ctas {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.btn-ink {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s;
}
.btn-ink:hover { background: #2b2d31; }
.link-q {
  font-size: 14px;
  color: var(--sub);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.link-q:hover { color: var(--ink); border-color: var(--ink); }
.lhero .fact {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.lhero .fact b { color: var(--ink); font-weight: 500; }

/* ---------- monospace diagram (the signature) ---------- */

.diagram {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.diagram .box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-dim);
  padding: 26px 30px;
  overflow-x: auto;
}
.diagram .cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 14px;
}
.diagram pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre;
}
.diagram pre .d { color: var(--faint); }
.diagram pre .a { color: var(--accent); }
.diagram pre .r { color: var(--neg); }
.diagram .split { border-top: 1px solid var(--line); margin: 22px -30px; }
.diagram .note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- sections ---------- */

.lsec {
  max-width: 760px;
  margin: 88px auto 0;
  padding: 0 24px;
}
.lsec .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.lsec h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.lsec > p {
  margin-top: 16px;
  max-width: 620px;
  font-size: 15px;
  color: var(--sub);
}
.lsec > p a { color: var(--accent); }
.lsec > p a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* plain data table (Prime style) */
.ltable {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ltable th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line-strong);
}
.ltable td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  vertical-align: top;
}
.ltable td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.ltable td .m { font-family: var(--mono); font-size: 12.5px; }

/* hairline principle list */
.plist { margin-top: 26px; border-top: 1px solid var(--line-strong); }
.plist .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.plist .row b { font-size: 14px; font-weight: 550; }
.plist .row p { font-size: 13.5px; color: var(--sub); }

/* mono stat row */
.statrow {
  max-width: 760px;
  margin: 88px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.statrow .s { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.statrow .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.statrow .v {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.statrow .t { margin-top: 6px; font-size: 12.5px; color: var(--sub); }

/* code block */
.codeblock {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-dim);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.codeblock .d { color: var(--faint); }
.codeblock .a { color: var(--accent); }
.codeblock .g { color: var(--pos); }

/* ---------- footer ---------- */

.lfoot {
  max-width: 1040px;
  margin: 110px auto 0;
  padding: 0 24px 48px;
}
.lfoot .top {
  border-top: 1px solid var(--line-strong);
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.lfoot .brandcol { max-width: 260px; }
.lfoot .brandcol .b {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}
.lfoot .brandcol .b img { width: 20px; height: 20px; border-radius: 4px; }
.lfoot .brandcol p { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.lfoot .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.lfoot h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 12px;
}
.lfoot .cols a {
  display: block;
  font-size: 13px;
  color: var(--sub);
  padding: 3px 0;
}
.lfoot .cols a:hover { color: var(--ink); }
.lfoot .fine {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
  max-width: 760px;
}
.lfoot .status {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 7px;
}
.lfoot .status i { width: 6px; height: 6px; border-radius: 99px; background: var(--pos); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .lnav a.nl { display: none; }
  .lhero { padding-top: 72px; }
  .plist .row { grid-template-columns: 1fr; gap: 6px; }
  .statrow { grid-template-columns: 1fr; gap: 28px; }
  .diagram .box { padding: 18px 16px; }
  .diagram .split { margin: 18px -16px; }
  /* three columns of prose cannot fit 390px: stack each row instead */
  .ltable, .ltable tbody, .ltable tr, .ltable td { display: block; width: 100%; }
  .ltable tr:first-child { display: none; }
  .ltable tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ltable td { padding: 0; border: 0; }
  .ltable td:first-child { white-space: normal; margin-bottom: 7px; }
  .ltable td:last-child {
    margin-top: 9px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--faint);
  }
}

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

.lhero .eyebrow-m {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.lhero .eyebrow-m + h1 { margin-top: 22px; }

/* ---------- the clearing figure ---------- */

.cvg {
  max-width: 1040px;
  margin: 74px auto 0;
  padding: 0 24px;
}
.cvg-stage {
  position: relative;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--paper-dim), var(--paper) 62%);
  overflow: hidden;
}
.cvg-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the clearing price: one hairline the crowd settles onto */
.cvg-rule {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  opacity: 0.7;
}
.cvg-nogl canvas, .cvg-nogl .cvg-rule { display: none; }
.cvg-nogl {
  display: grid;
  place-items: center;
  min-height: 180px;
  height: auto;
  padding: 44px 24px;
}
.cvg-nogl::after {
  content: "One block. One execution. One price.";
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
}
.cvg-cap {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  max-width: 680px;
}
.cvg-cap b { color: var(--ink); font-weight: 550; }

/* headline letters settle onto a shared baseline */
.lhero h1 .ltr { display: inline-block; will-change: transform, opacity; }

@media (max-width: 720px) {
  .cvg { margin-top: 54px; }
  .cvg-stage { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .lhero h1 .ltr { transform: none !important; opacity: 1 !important; }
}
