@font-face {
  font-family: "ATM Geist Sans";
  src: url("assets/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "ATM Geist Mono";
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "ATM Geist Pixel";
  src: url("assets/fonts/geist-pixel.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

:root {
  --font-sans: "ATM Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "ATM Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-pixel: "ATM Geist Pixel", "ATM Geist Mono", monospace;
  --bg: #0a0a0a;
  --bg-alt: #0d0d0d;
  --fg: #f0f0f0;
  --muted: #8a8a8a;
  --dim: #555;
  --card: #131313;
  --card-hover: #171717;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);
  --blue: #4a9eff;
  --cyan: #5df5eb;
  --green: #4ade80;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 12px;
  --radius-lg: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: rgba(74, 158, 255, 0.32);
  color: var(--fg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  height: 34px;
}

.brand strong,
.eyebrow,
.section-kicker,
.nav-doc-link,
.hero-meta-links,
.scroll-cue {
  font-family: var(--font-pixel);
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

main {
  overflow: clip;
}

.nav-doc-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.nav-doc-link:hover {
  color: var(--fg);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.social-button-icon {
  padding: 0;
}

.social-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-button:hover {
  border-color: var(--border-strong);
  background: rgba(74, 158, 255, 0.1);
  color: var(--fg);
}

.hero {
  position: relative;
  min-height: calc(100svh - 172px);
  display: grid;
  place-items: center;
  padding: 44px 24px 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.ticket-field,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.ticket-field {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ticket-field span {
  position: absolute;
  display: block;
  left: var(--x);
  top: var(--y);
  width: clamp(190px, 23vw, 320px);
  aspect-ratio: 2624 / 1618;
  background-image: url("assets/images/ticket-glow.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--o);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: auto;
}

.hero-vignette {
  pointer-events: none;
  background:
    linear-gradient(to bottom, #0a0a0a 0%, rgba(10, 10, 10, 0.2) 28%, rgba(10, 10, 10, 0.68) 74%, #0a0a0a 100%),
    linear-gradient(to right, #0a0a0a 0%, rgba(10, 10, 10, 0.08) 22%, rgba(10, 10, 10, 0.08) 78%, #0a0a0a 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 890px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-protocol-link {
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hero-protocol-link:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-mark {
  width: 118px;
  height: 118px;
  margin-bottom: 20px;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.68));
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
}

h1,
h2,
h3 {
  font-family: var(--font-pixel);
}

h1 {
  font-size: 72px;
  line-height: 0.95;
  font-weight: 700;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 11%, transparent);
  color: var(--blue);
  box-shadow: 0 0 28px color-mix(in srgb, currentColor 13%, transparent);
}

.icon-badge svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px currentColor);
}

.icon-blue img {
  filter:
    brightness(0) saturate(100%) invert(63%) sepia(90%) saturate(2904%) hue-rotate(190deg) brightness(101%) contrast(101%)
    drop-shadow(0 0 12px rgba(74, 158, 255, 0.36));
}

.icon-cyan img {
  filter:
    brightness(0) saturate(100%) invert(86%) sepia(72%) saturate(604%) hue-rotate(116deg) brightness(99%) contrast(94%)
    drop-shadow(0 0 12px rgba(93, 245, 235, 0.36));
}

.icon-green img {
  filter:
    brightness(0) saturate(100%) invert(78%) sepia(22%) saturate(1332%) hue-rotate(84deg) brightness(94%) contrast(90%)
    drop-shadow(0 0 12px rgba(74, 222, 128, 0.36));
}

.icon-amber img {
  filter:
    brightness(0) saturate(100%) invert(81%) sepia(49%) saturate(917%) hue-rotate(350deg) brightness(103%) contrast(97%)
    drop-shadow(0 0 12px rgba(251, 191, 36, 0.36));
}

.icon-blue {
  color: var(--blue);
}

.icon-cyan {
  color: var(--cyan);
}

.icon-green {
  color: var(--green);
}

.icon-amber {
  color: var(--amber);
}

.icon-rose {
  color: var(--rose);
}

.hero-copy {
  width: min(100%, 680px);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.hero-copy a {
  color: var(--fg);
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 4px;
}

.hero-copy a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.hero-meta-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 0;
  color: var(--fg);
  font-size: 14px;
  text-transform: uppercase;
}

.hero-meta-links a {
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.by-atm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.by-atm-link img {
  width: 1.08em;
  height: 1.08em;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-meta-links a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.scroll-cue {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.section {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 86px 0;
}

.intro {
  padding-top: 34px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-copy {
  display: block;
  max-width: 760px;
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

h2 {
  max-width: 680px;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

p {
  color: rgba(255, 255, 255, 0.74);
}

.section-copy > p:last-child {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.surface,
.feature-card,
.flow li,
.code-window,
.atm-list article,
.bridge-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.surface {
  min-height: 190px;
  padding: 24px;
}

.surface:hover,
.feature-card:hover,
.atm-list article:hover,
.bridge-card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.surface p,
.feature-card p,
.flow p,
.contract-copy p,
.atm-list p,
.bridge-card p,
.developer-cta p {
  margin: 12px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 246px;
  padding: 24px;
}

.feature-card code,
.bridge-card code {
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow li {
  min-height: 238px;
  padding: 22px;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.step-top .icon-badge {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 9px;
}

.step-top .icon-badge svg {
  width: 17px;
  height: 17px;
}

.flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  gap: 16px;
}

.code-window {
  overflow: hidden;
  background: #0e0e0e;
}

.code-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.code-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

code {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.85;
}

.contract-copy {
  display: grid;
  gap: 14px;
}

.contract-copy article {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contract-copy article:first-child {
  padding-top: 4px;
}

.contract-copy article:last-child {
  border-bottom: 0;
}

.atm-section .section-copy {
  display: block;
  margin-bottom: 30px;
}

.atm-section .section-copy p:last-child {
  max-width: 760px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bridge-card {
  padding: 28px;
}

.atm-list {
  display: grid;
  gap: 14px;
}

.atm-list article {
  padding: 24px;
}

.atm-list .icon-badge,
.bridge-card .icon-badge,
.contract-copy .icon-badge,
.docs-content .icon-badge {
  margin-bottom: 16px;
}

.atm-list span,
.bridge-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
}

.atm-list strong {
  display: block;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.25;
}

.bridge-card h3 {
  max-width: 520px;
  font-size: 24px;
}

.bridge-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.bridge-card li {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.74);
}

.developer-cta {
  padding-bottom: 96px;
}

.developer-cta > div {
  max-width: 690px;
}

.text-link-row {
  margin: 18px 0 0;
}

.text-link-row a,
.text-link-row span {
  color: var(--fg);
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 5px;
}

.text-link-row a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.docs-page {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  overflow: visible;
}

.docs-hero {
  padding: 94px 0 60px;
  border-bottom: 1px solid var(--border);
}

.docs-hero h1 {
  max-width: 840px;
  font-size: 56px;
  line-height: 1;
}

.docs-hero > p:not(.eyebrow, .text-link-row) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 58px;
  padding: 44px 0 96px;
}

.docs-index {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.docs-index span,
.docs-index a {
  font-family: var(--font-pixel);
  font-size: 12px;
  text-transform: uppercase;
}

.docs-index span {
  color: var(--dim);
}

.docs-index a {
  color: var(--muted);
  text-decoration: none;
}

.docs-index a:hover {
  color: var(--fg);
}

.docs-content {
  display: grid;
  gap: 56px;
  min-width: 0;
}

.docs-content section {
  min-width: 0;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.docs-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-content h2 {
  max-width: 760px;
}

.docs-content p,
.docs-content li {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.docs-content ul,
.docs-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.docs-content pre {
  width: 100%;
  max-width: 860px;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #0e0e0e;
}

.lexicon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 24px 0 0;
}

.lexicon-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.lexicon-item:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.lexicon-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
}

.lexicon-item h3 {
  overflow-wrap: anywhere;
}

.lexicon-item p {
  margin: 12px 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

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

.footer a:hover:not(.social-button) {
  color: var(--fg);
}

.footer span:last-child {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 980px) {
  .split-grid,
  .feature-grid,
  .flow,
  .contract-grid,
  .bridge-grid {
    grid-template-columns: 1fr;
  }

  .flow li {
    min-height: 0;
  }

  .lexicon-grid {
    grid-template-columns: 1fr;
  }

  .flow span {
    margin-bottom: 22px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .docs-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-actions {
    gap: 10px;
  }

  .social-button {
    width: 30px;
    padding-inline: 0;
  }

  .hero {
    min-height: calc(100svh - 148px);
    padding: 34px 20px 48px;
  }

  .hero-mark {
    width: 92px;
    height: 92px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    width: min(100% - 36px, 1120px);
    padding: 62px 0;
  }

  .docs-page {
    width: min(100% - 36px, 1120px);
  }

  .docs-hero {
    padding: 64px 0 46px;
  }

  .docs-hero h1 {
    font-size: 38px;
  }

  .docs-hero > p:not(.eyebrow, .text-link-row) {
    font-size: 16px;
  }

  h2 {
    font-size: 30px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .footer span:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-actions span.nav-doc-link {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .surface,
  .flow li,
  .atm-list article,
  pre {
    padding: 20px;
  }
}
