@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600;700&family=Public+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --panel: #fffdf7;
  --ink: #121212;
  --muted: #595c57;
  --line: #cfc7b8;
  --black: #121212;
  --yellow: #f4c738;
  --signal: #e24d2f;
  --bay: #176b87;
  --green: #24745c;
  --steel: #d9e1df;
  --shadow: 0 22px 54px rgba(18, 18, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(18, 18, 18, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(23, 107, 135, 0.12), transparent 32%),
    var(--paper);
  background-size: 40px 40px, 40px 40px, 100% 100%, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--bay);
  outline-offset: 4px;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.5rem;
}

.site-header,
.brand,
.nav-links,
.footer,
.hero-actions {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--black);
}

.brand {
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.nav-links {
  gap: 1rem;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ship-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 2px solid var(--black);
  border-radius: 0.35rem;
  color: var(--black);
  background: var(--yellow);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--black);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.ship-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.ship-button.small {
  min-height: 2.5rem;
  box-shadow: 3px 3px 0 var(--black);
}

.text-link {
  color: var(--bay);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.86fr);
  gap: clamp(1.5rem, 5vw, 4.3rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 5.9rem));
  padding: clamp(2.75rem, 7vw, 5.8rem) 0;
}

.hero > * {
  min-width: 0;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Archivo Black", sans-serif;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 12.3ch;
  font-size: clamp(3rem, 6.7vw, 6.2rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-copy p:not(.kicker),
.integration > div > p {
  max-width: 42rem;
  margin: 1.1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.protocol-card {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
  border: 2px solid var(--black);
  border-radius: 0.55rem;
  background:
    linear-gradient(155deg, rgba(244, 199, 56, 0.22), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
}

.protocol-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(18, 18, 18, 0.035) 16px 18px);
}

.protocol-card > * {
  position: relative;
}

.protocol-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  color: #fff;
  background: var(--black);
}

.protocol-top span,
.metric-grid span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.protocol-top strong {
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.metric-grid div {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
}

.metric-grid span {
  color: var(--muted);
}

.metric-grid strong,
.route-list strong {
  overflow-wrap: anywhere;
}

.route-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
}

.route-list li > span {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

.route-list p {
  margin-top: 0.18rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section-band,
.rules,
.contact,
.integration,
.trust-section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.section-band,
.rules,
.trust-section {
  padding: 1.25rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-grid article {
  min-width: 0;
  padding: 1.05rem;
  border: 2px solid var(--black);
  background: #fff;
}

.info-grid p,
.rules li,
.footer,
.integration p {
  color: var(--muted);
  line-height: 1.65;
}

.info-grid p {
  margin-top: 0.75rem;
}

.info-grid code {
  color: var(--bay);
  font-size: 0.92em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-grid article {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border-top: 5px solid var(--signal);
  background: #fff;
}

.trust-grid article span {
  color: var(--bay);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

.trust-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.trust-grid code {
  color: var(--bay);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.integration {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: 1.25rem;
}

pre {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border: 2px solid var(--black);
  border-radius: 0.35rem;
  color: #f9f5e8;
  background: #171717;
  box-shadow: 5px 5px 0 var(--bay);
  font-size: 0.82rem;
  line-height: 1.55;
}

.rules ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1.25rem;
  border: 2px solid var(--black);
}

.contact h2 {
  max-width: 15ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.footer {
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

.footer a {
  color: var(--bay);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero,
  .info-grid,
  .trust-grid,
  .contact,
  .integration {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .contact .ship-button {
    justify-self: start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page {
    width: calc(100% - 1.25rem);
  }

  .site-header,
  .nav-links,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .ship-button,
  .ship-button.small {
    width: calc(100% - 5px);
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
  }

  .metric-grid,
  .protocol-top {
    grid-template-columns: 1fr;
  }

  .protocol-top strong {
    justify-self: start;
  }
}
