:root {
  color-scheme: dark;
  --bg: #0c0f0c;
  --ink: #f6f1e6;
  --muted: #b6b9ad;
  --line: rgba(246, 241, 230, 0.16);
  --green: #20c997;
  --amber: #f59f00;
  --cyan: #38d9e8;
  --red: #ff6b6b;
  --panel: rgba(18, 23, 20, 0.76);
  --panel-solid: #121714;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(246, 241, 230, 0.08);
  background: rgba(12, 15, 12, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  background: #101611;
  border-radius: 8px;
  overflow: hidden;
}

.brand-mark img {
  width: 36px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: 126px clamp(18px, 5vw, 76px) 64px;
  overflow: hidden;
}

#relay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.95), rgba(12, 15, 12, 0.58) 48%, rgba(12, 15, 12, 0.86)),
    linear-gradient(180deg, rgba(12, 15, 12, 0.15), var(--bg));
  pointer-events: none;
}

.hero-copy,
.hero-terminal {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: #e4dfd2;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--green);
  color: #06110d;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(246, 241, 230, 0.07);
  color: var(--ink);
}

.hero-terminal {
  width: min(100%, 520px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 12, 10, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  white-space: pre-wrap;
  color: #d8f8ec;
  font: 500 clamp(13px, 1.45vw, 16px) / 1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #111510;
}

.strip div {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.strip div:last-child {
  border-right: 0;
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.strip span {
  color: var(--muted);
  line-height: 1.45;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 10vw, 126px) clamp(18px, 5vw, 76px);
  background: #f4efe4;
  color: #111510;
}

.section-copy h2 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow) {
  max-width: 520px;
  color: #4d5249;
  font-size: 18px;
  line-height: 1.58;
}

.section-grid .eyebrow {
  color: #087f5b;
}

.endpoint-list {
  display: grid;
  gap: 14px;
}

.endpoint {
  border: 1px solid rgba(17, 21, 16, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: #fffaf0;
}

.endpoint span {
  display: inline-block;
  margin-bottom: 12px;
  color: #087f5b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.endpoint h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.endpoint p {
  margin-bottom: 0;
  color: #555b50;
  line-height: 1.48;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.workflow-step {
  min-height: 280px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--panel-solid);
}

.workflow-step span {
  display: inline-flex;
  margin-bottom: 60px;
  color: var(--amber);
  font-weight: 800;
}

.workflow-step h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.workflow-step p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .hero-terminal {
    justify-self: stretch;
    width: 100%;
  }

  .strip,
  .section-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strip div:last-child {
    border-bottom: 0;
  }

  .workflow-step {
    min-height: 220px;
  }

  .workflow-step span {
    margin-bottom: 32px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
