:root {
  color-scheme: light;
  --ink: #18202f;
  --muted: #617086;
  --line: #dfe6ef;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --accent: #156f8a;
  --accent-2: #245d4f;
  --warning: #b7681b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

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

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 48px;
  padding: 72px 32px 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 84px);
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 750;
}

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

.button.secondary {
  background: white;
}

.system-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(24, 32, 47, 0.12);
}

.node {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  font-weight: 800;
}

.source {
  border-color: rgba(21, 111, 138, 0.3);
  background: rgba(21, 111, 138, 0.08);
}

.flow {
  border-color: rgba(36, 93, 79, 0.3);
  background: rgba(36, 93, 79, 0.08);
}

.offer,
.landing {
  min-height: 72px;
}

.connector {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--line);
}

.connector.split {
  width: 66%;
  height: 2px;
  margin: 18px auto;
}

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

.metrics {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--muted);
  font-size: 13px;
}

.metrics span {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats article {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 24px;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px;
}

.section-heading {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

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

.feature {
  min-height: 190px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature h3 {
  margin: 0;
  font-size: 18px;
}

.feature p,
.section p {
  color: var(--muted);
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 32px;
  align-items: center;
}

.deploy {
  padding-top: 32px;
}

.code {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  background: #111827;
  color: #e6edf6;
  border-radius: 8px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .grid,
  .stats,
  .routes,
  .metrics {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .footer {
    flex-direction: column;
  }
}
