/* Shared by the homepage, /markets/, /payments/ and /otc/. */
:root{
  --ink-0: oklch(0.985 0.004 150);
  --ink-1: oklch(0.971 0.005 150);
  --ink-2: oklch(0.948 0.007 150);
  --ink-3: oklch(0.916 0.009 150);
  --rule:   oklch(0.32 0.03 150 / 0.12);
  --rule-2: oklch(0.32 0.03 150 / 0.22);
  --t-100: oklch(0.27 0.025 152);
  --t-80:  oklch(0.42 0.022 150);
  --leaf:       oklch(0.55 0.15 152);
  --leaf-ink:   oklch(0.47 0.15 152);
  --leaf-paper: oklch(0.50 0.16 152);
  --moss:       oklch(0.56 0.13 142);
  --moss-ink:   oklch(0.48 0.14 142);
  --on-leaf:    oklch(0.99 0.005 150);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --inset: clamp(20px, 4.5vw, 64px);
  --maxw: 1120px;
  --section: clamp(64px, 9vw, 112px);
  --split: minmax(0, 4fr) minmax(0, 8fr);
  --gap: clamp(24px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,*::before,*::after{ box-sizing: border-box }
html,body{ margin: 0; padding: 0 }
html{ scroll-behavior: smooth; scroll-padding-top: 84px }
body{
  background: var(--ink-0); color: var(--t-100);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none }
img,video{ display: block; max-width: 100% }
h1,h2,h3,p,figure,dl,dd{ margin: 0 }
:focus-visible{ outline: 2px solid var(--leaf-paper); outline-offset: 3px; border-radius: 4px }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto }
  *,*::before,*::after{ transition-duration: .001ms !important }
}

.skip{
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--leaf); color: var(--on-leaf); font-size: 14px; font-weight: 500;
  transform: translateY(-200%); transition: transform .25s var(--ease-out);
}
.skip:focus{ transform: none }

.ambient{
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(70vmax 50vmax at 12% -12%, oklch(0.62 0.13 150 / 0.12), transparent 62%),
    radial-gradient(62vmax 46vmax at 96% 110%, oklch(0.70 0.12 78 / 0.12), transparent 70%);
}

/* Header */
.top{
  position: sticky; top: 0; z-index: 30;
  background: oklch(from var(--ink-0) l c h / 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.top-row{
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--inset);
  display: flex; align-items: center; gap: 12px;
}
.brand{ display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; margin-right: auto }
.brand img{ width: 28px; height: 28px }
.nav{ display: flex; align-items: center; gap: 4px; margin-right: 12px }
.nav a{ padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--t-80); transition: color .2s var(--ease-out) }
.nav a:hover, .nav a[aria-current]{ color: var(--t-100) }
.nav a[aria-current]{ font-weight: 500 }

.menu{ display: none }
.menu summary{
  list-style: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule-2);
  font-size: 14px; font-weight: 500;
}
.menu summary::-webkit-details-marker{ display: none }
.menu[open] summary{ background: var(--ink-3) }
.menu nav{
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink-1); border-bottom: 1px solid var(--rule-2);
  padding: 4px var(--inset) 12px;
}
.menu nav a{ display: block; padding: 14px 0; font-size: 18px; border-top: 1px solid var(--rule) }
.menu nav a:first-child{ border-top: 0 }

@media (max-width: 820px){
  .top-row > .nav{ display: none }
  .menu{ display: block }
}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: var(--ink-2); color: var(--t-100);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn:hover{ background: var(--ink-3); border-color: oklch(0.32 0.03 150 / 0.4) }
.btn-primary{ background: var(--leaf-ink); border-color: transparent; color: var(--on-leaf) }
.btn-primary:hover{ background: oklch(0.41 0.14 152); border-color: transparent }
.top .btn{ padding: 8px 14px; font-size: 14px }
.acts{ display: flex; flex-wrap: wrap; gap: 12px }

/* Page frame */
.wrap{ position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--inset) }
.sec{ padding: var(--section) 0; border-top: 1px solid var(--rule) }
.film + .sec{ margin-top: var(--section) }

/* Type */
h1{ font-weight: 200; font-size: clamp(48px, 8.2vw, 100px); line-height: 0.96; letter-spacing: -0.045em }
h1 .accent, h2 .accent{ color: var(--leaf-paper) }
h1 .line{ display: block }
h2{ font-weight: 300; font-size: clamp(32px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.03em }
h3{ font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em }
.muted{ color: var(--t-80) }

/* Hero */
.hero{ padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 80px) }
.hero .lede{ margin-top: 28px; max-width: 46ch; font-size: clamp(19px, 2vw, 22px); line-height: 1.4; color: var(--t-80) }
.hero .acts{ margin-top: 32px }

/* Chains */
.chains{ display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--t-80) }
.chains li{ display: inline-flex; align-items: center; gap: 8px; white-space: nowrap }
.chains .soon span{ font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase }
.chains img{ width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--ink-0) }
.live{ padding: 24px 0 var(--section); display: grid; gap: 14px }
.live a{ font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; color: var(--moss-ink) }
.live a::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss) }
.live a:hover{ color: var(--t-100) }

/* How it works */
.how h2{ max-width: 20ch }
.how-note{ margin-top: 18px; max-width: 52ch; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.45; color: var(--t-80) }
.flow{
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr);
  align-items: stretch;
}
.flow .wire{ align-self: center; height: 1px; background: var(--rule-2) }
.node{ padding: 24px; border: 1px solid var(--rule-2); background: var(--ink-1); display: grid; gap: 2px; align-content: center }
.node b{ font-weight: 300; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; line-height: 1.15 }
.node span{ font-size: 15px; color: var(--t-80) }
.node.book{ background: var(--leaf-ink); border-color: transparent; color: var(--on-leaf) }
.node.book span{ color: oklch(0.93 0.03 150) }
.steps{
  margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
}
.steps p{ margin-top: 8px; color: var(--t-80) }
@media (max-width: 760px){
  .flow{ grid-template-columns: minmax(0, 1fr) }
  .flow .wire{ width: 1px; height: 24px; justify-self: center }
  .steps{ grid-template-columns: minmax(0, 1fr) }
}

