:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --line: #d9dfd2;
  --deep: #102226;
  --deep-2: #183236;
  --accent: #0e8f77;
  --accent-2: #d7a637;
  --warn: #b75642;
  --soft: #e8efe8;
  --blue: #2c668d;
  --shadow: 0 18px 45px rgba(18, 34, 38, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #304046;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(14, 143, 119, 0.2);
}

.button.secondary {
  color: var(--deep);
  border-color: #b7c3bd;
  background: transparent;
  box-shadow: none;
}

.button.dark {
  background: var(--deep);
}

.hero {
  background:
    linear-gradient(115deg, rgba(16, 34, 38, 0.98), rgba(24, 50, 54, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(215, 166, 55, 0.4), transparent 28%);
  color: #f6faf8;
  overflow: hidden;
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bfe5db;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: #d8e5e0;
  font-size: 18px;
}

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

.hero-actions .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.rail-map {
  position: relative;
  min-height: 460px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 92px);
  box-shadow: var(--shadow);
}

.rail-node {
  position: absolute;
  width: 150px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.rail-node strong {
  display: block;
  font-size: 15px;
}

.rail-node span {
  display: block;
  margin-top: 5px;
  color: #c8d8d2;
  font-size: 12px;
}

.rail-node.customer { top: 38px; left: 22px; }
.rail-node.gateway { top: 150px; left: 50%; transform: translateX(-50%); border-color: rgba(215,166,55,0.7); }
.rail-node.bank { top: 42px; right: 24px; }
.rail-node.settle { bottom: 38px; right: 44px; }
.rail-node.risk { bottom: 46px; left: 42px; }

.rail-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(215,166,55,0.9), transparent);
  transform-origin: left center;
}

.line-1 { width: 230px; top: 126px; left: 150px; transform: rotate(22deg); }
.line-2 { width: 225px; top: 126px; right: 150px; transform: rotate(-22deg); }
.line-3 { width: 220px; bottom: 142px; right: 168px; transform: rotate(24deg); }
.line-4 { width: 220px; bottom: 145px; left: 166px; transform: rotate(-23deg); }

.section {
  padding: 78px 0;
}

.section.tight {
  padding: 54px 0;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.metric:last-child { border-right: 0; }

.metric strong {
  display: block;
  color: var(--deep);
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(28, 38, 38, 0.06);
}

.panel.pad {
  padding: 24px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.panel h2 {
  font-size: 26px;
  line-height: 1.14;
}

.number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  font-weight: 800;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.comparison th,
.comparison td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: #ffffff;
  background: var(--deep);
}

.comparison tr:last-child td { border-bottom: 0; }
.comparison td { color: #46545b; }

.band {
  background: var(--deep);
  color: #f7fbfa;
}

.band .section-head p,
.band .panel p,
.band .panel li {
  color: #d0ded9;
}

.band .panel {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.band .number {
  color: var(--deep);
  background: var(--accent-2);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.quote {
  padding: 30px;
  border-left: 5px solid var(--accent-2);
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  color: #263436;
  font-size: 20px;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #39484c;
  text-decoration: none;
  font-size: 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #28363a;
  font-weight: 740;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd4ce;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 650;
}

.page-hero {
  padding: 76px 0 54px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--deep), #274149);
}

.page-hero p {
  max-width: 720px;
  color: #dbe7e3;
  font-size: 18px;
}

.content {
  max-width: 860px;
}

.content p,
.content li {
  color: var(--muted);
}

.content h2 {
  margin-top: 34px;
  font-size: 30px;
}

.site-footer {
  padding: 42px 0;
  color: #d6e1dd;
  background: #0b181b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d6e1dd;
  text-decoration: none;
}

.site-footer a:hover { color: #ffffff; }

.footer-note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #9bacad;
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .rail-map {
    min-height: 430px;
  }

  .metric-strip,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .metric:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .hero-inner,
  .section,
  .page-hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .rail-node {
    position: static;
    width: 100%;
    margin-bottom: 12px;
    transform: none !important;
  }

  .rail-line {
    display: none;
  }

  .rail-map {
    min-height: 0;
  }

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

  .comparison {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
