/* =========================================================
   Matsimba Technologies — site styles
   Brand palette taken from the Matsimba, UniPay and Tapcard logos
   ========================================================= */
:root {
  --navy: #0a1f3c;
  --navy-2: #0f2f5a;
  --blue: #1764a8;
  --cyan: #1aa3cf;
  --orange: #f68b1f;
  --green: #2fae4f;
  --gold: #c9973c;

  --ink: #10213a;
  --muted: #5a6b82;
  --line: #e3e9f1;
  --bg: #ffffff;
  --tint: #f4f8fc;

  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--navy-2) 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(10, 31, 60, .18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 60, .35);
  --maxw: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: "Manrope", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #c9d6e8; }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5 { color: #fff; }
.section-dark strong { color: #fff; }
.body-muted { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 700 .78rem/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: var(--cyan); }
.eyebrow-orange { color: var(--orange); }
.eyebrow-green { color: var(--green); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.muted { color: var(--muted); }
.sim-note { font-size: .8rem; color: #8ea3c0; margin: 12px 0 0; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); background: rgba(246,139,31,.12); padding: 3px 8px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 .95rem/1 "Manrope", sans-serif;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, opacity .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(246, 139, 31, .8); }
.btn-primary:hover { background: #e47b0e; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #27994a; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--green); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.tick-green li::before { background-color: var(--green); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.pill-dark li { background: rgba(47,174,79,.12); color: #bfeccb; border: 1px solid rgba(47,174,79,.35); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -12px rgba(10,31,60,.25); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 800 1.15rem/1 "Manrope", sans-serif; letter-spacing: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav a:not(.btn):hover, .nav a.active { text-decoration: none; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 80px) 0 60px; background: var(--navy); color: #c9d6e8; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(26,163,207,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(23,100,168,.45), transparent 60%),
    linear-gradient(180deg, #0a1f3c 0%, #0b2546 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 560px; color: #b9c8dd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.hero-logo {
  position: absolute; inset: 22%; background: #fff; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 30px 80px -20px rgba(26,163,207,.6), inset 0 0 0 8px rgba(26,163,207,.12);
  animation: float 6s ease-in-out infinite;
}
.hero-logo img { width: 68%; }
.pulse-rings { position: absolute; inset: 0; }
.pulse-rings span { position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(26,163,207,.5); animation: pulse 4.5s ease-out infinite; }
.pulse-rings span:nth-child(2) { animation-delay: 1.5s; }
.pulse-rings span:nth-child(3) { animation-delay: 3s; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font: 600 .82rem/1 "Manrope", sans-serif; white-space: nowrap;
  box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite;
}
.chip span { transition: opacity .3s; }
.chip.swap span { opacity: 0; }
.chip-1 { top: 8%; left: -4%; }
.chip-2 { top: 46%; right: -6%; animation-delay: -2.3s; }
.chip-3 { bottom: 6%; left: 6%; animation-delay: -4.6s; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(47,174,79,.18); }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 4px rgba(246,139,31,.18); }
.dot-blue { background: var(--cyan); box-shadow: 0 0 0 4px rgba(26,163,207,.18); }
.stats { position: relative; list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stats li { padding: 28px 20px 0; border-left: 1px solid rgba(255,255,255,.12); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font: 800 2.3rem/1 "Manrope", sans-serif; color: #fff; margin-bottom: 8px; }
.stats span { font-size: .92rem; color: #9fb2cc; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.65); opacity: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-grid > div > p { color: var(--muted); font-size: 1.05rem; }
.about-grid > div > p strong { color: var(--ink); }
.vmv { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.vmv > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.vmv dt { font: 800 .82rem/1.6 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.vmv dd { margin: 0; color: var(--ink); }
.glance { position: relative; padding: 32px; border-radius: 24px; background: var(--navy); color: #b9c8dd; overflow: hidden; box-shadow: var(--shadow-lg); }
.glance::before { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(26,163,207,.4), transparent 70%); pointer-events: none; }
.glance > * { position: relative; }
.glance h3 { color: #fff; margin: 0 0 8px; font-size: 1.3rem; }
.glance-list { margin: 0; }
.glance-list > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.glance-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance-list i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(26,163,207,.15); border: 1px solid rgba(26,163,207,.35); }
.glance-list svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glance-list dt { font: 700 .72rem/1 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 2px 0 6px; }
.glance-list dd { margin: 0; font-size: .95rem; line-height: 1.5; }
.glance-list strong { color: #fff; font-weight: 600; }

/* ---------- How we work ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 16px); }
.process li { position: relative; text-align: center; padding: 0 28px; }
.step-no { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 2px solid var(--cyan); font: 800 1rem/1 "Manrope", sans-serif; color: var(--blue); transition: background .3s, color .3s, transform .3s; }
.process li:hover .step-no { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); }
.process p { color: var(--muted); font-size: .96rem; margin: 0; }
.commitments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 56px 0 0; font-size: .92rem; font-weight: 600; color: var(--navy-2); }
.commitments span { display: inline-flex; align-items: center; gap: 8px; }
.commitments span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }

/* ---------- Product map ---------- */
.pmap-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pmap { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; margin: 0 auto; }
.pmap::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed #c9d8e8; }
.pmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmap-lines line { stroke: #c9d8e8; stroke-width: .4; stroke-dasharray: 1.2 1.2; transition: stroke .3s; vector-effect: non-scaling-stroke; }
.pmap-lines line { stroke-width: 2; }
.pmap-lines line.on { stroke: var(--orange); stroke-dasharray: none; }
.pnode {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 128px; padding: 12px 10px; border-radius: 16px; cursor: pointer;
  display: grid; justify-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 700 .8rem/1.2 "Manrope", sans-serif; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pnode img { height: 30px; width: auto; max-width: 100px; object-fit: contain; }
.pnode img.pnode-tall { height: 42px; margin-top: -6px; }
.pnode img.pnode-mark { height: 34px; }
.pnode:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: var(--shadow-lg); }
.pnode[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,139,31,.18), var(--shadow-lg); }
.pnode.hub { left: 50%; top: 50%; width: 168px; padding: 20px 14px; border-radius: 50%; aspect-ratio: 1; align-content: center; }
.pnode.hub img { height: 42px; max-width: 130px; }
.pnode.hub::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(246,139,31,.35); animation: pulse 3s ease-out infinite; pointer-events: none; }
.pico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, white); }
.pico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdetail { position: relative; min-height: 330px; }
.pdetail article { padding: 32px; border-radius: 24px; background: var(--tint); border: 1px solid var(--line); animation: fadeUp .35s ease; }
.pdetail article[hidden] { display: none; }
.pdetail h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.pdetail p { color: var(--muted); margin: 0; }
.pdetail .more { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--orange); }
.tag { display: inline-block; font: 700 .72rem/1 "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.tag-orange { background: rgba(246,139,31,.14); color: #c46a0c; }
.tag-green { background: rgba(47,174,79,.14); color: #1f8a3c; }
.tag-gold { background: rgba(201,151,60,.16); color: #966b1f; }
.tag-blue { background: rgba(23,100,168,.12); color: var(--blue); }

/* ---------- UniPay simulator ---------- */
#unipay { background: radial-gradient(700px 400px at 90% 0%, rgba(246,139,31,.15), transparent 60%), var(--navy); }
.unipay-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
.unipay-head h2 { margin: 0; }
.unipay-head p { margin: 0; }
.sim { border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); padding: 20px; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sim-controls button {
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #dbe5f2;
  font: 600 .88rem/1 "Manrope", sans-serif; transition: all .2s;
}
.sim-controls button:hover { border-color: var(--orange); color: #fff; }
.sim-controls button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.sim-controls button:disabled { opacity: .5; cursor: wait; }
.sim-controls button[aria-pressed="true"]:disabled { opacity: 1; }
.sim-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.flow { margin: 0; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.18); }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .links path { stroke: rgba(255,255,255,.28); stroke-width: 2; stroke-dasharray: 5 5; animation: dash 1.2s linear infinite; transition: stroke .3s; }
.flow .links path.on { stroke: var(--orange); stroke-width: 3; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(246,139,31,.8)); }
.flow .node { cursor: help; outline: none; }
.flow .node rect { fill: #13325c; stroke: rgba(26,163,207,.6); transition: fill .3s, stroke .3s; }
.flow .node:hover rect, .flow .node:focus rect { stroke: #fff; }
.flow .node.on rect { fill: #1d4a80; stroke: var(--orange); stroke-width: 2; }
.flow .node-engine circle { transition: filter .3s; }
.flow .node-engine.on circle, .flow .node-engine:hover circle, .flow .node-engine:focus circle { filter: drop-shadow(0 0 14px rgba(246,139,31,.9)); }
.flow .node-y rect { fill: #f7e33b; stroke: none; }
.flow .node-y text { fill: #0a1f3c; }
.flow .node-r rect { fill: #fff; stroke: none; }
.flow .node-r text { fill: #d6252f; }
.flow .node-y.on rect, .flow .node-r.on rect { stroke: var(--orange); stroke-width: 3; }
.flow text { fill: #fff; font: 600 11px "Inter", sans-serif; text-anchor: middle; pointer-events: none; }
.flow .u-letter { font: 800 40px "Manrope", sans-serif; }
.flow .caption { fill: #c9d6e8; font-size: 12px; }
.flow .caption.small { font-size: 10px; fill: #8ea3c0; }
.flow .packet { fill: #fff; filter: drop-shadow(0 0 6px var(--orange)); opacity: 0; transition: opacity .2s; }
.flow .packet.show { opacity: 1; }
.node-info { margin-top: 10px; min-height: 3.2em; font-size: .88rem; color: #b9c8dd; }
@keyframes dash { to { stroke-dashoffset: -20; } }

.sim-log { display: flex; flex-direction: column; border-radius: 18px; background: #06152a; border: 1px solid rgba(255,255,255,.08); padding: 16px 18px; font-size: .86rem; }
.sim-log-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); font: 700 .8rem/1 "Manrope", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8ea3c0; }
.sim-status { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #c9d6e8; letter-spacing: .04em; }
.sim-status.run { background: rgba(246,139,31,.2); color: var(--orange); }
.sim-status.ok { background: rgba(47,174,79,.2); color: #6fdc8c; }
.sim-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.sim-log li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: #dbe5f2; animation: fadeUp .3s ease; }
.sim-log li.muted { display: block; color: #8ea3c0; }
.sim-log li::before { content: attr(data-n); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(246,139,31,.2); color: var(--orange); font: 800 .72rem/1 "Manrope", sans-serif; }
.sim-log li.muted::before { content: none; }
.sim-log li.done::before { background: var(--green); color: #fff; content: "✓"; }
.sim-log code { background: rgba(255,255,255,.08); color: #ffd5a8; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 56px 0; padding: 0 4px; }
.specs > div { border-left: 3px solid var(--orange); padding-left: 18px; }
.specs h3 { font-size: 1.05rem; margin-bottom: 6px; }
.specs p { margin: 0; font-size: .94rem; }

.gantt-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: 32px; border-radius: 24px; background: rgba(246,139,31,.07); border: 1px solid rgba(246,139,31,.25); }
.gantt-intro p { margin: 0; font-size: .96rem; }
.gantt { --total: 28; display: grid; gap: 8px; }
.g-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.g-label { font-size: .85rem; color: #dbe5f2; }
.g-track { position: relative; height: 28px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 calc(25% - 1px), rgba(255,255,255,.12) calc(25% - 1px) 25%); }
.g-track i {
  position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) / var(--total) * 100%); width: calc(var(--d) / var(--total) * 100%);
  min-width: 30px; border-radius: 6px; background: linear-gradient(90deg, #ff9f2e, #f07b00); color: #fff; cursor: help;
  display: grid; place-items: center; font: 700 .72rem/1 "Manrope", sans-serif; font-style: normal; white-space: nowrap;
  transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.gantt-wrap.in .g-track i { transform: scaleX(1); }
.g-row:nth-child(2) i { transition-delay: .15s; } .g-row:nth-child(3) i { transition-delay: .3s; }
.g-row:nth-child(4) i { transition-delay: .45s; } .g-row:nth-child(5) i { transition-delay: .6s; }
.g-track i:hover, .g-track i:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.5); outline: none; }
.g-axis { display: grid; grid-template-columns: repeat(4, 1fr); margin-left: 182px; font-size: .74rem; color: #8ea3c0; }
.g-note { margin: 4px 0 0 182px; min-height: 2.6em; font-size: .85rem; color: #ffd5a8; }

/* ---------- Tapcard ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.timeline li { position: relative; padding-top: 26px; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--green); }
.timeline span { display: block; font: 800 .92rem/1.2 "Manrope", sans-serif; color: var(--ink); margin-bottom: 4px; }

.tapsim { padding: 24px; border-radius: 24px; background: var(--tint); border: 1px solid var(--line); }
.tapsim-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 230px; }
.bpos {
  position: relative; justify-self: center; width: 170px; padding: 16px 14px 12px; border-radius: 26px 26px 18px 18px;
  background: linear-gradient(160deg, #2a4fd6, #1a33a8); box-shadow: 0 20px 40px -18px rgba(26,51,168,.8);
  display: grid; gap: 10px; justify-items: center; z-index: 1;
}
.bpos-waves { position: relative; width: 54px; height: 40px; }
.bpos-waves span { position: absolute; left: 50%; top: 100%; border: 2px solid rgba(255,255,255,.85); border-bottom-color: transparent; border-left-color: transparent; border-radius: 50%; transform: translate(-50%, -50%) rotate(-45deg); }
.bpos-waves span:nth-child(1) { width: 18px; height: 18px; }
.bpos-waves span:nth-child(2) { width: 36px; height: 36px; }
.bpos-waves span:nth-child(3) { width: 54px; height: 54px; }
.bpos.reading .bpos-waves span { animation: blink .5s ease-in-out infinite alternate; }
.bpos.reading .bpos-waves span:nth-child(2) { animation-delay: .15s; } .bpos.reading .bpos-waves span:nth-child(3) { animation-delay: .3s; }
.bpos-screen { width: 100%; min-height: 76px; border-radius: 10px; background: #fff; display: grid; place-content: center; text-align: center; padding: 8px; transition: background .3s; }
.bpos-title { font: 700 .8rem/1.3 "Manrope", sans-serif; color: var(--muted); }
.bpos-amt { font: 800 1.25rem/1.2 "Manrope", sans-serif; color: var(--ink); }
.bpos.ok .bpos-screen { background: #e7f8ec; }
.bpos.ok .bpos-title { color: var(--green); }
.bpos.err .bpos-screen { background: #fde8e8; }
.bpos.err .bpos-title { color: #d6252f; }
.bpos-brand { font: 700 .7rem/1 "Manrope", sans-serif; letter-spacing: .14em; color: rgba(255,255,255,.8); }
.tcard { justify-self: center; width: 100%; max-width: 230px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; transform: rotate(8deg); transition: transform .45s cubic-bezier(.3,.7,.3,1); z-index: 2; }
.tcard img { border-radius: 14px; box-shadow: 0 24px 40px -18px rgba(15,47,90,.7); }
.tcard:hover { transform: rotate(3deg) translateY(-6px); }
.tcard.tapping { transform: translateX(-62%) rotate(-4deg) scale(.82); }
.tapsim-panel { margin-top: 18px; display: grid; gap: 14px; }
.tapsim-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tapsim-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.tapsim-stats small { display: block; font-size: .78rem; color: var(--muted); }
.tapsim-stats strong { font: 800 1.4rem/1.2 "Manrope", sans-serif; transition: color .3s; }
.tapsim-stats strong.low { color: #d6252f; }
.tapsim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-log-head { font: 700 .75rem/1 "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ts-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-log li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .84rem; animation: fadeUp .3s ease; }
.ts-log li.muted { justify-content: center; }
.ts-log b { font-weight: 700; }
.ts-log .fail { color: #d6252f; }
.ts-log .topup { color: var(--green); }
@keyframes blink { from { opacity: .25; } to { opacity: 1; } }

.eco { margin-top: 80px; background: var(--tint); border-radius: 28px; padding: 40px; }
.eco-title { text-align: center; font-size: 1.5rem; margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tabs button { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .9rem/1 "Manrope", sans-serif; color: var(--muted); cursor: pointer; transition: all .2s; }
.tabs button:hover { color: var(--ink); border-color: #c4d3e4; }
.tabs button[aria-selected="true"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.tab-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; animation: fadeUp .4s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel > img { border-radius: 16px; box-shadow: var(--shadow-lg); background: #fff; }
.tab-panel p { color: var(--muted); }
.hint { font-size: .9rem; }

.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef3f9; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd9e5; }
.mock-bar em { margin-left: 8px; font-style: normal; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mock-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 7px 12px; border: 0; background: #fff; cursor: pointer; font: 600 .78rem/1 "Manrope", sans-serif; color: var(--muted); border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--navy-2); color: #fff; }
.mock-search { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font: .82rem "Inter", sans-serif; min-width: 0; width: 160px; }
.mock-table-wrap { max-height: 230px; overflow: auto; }
.mock-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mock-table th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 600; color: var(--muted); padding: 8px 14px; border-bottom: 2px solid var(--line); }
.mock-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table tr { animation: fadeUp .3s ease both; }
.st-ok { color: var(--green); font-weight: 700; }
.st-fail { color: #d6252f; font-weight: 700; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .78rem; color: var(--muted); background: #fafcfe; }

/* ---------- Sahara ---------- */
#sahara { background: radial-gradient(700px 450px at 100% 0%, rgba(47,174,79,.2), transparent 60%), #08243a; }
.fuel-card { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 20px; box-shadow: 0 40px 70px -25px rgba(0,0,0,.7); transform: rotate(4deg); transition: transform .5s; }
.fuel-card:hover { transform: rotate(0) scale(1.02); }

.stepper { margin: 72px 0 40px; padding: 28px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.stepper-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.stepper-head h3 { margin: 0; }
.st-track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.st-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; background: rgba(255,255,255,.15); }
.st-track::after { content: ""; position: absolute; left: 6%; top: 17px; height: 2px; width: calc(var(--p, 0) * 88%); background: var(--green); transition: width .4s; }
.st-track button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: #8ea3c0; font: 600 .75rem/1.25 "Manrope", sans-serif; text-align: center; }
.st-track b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0d2e4a; border: 2px solid rgba(255,255,255,.2); color: #c9d6e8; font-size: .85rem; transition: all .3s; }
.st-track button.done b { background: var(--green); border-color: var(--green); color: #fff; }
.st-track button[aria-selected="true"] { color: #fff; }
.st-track button[aria-selected="true"] b { background: #fff; border-color: var(--green); color: var(--green); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(47,174,79,.25); }
.st-detail { margin-top: 26px; padding: 20px 22px; border-radius: 16px; background: rgba(0,0,0,.2); min-height: 120px; animation: fadeUp .35s ease; }
.st-actor { display: inline-block; font: 700 .72rem/1 "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #08243a; background: var(--green); padding: 5px 9px; border-radius: 6px; margin-bottom: 10px; }
.st-detail p { margin: 0; }

.hotspots-wrap { display: grid; grid-template-columns: 1.45fr .85fr; gap: 36px; align-items: start; }
.hotspots { position: relative; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hotspots img { border-radius: 16px; border: 1px solid rgba(255,255,255,.1); }
.hs {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font: 800 .8rem/1 "Manrope", sans-serif;
  box-shadow: 0 0 0 0 rgba(47,174,79,.6); animation: ping 2s infinite;
}
.hs[aria-pressed="true"] { background: var(--orange); animation: none; box-shadow: 0 0 0 6px rgba(246,139,31,.35); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,174,79,.6); } 70% { box-shadow: 0 0 0 12px rgba(47,174,79,0); } 100% { box-shadow: 0 0 0 0 rgba(47,174,79,0); } }
.hs-info { padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; min-height: 120px; }
.hs-info p { margin: 0; font-size: .94rem; }
.hs-side h5 { font-size: .95rem; margin-bottom: 4px; }
.hs-side .tick-list { font-size: .9rem; }

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { align-items: center; }
.marquee-track li {
  display: flex; align-items: center; justify-content: center; height: 96px; padding: 0 30px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
  font: 800 1.05rem/1 "Manrope", sans-serif; color: var(--navy-2); white-space: nowrap;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.marquee-track li.logo { padding: 0 24px; }
.marquee-track li.logo-wide img { max-width: 340px; height: 56px; }
.marquee-track li img { height: 64px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.marquee-track li:hover { border-color: var(--cyan); color: var(--blue); box-shadow: var(--shadow); }
.marquee-track li:hover img { filter: none; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
#contact { background: radial-gradient(700px 500px at 0% 100%, rgba(26,163,207,.25), transparent 60%), var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; fill: var(--cyan); color: var(--cyan); margin-top: 3px; }
.contact-list a { color: #fff; }
.contact-form { background: #fff; color: var(--ink); padding: 36px; border-radius: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d4dde8; background: #fbfcfe; font: 400 .95rem "Inter", sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(26,163,207,.15); background: #fff; }
.contact-form .invalid { border-color: #d6252f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #d6252f; }

/* ---------- Footer ---------- */
.site-footer { background: #071629; color: #8ea3c0; padding: 64px 0 24px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a:not(.brand) { display: block; color: #8ea3c0; margin-bottom: 8px; }
.site-footer a:not(.brand):hover { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.brand-footer img { background: #fff; border-radius: 50%; padding: 4px; }
.brand-footer small { color: #8ea3c0; }
.tagline { font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .9rem; }
  .sim-body { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .split, .contact-grid, .pmap-wrap, .unipay-head, .gantt-wrap, .hotspots-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin: 0 auto; max-width: 380px; }
  .tab-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdetail { min-height: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(10,31,60,.3);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { display: none; }
  .specs { grid-template-columns: 1fr; gap: 22px; }
  .st-track { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .st-track::before, .st-track::after { display: none; }
}

@media (max-width: 680px) {
  /* product map collapses into a grid of buttons */
  .pmap { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pmap::before, .pmap-lines { display: none; }
  .pnode, .pnode.hub { position: static; transform: none; width: auto; aspect-ratio: auto; border-radius: 14px; padding: 12px 8px; }
  .pnode:hover { transform: none; }
  .pnode.hub { grid-column: 1 / -1; }
  .pnode.hub::after { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .chip { font-size: .72rem; padding: 8px 12px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .stats strong { font-size: 1.8rem; }
  .vmv > div { grid-template-columns: 1fr; gap: 4px; }
  .glance { padding: 24px; }
  .pdetail article { padding: 24px; }
  .sim { padding: 14px; }
  .flow { padding: 8px; }
  .gantt-wrap { padding: 22px 16px; }
  .g-row { grid-template-columns: 1fr; gap: 4px; }
  .g-axis, .g-note { margin-left: 0; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .timeline::before { display: none; }
  .tapsim { padding: 16px; }
  .tapsim-stage { min-height: 190px; }
  .bpos { width: 140px; }
  .tcard { max-width: 170px; }
  .eco { padding: 24px 16px; border-radius: 20px; margin-top: 60px; }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tabs button { flex: none; }
  .mock-search { width: 100%; }
  .stepper { padding: 20px 16px; }
  .st-track { grid-template-columns: repeat(4, 1fr); }
  .contact-form { padding: 24px; }
}
