/* landing/styles.css */
:root {
  --ink: #0a0e17;
  --ink-2: #101728;
  --line: #1e2a3f;
  --text: #e7ecf5;
  --muted: #8b96ab;
  --iris: #7c8cff;
  --iris-dim: #4a56b8;
  --green: #3dd68c;
  --amber: #f0b45a;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-weight: 400;
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
}

.site-header {
  display: flex;
  max-width: var(--max-width);
  justify-content: space-between;
  align-items:  center;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.wordmark {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
}

.wordmark-dot {
  color: var(--iris);
}

.site-nav {
  display: flex;
  align-items:  center;
  gap: 1.75rem;
  font-size: .9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-cta {
  color: var(--iris);
  border: 1px solid var(--iris-dim);
  border-radius: .375rem;
  padding: .375rem .875rem;
}

.site-nav .nav-cta:hover {
  background: var(--iris-dim);
  color: var(--text);
}

.site-nav .nav-cta:focus-visible {
  background: var(--iris-dim);
  color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
  font-size: 2rem;
  font-weight: 650;
  font-stretch: 110%;
}

.section-sub {
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items:  center;
  gap: 3.5rem;
  padding: 4.5rem 0 5.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iris);
  margin: 0 0 1.25rem;
  font-size: .8125rem;
  font-weight: 500;
}

.hero h1 {
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  gap: 2.75rem;
  margin: 0 0 2.5rem;
  padding: 0;
}

.stat dt {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .375rem;
  font-size: .75rem;
}

.stat dd {
  font-family: var(--font-mono);
  color: var(--iris);
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: .5rem;
  padding: .75rem 1.5rem;
  transition: background .15s, border-color .15s;
  font-size: .9375rem;
  font-weight: 600;
}

.button-primary {
  background: var(--iris);
  color: var(--ink);
}

.button-primary:hover {
  background: #95a2ff;
}

.button-primary:focus-visible {
  background: #95a2ff;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--muted);
}

.button-ghost:focus-visible {
  border-color: var(--muted);
}

.ticker {
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--font-mono);
  border-radius: .75rem;
  box-shadow: 0 1.5rem 4rem -1.5rem #0009;
}

.ticker-titlebar {
  display: flex;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items:  center;
  gap: .5rem;
  padding: .75rem 1rem;
  font-size: .75rem;
}

.ticker-dot {
  background: var(--line);
  border-radius: 50%;
  width: .625rem;
  height: .625rem;
}

.ticker-title {
  margin-left: .5rem;
}

.ticker-live {
  color: var(--green);
  margin-left: auto;
}

.ticker-live:before {
  content: "●";
  margin-right: .375rem;
  font-size: .625rem;
}

.ticker-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  margin: 0;
  padding: .5rem 0;
}

.ticker-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  animation: row-in .4s ease both;
  align-items: baseline;
  gap: .75rem;
  padding: .5rem 1rem;
  font-size: .8125rem;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ticker-chain {
  color: var(--iris);
  font-weight: 500;
}

.ticker-detail {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-detail .ticker-txid {
  color: var(--muted);
}

.ticker-conf {
  text-align: right;
  color: var(--amber);
}

.ticker-conf.confirmed {
  color: var(--green);
}

.flow {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}

.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.flow-step {
  border-top: 2px solid var(--iris-dim);
  padding-top: 1.25rem;
}

.flow-index {
  font-family: var(--font-mono);
  color: var(--iris);
  letter-spacing: .1em;
  font-size: .8125rem;
  font-weight: 500;
}

.flow-step h3 {
  margin: .5rem 0 .75rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.flow-step p {
  color: var(--muted);
  margin: 0;
  font-size: .9375rem;
}

.coverage {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.matrix {
  border-collapse: collapse;
  font-family: var(--font-mono);
  width: 100%;
  min-width: 56rem;
  font-size: .8125rem;
}

.matrix th, .matrix td {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding: .75rem .875rem;
}

.matrix thead th {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 500;
}

.matrix tbody th {
  text-align: left;
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
}

.matrix tbody tr:last-child th, .matrix tbody tr:last-child td {
  border-bottom: none;
}

.matrix .cell-yes {
  color: var(--green);
}

.matrix .cell-no {
  color: var(--line);
}

.matrix .cell-count {
  color: var(--iris);
  font-weight: 600;
}

.matrix-note {
  color: var(--muted);
  margin: 1.25rem 0 0;
  font-size: .875rem;
}

.multisig {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border-top: 1px solid var(--line);
  align-items:  center;
  gap: 3.5rem;
  padding: 4rem 0 5rem;
}

.multisig-points {
  list-style: none;
  display: grid;
  color: var(--muted);
  gap: 1.125rem;
  margin: 0;
  padding: 0;
  font-size: .9375rem;
}

.multisig-points li {
  position: relative;
  padding-left: 1.25rem;
}

.multisig-points li:before {
  content: "";
  position: absolute;
  background: var(--iris-dim);
  border-radius: 50%;
  width: .5rem;
  height: .5rem;
  top: .55em;
  left: 0;
}

.multisig-points strong {
  color: var(--text);
  font-weight: 600;
}

.signers {
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: grid;
  font-family: var(--font-mono);
  border-radius: .75rem;
  gap: .875rem;
  padding: 1.5rem;
}

.signer {
  display: flex;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: .5rem;
  justify-content: space-between;
  align-items:  center;
  padding: .875rem 1rem;
  font-size: .875rem;
}

.signer-signed {
  border-style: solid;
  border-color: var(--green);
  color: var(--text);
}

.signer-state {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}

.signer-signed .signer-state {
  color: var(--green);
}

.signers-threshold {
  display: flex;
  border-top: 1px solid var(--line);
  align-items: baseline;
  gap: .875rem;
  padding: 1rem 1rem .25rem;
}

.signers-count {
  color: var(--iris);
  font-size: 1.75rem;
  font-weight: 600;
}

.signers-label {
  color: var(--muted);
  font-size: .8125rem;
}

.site-footer {
  max-width: var(--max-width);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.footer-line {
  color: var(--muted);
  display: flex;
  align-items:  center;
  gap: .75rem;
  margin: 0;
  font-size: .9375rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-size: .9375rem;
}

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

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 2px;
  border-radius: 2px;
}

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

  .ticker-row {
    animation: none;
  }
}

@media (max-width: 60rem) {
  .hero, .multisig {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    padding: 3rem 0 4rem;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1rem;
    font-size: .875rem;
  }
}
