:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --cobalt: #1768e5;
  --cobalt-dark: #0e4fad;
  --teal: #078577;
  --teal-soft: #e6f6f2;
  --coral: #df5b45;
  --navy: #0c1729;
  --navy-soft: #12243e;
  --green: #168252;
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #80b7ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  color: #fff;
  background: var(--cobalt);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  font-weight: 800;
}

.brand-name {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  background: var(--navy);
  border-radius: 5px;
  transform: rotate(-8deg);
}

.brand-mark i {
  display: block;
  width: 4px;
  background: #fff;
  border-radius: 1px;
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; background: #58d7c5; }
.brand-mark i:nth-child(3) { height: 18px; background: #77aaff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
}

.site-nav > a:hover {
  color: var(--cobalt);
  border-bottom-color: var(--cobalt);
}

.site-nav .nav-demo {
  height: 38px;
  padding: 0 15px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 5px;
}

.site-nav .nav-demo:hover {
  color: #fff;
  background: var(--cobalt-dark);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(100svh - 112px);
  min-height: 560px;
  max-height: 720px;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-image: url("assets/dashboard.png");
  background-position: center center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 33, 0.82);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8ff0db;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: var(--teal);
}

.eyebrow.light {
  color: #8ff0db;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 68px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: #d9e3f1;
  font-size: 21px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--cobalt);
}