/* Title left, content right */
.split{ display: grid; grid-template-columns: var(--split); gap: var(--gap) }
.split > :first-child > .muted{ margin-top: 14px; max-width: 30ch }
.rows{ display: flex; flex-direction: column }
.rows > *{ padding: 20px 0; border-top: 1px solid var(--rule) }
.rows > :first-child{ border-top: 0; padding-top: 0 }
.rows > :last-child{ padding-bottom: 0 }
.fact{ display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4px 28px }
.fact dt{ font-weight: 500 }
.fact dd{ color: var(--t-80) }
@media (max-width: 820px){
  .split{ grid-template-columns: minmax(0, 1fr) }
  .fact{ grid-template-columns: minmax(0, 1fr) }
}

/* Solutions */
.solution{
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto; gap: 4px 24px; align-items: baseline;
  transition: color .2s var(--ease-out);
}
.solution h3{ font-weight: 300; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.025em }
.solution p{ color: var(--t-80) }
.solution .arr{ color: var(--t-80); transition: transform .25s var(--ease-out), color .25s var(--ease-out) }
.solution:hover h3{ color: var(--leaf-paper) }
.solution:hover .arr{ transform: translateX(4px); color: var(--leaf-paper) }
@media (max-width: 620px){
  .solution{ grid-template-columns: minmax(0, 1fr) auto }
  .solution p{ grid-column: 1; grid-row: 2 }
  .solution .arr{ grid-column: 2; grid-row: 1 }
}

/* Code */
.code{
  margin: 0; padding: 22px 24px; overflow-x: auto;
  border: 1px solid var(--rule); background: oklch(0.965 0.006 150);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--t-100);
}
.code .k{ color: var(--leaf-paper) }
.code .s{ color: var(--moss-ink) }
.code .c{ color: var(--t-80) }
.split > .code{ align-self: start; min-width: 0 }
.build .acts{ margin-top: 24px }
@media (max-width: 620px){
  .code{ padding: 18px; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere }
}

/* FAQ */
.qa{ padding: 0 !important }
.qa summary{
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
  transition: color .2s var(--ease-out);
}
.qa:first-child summary{ padding-top: 0 }
.qa summary::-webkit-details-marker{ display: none }
.qa summary::after{ content: "+"; color: var(--t-80); font-weight: 300; font-size: 22px; line-height: 1 }
.qa[open] summary::after{ content: "\2212" }
.qa summary:hover{ color: var(--leaf-paper) }
.qa p{ padding-bottom: 20px; max-width: 62ch; color: var(--t-80) }

/* Solution pages */
.film{ border: 1px solid var(--rule-2); background: var(--ink-1) }
.film video{ width: 100%; height: auto; aspect-ratio: 16 / 9 }
.walk{ display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); margin-top: clamp(32px, 5vw, 56px) }
.walk-step{ display: grid; grid-template-columns: var(--split); gap: var(--gap); align-items: start }
.walk-step h3{ font-weight: 300; font-size: clamp(24px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15 }
.walk-step p{ margin-top: 10px; color: var(--t-80) }
/* The bottom of each still holds a clipped film caption; crop it off. */
.walk-step img{
  width: 100%; height: auto; aspect-ratio: 1600 / 762;
  object-fit: cover; object-position: top;
  border: 1px solid var(--rule); background: var(--ink-1);
}
.walk-step img.tight{ aspect-ratio: 1600 / 722 }
@media (max-width: 820px){ .walk-step{ grid-template-columns: minmax(0, 1fr) } }

/* Live markets */
.market{ display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto; gap: 16px 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2) }
.market .name{ display: block; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2 }
.market .host{ display: block; font-size: 15px; color: var(--t-80) }
.market-note{ margin-top: 20px; color: var(--t-80) }
.market-note a{ color: var(--leaf-paper); font-weight: 500 }
.market-note a:hover{ color: var(--leaf-ink) }
.market-page{ padding-bottom: var(--section) }
@media (max-width: 820px){ .market{ grid-template-columns: minmax(0, 1fr) } }

/* Closing call */
.close{ padding: var(--section) 0; border-top: 1px solid var(--rule) }
.close h2{ font-weight: 200; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; max-width: 16ch }
.close p{ margin-top: 18px; max-width: 46ch; color: var(--t-80); font-size: 19px; line-height: 1.45 }
.close .acts{ margin-top: 28px }

/* Footer */
footer{ position: relative; z-index: 2; border-top: 1px solid var(--rule); background: var(--ink-1); padding: 56px var(--inset) 32px }
/* The first column lines up with the title column of .split above. */
.foot{ max-width: calc(var(--maxw) - 2 * var(--inset)); margin: 0 auto; display: grid; grid-template-columns: calc((100% - var(--gap)) / 3) repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px }
.foot .brand{ align-self: start }
.foot h3{ font-size: 14px; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 14px }
.foot ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.foot a:not(.brand){ color: var(--t-80); font-size: 15px; transition: color .2s var(--ease-out) }
.foot a:hover{ color: var(--t-100) }
.foot-bot{
  max-width: calc(var(--maxw) - 2 * var(--inset)); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 14px; color: var(--t-80);
}
.foot-bot a:hover{ color: var(--t-100) }
@media (max-width: 760px){
  .foot{ grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .foot .brand{ grid-column: 1 / -1 }
}