.button-primary:hover {
  background: #2779ed;
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.hero-metrics {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  background: rgba(6, 13, 26, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 82px;
}

.metric-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-grid > div:first-child { padding-left: 0; }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid strong { font-size: 24px; line-height: 1; }
.metric-grid span { color: #c2cede; font-size: 12px; line-height: 1.4; }

.intro-band {
  padding: 70px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 92px;
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
}

.section-heading.centered {
  max-width: 740px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.intro-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.intro-points span {
  padding: 14px 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roles-section {
  padding: 92px 0 100px;
  background: var(--soft);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 4px;
  background: #e6ebf2;
  border-radius: 7px;
}

.role-tab {
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.role-tab.is-active {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 4px 16px rgba(12, 23, 41, 0.17);
}

.role-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(280px, 0.74fr);
  gap: 36px;
  align-items: center;
  min-height: 306px;
  padding: 48px 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.07);
}

.role-panel[hidden] { display: none; }

.role-number {
  color: #ccd7e7;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.role-kicker {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.role-panel h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.45;
}

.role-panel p {
  margin: 0;
  color: var(--muted);
}

.role-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.role-panel li {
  position: relative;
  padding: 10px 10px 10px 22px;
  color: var(--ink-soft);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.role-panel li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.dashboard-showcase {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.dashboard-showcase img {
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(16, 24, 40, 0.1);
}

.capabilities-section {
  padding: 96px 0 108px;
  background: #fff;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}

.split-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article {
  min-height: 244px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.capability-grid article:hover {
  z-index: 2;
  background: var(--soft);
  transform: translateY(-3px);
}

.capability-grid article > span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.capability-grid h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-story {
  padding: 104px 0;
}

.pool-story {
  color: #fff;
  background: var(--navy);
}

.fund-story {
  background: #eef3f8;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 70px;
  align-items: center;
}

.feature-layout.reverse {
  grid-template-columns: minmax(520px, 1.14fr) minmax(0, 0.86fr);
}

.feature-layout.reverse .feature-copy { order: 2; }
.feature-layout.reverse .product-shot { order: 1; }

.feature-copy h2 {
  margin: 0 0 20px;
  font-size: 39px;
  line-height: 1.35;
  letter-spacing: 0;
}

.dark-copy h2 { color: var(--navy); }

.feature-lead {
  margin: 0 0 30px;
  color: #c4d0df;
  font-size: 17px;
  line-height: 1.85;
}

.dark-copy .feature-lead { color: var(--ink-soft); }

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-list strong {
  color: #8ff0db;
  font-size: 14px;
}

.feature-list span {
  color: #c4d0df;
  font-size: 14px;
}

.product-shot {
  margin: 0;
}

.product-shot img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.product-shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.light-frame img {
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.light-frame figcaption { color: #9aa8bb; }

.dark-frame img {
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow);
}

.routing-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.routing-flow > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.routing-flow b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--navy);
  background: #8ff0db;
  border-radius: 50%;
}

.routing-flow span {
  color: #d3deea;
  font-size: 13px;
  font-weight: 700;
}

.routing-flow i {
  color: #65809e;
  font-style: normal;
}

.fund-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #c7d2df;
  border-left: 1px solid #c7d2df;
}

.fund-metrics > div {
  padding: 16px;
  border-right: 1px solid #c7d2df;
  border-bottom: 1px solid #c7d2df;
}

.fund-metrics strong,
.fund-metrics span {
  display: block;
}

.fund-metrics strong {
  margin-bottom: 4px;
  color: var(--cobalt-dark);
  font-size: 14px;
}

.fund-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.channels-section {
  padding: 100px 0 110px;
  background: #fff;
}

.channel-filter {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 28px;
  padding: 4px;
  background: #edf1f6;
  border-radius: 7px;
}

.channel-filter button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.channel-filter button span {
  margin-left: 5px;
  color: #98a2b3;
  font-size: 11px;
}

.channel-filter button.is-active {
  color: #fff;
  background: var(--navy);
}

.channel-filter button.is-active span { color: #bbcadb; }

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

.channel-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 84px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.channel-grid article:hover {
  border-color: #9bbcf0;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.channel-grid article[hidden] { display: none; }

.channel-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 48px;
  padding: 7px;
  background: #f4f7fb;
  border: 1px solid #e6ebf2;
  border-radius: 5px;
}

.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-logo.wide img {
  max-height: 25px;
}

.channel-logo.brand-alipay,
.map-channel-list img.brand-alipay {
  background: #1677ff;
  border-color: #1677ff;
}

.channel-logo.brand-wechat,
.map-channel-list img.brand-wechat {
  background: #07c160;
  border-color: #07c160;
}

.channel-logo.brand-hkpay,
.map-channel-list img.brand-hkpay {
  background: #1579b8;
  border-color: #1579b8;
}

.channel-logo.brand-lakala,
.map-channel-list img.brand-lakala {
  background: #e52b2f;
  border-color: #e52b2f;
}

.channel-logo.brand-alipay img,
.channel-logo.brand-wechat img {
  padding: 2px;
}

.channel-logo.brand-hkpay img {
  padding: 1px 7px;
}

.channel-logo.brand-lakala img {
  padding: 3px;
}

.channel-grid h3 {
  overflow-wrap: anywhere;
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
}

.channel-grid code {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}

.architecture-section {
  padding: 100px 0 112px;
  color: #fff;
  background: #060c14;
}

.architecture-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.architecture-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.3;
}

.architecture-heading > p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #a8b5c5;
}

.system-map {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #09111a;
  border: 1px solid #233342;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.map-open,
.map-tech {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
}

.map-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.map-label-open {
  color: #1b2939;
  background: #f5c95f;
}

.map-open-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 68px;
  padding: 12px 18px;
  color: #172536;
  background: #f8d878;
  border-radius: 6px;
}

.map-open-content strong {
  margin-right: 12px;
  font-size: 18px;
}

.map-open-content span {
  padding: 4px 9px;
  color: #2d3a49;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-left: 138px;
}

.map-actions div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  color: #fff;
  background: #263747;
  border: 1px solid #3a5062;
  border-top: 3px solid #df8f71;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.map-actions div:nth-child(2) { border-top-color: #cf7079; }
.map-actions div:nth-child(3) { border-top-color: #aa6079; }
.map-actions div:nth-child(4) { border-top-color: #8b7890; }
.map-actions div:nth-child(5) { border-top-color: #7fa18b; }
.map-actions div:nth-child(6) { border-top-color: #3594b8; }

.map-middle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.map-label-business {
  color: #fff;
  min-height: 52px;
  padding: 10px 18px;
  justify-content: flex-start;
  background: #1c638a;
}

.map-business {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "merchant merchant merchant merchant merchant merchant hardware hardware hardware mobile mobile mobile"
    "agent agent agent agent agent agent manager manager manager manager manager manager";
  gap: 12px;
}

.map-module {
  min-width: 0;
  padding: 18px;
  background: #12344a;
  border: 1px solid #285872;
  border-radius: 6px;
}

.map-module h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.map-module h3 > span {
  padding: 3px 7px;
  color: #1b5d84;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
}

.map-merchant { grid-area: merchant; }
.map-hardware { grid-area: hardware; background: #123447; }
.map-mobile { grid-area: mobile; background: #123447; }
.map-agent { grid-area: agent; background: #112f48; }
.map-manager { grid-area: manager; background: #152d49; }

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

.map-tags.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-tags.six-col { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.map-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  color: #f2f8fc;
  background: #21475e;
  border: 1px solid #2b5870;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.map-channel-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: #0d1822;
  border: 1px solid #263744;
  border-radius: 6px;
}

.map-channel-rail h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.map-channel-rail h3 small {
  margin-left: 5px;
  color: #ffd466;
  font-size: 12px;
}

.map-channel-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.map-channel-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 48px;
  padding: 6px 7px;
  background: #1a2a37;
  border: 1px solid #2a3d4b;
  border-radius: 4px;
}

.map-channel-list img {
  width: 30px;
  height: 28px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.map-channel-list img.brand-alipay,
.map-channel-list img.brand-wechat,
.map-channel-list img.brand-hkpay,
.map-channel-list img.brand-lakala {
  padding: 5px;
}

.map-channel-list span {
  overflow-wrap: anywhere;
  color: #e5edf4;
  font-size: 10px;
  font-weight: 700;
}

.map-channel-rail > a {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  color: #8fdacb;
  font-size: 12px;
  font-weight: 800;
}

.map-label-tech {
  color: #fff;
  background: #1a2935;
}

.map-tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2.2fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #1a2935;
  border-radius: 6px;
}

.map-tech-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px;
  color: #e8eef4;
  background: #2c3b47;
  border-radius: 5px;
  font-size: 11px;
  text-align: center;
}

.demo-section {
  padding: 104px 0;
  background: #edf2f8;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 90px;
  align-items: start;
}

.demo-links {
  border-top: 1px solid #c8d2df;
}

.demo-links a {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) 28px;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid #c8d2df;
  transition: padding 160ms ease, color 160ms ease;
}

.demo-links a:hover {
  padding-left: 10px;
  color: var(--cobalt-dark);
}

.demo-links span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

.demo-links strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.demo-links i {
  color: var(--cobalt);
  font-size: 22px;
  font-style: normal;
  text-align: right;
}

.site-footer {
  padding: 38px 0;
  color: #9eacbc;
  background: #08111f;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
}

.light-brand .brand-name { color: #fff; }
.light-brand .brand-mark { background: #fff; }
.light-brand .brand-mark i { background: var(--navy); }
.light-brand .brand-mark i:nth-child(2) { background: var(--teal); }
.light-brand .brand-mark i:nth-child(3) { background: var(--cobalt); }

.footer-brand > p,
.footer-layout > p {
  margin: 5px 0 0;
  font-size: 12px;
}

.back-top {
  color: #d9e3ef;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-layout,
  .feature-layout.reverse {
    grid-template-columns: 1fr;
  }
  .feature-layout.reverse .feature-copy,
  .feature-layout.reverse .product-shot { order: initial; }
  .product-shot { max-width: 860px; }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-middle { grid-template-columns: 1fr; }
  .map-open,
  .map-tech { grid-template-columns: 112px minmax(0, 1fr); }
  .map-actions { padding-left: 124px; }
  .map-label { font-size: 17px; }
  .map-module { padding: 18px; }
  .map-business {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "merchant merchant"
      "hardware mobile"
      "agent manager";
  }
  .map-tags.six-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-channel-rail {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .map-channel-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-channel-rail > a { justify-self: start; }
}

@media (max-width: 860px) {
  .page-shell { width: min(calc(100% - 36px), 1180px); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    height: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav > a,
  .site-nav .nav-demo {
    min-height: 44px;
    height: auto;
    padding: 0 12px;
    border-bottom: 0;
  }
  .site-nav > a:hover { background: var(--soft); }
  .hero h1 { font-size: 56px; }
  .hero-lead { max-width: 680px; font-size: 19px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid > div { min-height: 58px; padding: 9px 14px; }
  .metric-grid > div:nth-child(2) { border-right: 0; }
  .metric-grid > div:first-child { padding-left: 14px; }
  .metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .metric-grid strong { font-size: 19px; }
  .intro-grid,
  .split-heading,
  .demo-layout { grid-template-columns: 1fr; gap: 36px; }
  .role-panel { grid-template-columns: 76px 1fr; padding: 38px; }
  .role-panel ul { grid-column: 1 / -1; }
  .routing-flow { grid-template-columns: 1fr 1fr; }
  .routing-flow i { display: none; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-heading > p { max-width: 640px; }
  .map-open,
  .map-tech { grid-template-columns: 1fr; }
  .map-label {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
  }
  .map-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
  }
  .map-middle { grid-template-columns: 1fr; }
  .map-label-business {
    min-height: 48px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
  .map-business { grid-template-columns: 1fr 1fr; }
  .map-channel-rail { min-height: 0; }
  .map-channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-channel-rail > a { margin-top: 14px; padding-top: 0; }
  .map-tech-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-layout { grid-template-columns: 1fr auto; }
  .footer-layout > p { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .page-shell { width: min(calc(100% - 28px), 1180px); }
  .nav-shell { width: calc(100% - 28px); }
  .hero {
    height: calc(100svh - 96px);
    min-height: 500px;
    max-height: 660px;
    background-position: 58% center;
  }
  .hero-content { padding-bottom: 118px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 16px; line-height: 1.75; }
  .hero-actions { margin-top: 22px; }
  .button { width: 100%; min-height: 44px; }
  .metric-grid > div { gap: 8px; padding: 8px 10px; }
  .metric-grid strong { font-size: 17px; }
  .metric-grid span { font-size: 10px; }
  .intro-band,
  .roles-section,
  .capabilities-section,
  .feature-story,
  .channels-section,
  .architecture-section,
  .demo-section { padding: 72px 0; }
  .section-heading h2,
  .feature-copy h2 { font-size: 30px; }
  .intro-grid { gap: 28px; }
  .intro-copy > p { font-size: 16px; }
  .role-tabs { max-width: none; }
  .role-tab { padding: 0 8px; font-size: 12px; }
  .role-panel { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .role-number { font-size: 38px; }
  .role-panel h3 { font-size: 22px; }
  .role-panel ul { grid-column: auto; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
  .feature-layout { gap: 38px; }
  .feature-list > div { grid-template-columns: 84px 1fr; gap: 12px; }
  .routing-flow { grid-template-columns: 1fr; margin-top: 42px; }
  .fund-metrics { grid-template-columns: 1fr; }
  .channel-filter { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .channel-filter button { padding: 0 10px; }
  .channel-grid { grid-template-columns: 1fr; }
  .architecture-heading h2 { font-size: 30px; }
  .system-map { gap: 8px; padding: 8px; }
  .map-open-content { padding: 14px; }
  .map-open-content strong { width: 100%; margin-right: 0; }
  .map-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-actions div { min-height: 50px; font-size: 13px; }
  .map-business {
    grid-template-columns: 1fr;
    grid-template-areas:
      "merchant"
      "hardware"
      "mobile"
      "agent"
      "manager";
  }
  .map-module { padding: 16px; }
  .map-module h3 { margin-bottom: 14px; font-size: 17px; }
  .map-tags,
  .map-tags.two-col,
  .map-tags.six-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-tags span { min-height: 40px; padding: 6px; font-size: 11px; }
  .map-channel-list { grid-template-columns: 1fr; }
  .map-tech-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-tech-list span { min-height: 40px; padding: 6px; }
  .demo-links a { grid-template-columns: 1fr 28px; gap: 6px 12px; padding: 12px 0; }
  .demo-links strong { grid-column: 1; grid-row: 2; }
  .demo-links i { grid-column: 2; grid-row: 1 / span 2; }
  .footer-layout { gap: 16px; }
  .back-top { font-size: 0; }
  .back-top span { font-size: 18px; }
}

@media (max-height: 700px) {
  .hero {
    height: calc(100svh - 96px);
    min-height: 0;
  }
  .hero-content { padding-bottom: 92px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
