/* ============================================================
   StarPay — "Luminous Ledger" design system
   Color grammar: orange = money IN · blue = money OUT
   indigo = digital dollars only · green = success only
   ============================================================ */

:root {
  --canvas: #FBFAF7;
  --paper: #FFFFFF;
  --ink: #142347;
  --body-c: #45536F;
  --muted: #7E879B;
  --border: #E6E4DC;
  --border-blue: #E4EAF5;

  --orange: #E8420A;
  --orange-deep: #C93607;
  --orange-bright: #FF7A45;
  --gold: #F5A800;
  --gold-light: #FFC24B;

  --blue: #1A56DB;
  --blue-bright: #2E7DFF;
  --blue-soft: #8DB6FF;

  --navy: #0A1830;
  --navy-2: #0F2145;
  --navy-3: #16326B;
  --navy-line: rgba(141, 182, 255, 0.14);

  --indigo: #5B37C9;
  --indigo-bright: #7C5CFC;
  --indigo-tint: #F4F1FC;

  --green: #2FB673;
  --warm-tint: #FFF3E9;

  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "SFMono-Regular", monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(20, 35, 71, 0.05), 0 8px 28px rgba(20, 35, 71, 0.07);
  --shadow-2: 0 2px 6px rgba(20, 35, 71, 0.07), 0 20px 48px rgba(20, 35, 71, 0.12);
  --wrap: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-c);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-light); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 108px 0; position: relative; }
.section-tight { padding: 72px 0; }

/* Kente-derived hairline flow pattern on light sections */
.kente-bg { position: relative; }
.kente-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 118px, rgba(232, 66, 10, 0.05) 118px 120px,
      transparent 120px 178px, rgba(26, 86, 219, 0.05) 178px 180px,
      transparent 180px 320px, rgba(245, 168, 0, 0.05) 320px 322px,
      transparent 322px 460px);
  pointer-events: none;
}
.kente-bg > .container { position: relative; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "✦"; font-size: 0.85rem; color: var(--gold);
}
.eyebrow.eb-blue { color: var(--blue); }
.eyebrow.eb-indigo { color: var(--indigo); }
.eyebrow.eb-light { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lede { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--body-c); }
.dark .lede { color: #B8C6E4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--orange) 10%, #F06011 55%, var(--gold) 130%);
  color: #fff; box-shadow: 0 8px 24px rgba(232, 66, 10, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232, 66, 10, 0.4); }
.btn-ghost { border-color: rgba(20, 35, 71, 0.22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-navy { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(20, 35, 71, 0.28); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20, 35, 71, 0.36); }
.btn-blue { background: linear-gradient(120deg, var(--blue) 15%, var(--blue-bright) 110%); color: #fff; box-shadow: 0 8px 24px rgba(26, 86, 219, 0.32); }
.btn-blue:hover { transform: translateY(-2px); }
.btn-indigo { background: linear-gradient(120deg, var(--indigo) 10%, var(--indigo-bright) 110%); color: #fff; box-shadow: 0 8px 26px rgba(91, 55, 201, 0.36); }
.btn-indigo:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(91, 55, 201, 0.44); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.92rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--border-blue);
  padding: 7px 14px; border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-in { background: var(--orange); }
.dot-out { background: var(--blue); }
.dot-idg { background: var(--indigo-bright); }
.dot-ok { background: var(--green); }

.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--indigo); background: var(--indigo-tint);
  border: 1px solid #DDD3F6; padding: 8px 16px; border-radius: 999px;
}
.status-chip .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-bright);
  animation: pulse 2.2s ease-in-out infinite;
}
.status-chip.live { color: #157A4C; background: #E9F8F0; border-color: #C4EBD7; }
.status-chip.live .pulse { background: var(--green); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(124, 92, 252, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(20, 35, 71, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 34px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.98rem; font-weight: 600; color: var(--ink);
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width 0.22s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--orange-deep); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px; color: var(--ink);
}
.mobile-menu {
  display: none; background: var(--canvas);
  border-bottom: 1px solid var(--border); padding: 10px 28px 26px;
}
.mobile-menu a {
  display: block; padding: 13px 4px; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: 48px; align-items: center;
}
.hero h1 .accent {
  background: linear-gradient(115deg, var(--orange) 20%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin: 26px 0 34px; max-width: 540px; }
.hero-micro { margin-top: 18px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-micro .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(20, 35, 71, 0.14)); }

/* ---------- Rails / trust strip ---------- */
.rails-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; padding: 34px 0; }
.rails-label {
  text-align: center; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.rails { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 44px; }
.rail-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: #9BA6BC; letter-spacing: -0.01em; position: relative; padding-bottom: 4px;
  transition: color 0.2s ease; cursor: default;
}
.rail-mark img, .rail-mark svg.brand { height: 28px; width: auto; display: block; }
.rail-mark img.wordmark { height: 20px; }
.rail-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.rail-mark:hover { color: var(--ink); }
.rail-mark:hover::after { transform: scaleX(1); }
.fact-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Dark sections ---------- */
.dark {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(26, 86, 219, 0.28), transparent 62%),
    radial-gradient(900px 480px at 8% 110%, rgba(232, 66, 10, 0.16), transparent 60%),
    var(--navy);
  color: #B8C6E4;
}
.dark h2, .dark h3 { color: #fff; }
.darker { background: radial-gradient(1000px 500px at 50% -20%, rgba(26, 86, 219, 0.22), transparent 60%), #060F22; color: #B8C6E4; }
.darker h2, .darker h3 { color: #fff; }
.orbit-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-bg svg { position: absolute; width: 1400px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.5; }

/* ---------- Cards & tiles ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.tile {
  background: var(--paper); border: 1px solid var(--border-blue);
  border-radius: var(--r-md); padding: 30px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tile h3 { margin: 16px 0 10px; font-size: 1.12rem; }
.tile p { font-size: 0.97rem; }
.tile:hover { transform: translateY(-4px); }
.tile.glow-in:hover { box-shadow: 0 18px 40px rgba(232, 66, 10, 0.14); border-color: #F8C9B4; }
.tile.glow-out:hover { box-shadow: 0 18px 40px rgba(26, 86, 219, 0.14); border-color: #BCD2F8; }
.tile.glow-idg:hover { box-shadow: 0 18px 40px rgba(91, 55, 201, 0.16); border-color: #D5C8F8; }

.tile-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tile-icon svg { width: 23px; height: 23px; }
.ic-in { background: linear-gradient(135deg, #FFE9DD, #FFF4E0); color: var(--orange-deep); }
.ic-out { background: linear-gradient(135deg, #E3EDFF, #EDF4FF); color: var(--blue); }
.ic-idg { background: linear-gradient(135deg, #EDE6FC, #F5F0FE); color: var(--indigo); }
.ic-ok { background: #E9F8F0; color: #157A4C; }

.tile-dark {
  background: rgba(15, 33, 69, 0.62); border: 1px solid var(--navy-line);
  border-radius: var(--r-md); padding: 28px 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.tile-dark:hover { transform: translateY(-4px); border-color: rgba(141, 182, 255, 0.35); }
.tile-dark h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.tile-dark p { font-size: 0.95rem; color: #9FB2D8; }

/* ---------- Ledger flow diagram (HTML version) ---------- */
.ledger-flow {
  display: grid; grid-template-columns: 1fr 90px 1.15fr 90px 1fr;
  align-items: stretch; gap: 0; margin: 26px 0 54px;
}
.flow-node {
  background: rgba(15, 33, 69, 0.66); border: 1px solid var(--navy-line);
  border-radius: var(--r-md); padding: 26px 24px; position: relative; z-index: 1;
}
.flow-node h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.flow-node ul { list-style: none; margin-top: 14px; }
.flow-node li { font-size: 0.92rem; color: #9FB2D8; padding: 5px 0 5px 20px; position: relative; }
.flow-node li::before { content: "·"; position: absolute; left: 6px; color: var(--blue-soft); font-weight: 800; }
.flow-node.in li::before { color: var(--gold); }
.flow-core {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2) 65%);
  border: 1px solid rgba(141, 182, 255, 0.3);
  box-shadow: 0 0 60px rgba(46, 125, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.flow-core .core-star { font-size: 1.5rem; color: var(--gold); }
.ledger-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ledger-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.8rem;
  background: rgba(10, 24, 48, 0.65); border: 1px solid var(--navy-line);
  padding: 9px 12px; border-radius: 9px; color: #B8C6E4;
}
.ledger-row .amt-in { color: var(--gold-light); font-weight: 600; }
.ledger-row .amt-out { color: var(--blue-soft); font-weight: 600; }
.ledger-row .ok { color: var(--green); }

.flow-line { position: relative; align-self: center; height: 3px; }
.flow-line::before {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background-image: linear-gradient(90deg, currentColor 0 12px, transparent 12px 24px);
  background-size: 24px 3px; opacity: 0.85;
  animation: dashFlow 1.1s linear infinite;
}
.flow-line.f-in { color: var(--orange-bright); }
.flow-line.f-out { color: var(--blue-bright); }
@keyframes dashFlow { to { background-position: 24px 0; } }

/* ---------- Dashboard mockup ---------- */
.dash {
  background: #fff; border: 1px solid var(--border-blue); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden; font-size: 0.9rem;
}
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border-blue); background: #FCFDFF;
}
.dash-title { font-weight: 800; color: var(--ink); font-family: var(--font-display); display: flex; align-items: center; gap: 10px; }
.dash-title .logo-s { color: var(--orange); }
.dash-body { padding: 22px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-stat { background: #F7F9FE; border: 1px solid var(--border-blue); border-radius: 12px; padding: 14px 16px; }
.dash-stat .k { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.dash-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin-top: 4px; }
.dash-stat .v.ok { color: #157A4C; }
.dash-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 4px; border-bottom: 1px dashed var(--border-blue);
}
.dash-row:last-child { border-bottom: none; }
.dash-row .who { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.dash-row .sub { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.dash-amt-in { color: var(--orange-deep); font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; }
.dash-amt-out { color: var(--blue); font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; }
.pill { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-ok { background: #E9F8F0; color: #157A4C; }
.pill-warn { background: #FFF1E8; color: var(--orange-deep); }
.pill-info { background: #EDF4FF; color: var(--blue); }

/* Failover timeline */
.timeline { margin-top: 6px; padding: 16px 18px; background: #F7F9FE; border: 1px solid var(--border-blue); border-radius: 12px; }
.tl-step { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 0.86rem; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.tl-x { background: #E25555; }
.tl-arrow { background: var(--gold); }
.tl-ok { background: var(--green); }
.tl-step b { color: var(--ink); }
.tl-step .t { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); white-space: nowrap; }

/* ---------- Code panel ---------- */
.code-panel {
  background: #081226; border: 1px solid rgba(141, 182, 255, 0.18);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 24px 56px rgba(6, 15, 34, 0.45);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid rgba(141, 182, 255, 0.12);
}
.code-head .cd { width: 11px; height: 11px; border-radius: 50%; }
.code-head .cd:nth-child(1) { background: #E25555; }
.code-head .cd:nth-child(2) { background: var(--gold); }
.code-head .cd:nth-child(3) { background: var(--green); }
.code-head .fname { margin-left: 10px; font-family: var(--font-mono); font-size: 0.76rem; color: #7E93BE; }
.code-panel pre {
  padding: 20px 22px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.75; color: #C9D7F2;
}
.c-method { color: var(--orange-bright); font-weight: 600; }
.c-path { color: #fff; }
.c-key { color: var(--blue-soft); }
.c-str { color: var(--gold-light); }
.c-num { color: #7C5CFC; }
.c-com { color: #5D6F96; font-style: italic; }
.c-ok { color: var(--green); }
.c-prompt { color: #5D6F96; }

/* ---------- Phone mockups ---------- */
.phones { display: flex; gap: 26px; justify-content: center; align-items: flex-start; }
.phone {
  width: 252px; flex: none; background: var(--navy);
  border-radius: 38px; padding: 10px;
  box-shadow: 0 34px 64px rgba(20, 35, 71, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone.tilt-l { transform: rotate(-4deg) translateY(16px); }
.phone.tilt-r { transform: rotate(3.5deg); }
.phone-screen {
  background: linear-gradient(175deg, #FDFEFF, #F2F6FE);
  border-radius: 30px; overflow: hidden; min-height: 480px;
  display: flex; flex-direction: column; font-size: 0.82rem;
}
.phone-notch { width: 86px; height: 22px; background: var(--navy); border-radius: 0 0 14px 14px; margin: 0 auto; }
.ps-pad { padding: 16px 18px; }
.ps-greet { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.ps-balance { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; color: var(--ink); letter-spacing: -0.01em; }
.ps-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.ps-action {
  background: #fff; border: 1px solid var(--border-blue); border-radius: 12px;
  padding: 10px 4px; text-align: center; font-size: 0.62rem; font-weight: 700; color: var(--ink);
}
.ps-action .ico { display: flex; justify-content: center; margin-bottom: 5px; }
.ps-action .ico svg { width: 20px; height: 20px; color: var(--blue); }
.ps-txn { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-blue); }
.ps-txn .n { font-weight: 700; color: var(--ink); font-size: 0.78rem; }
.ps-txn .s { display: block; font-weight: 500; font-size: 0.66rem; color: var(--muted); }
.ps-txn .a-out { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--blue); white-space: nowrap; flex: none; padding-left: 8px; }
.ps-txn .a-in { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--orange-deep); white-space: nowrap; flex: none; padding-left: 8px; }

/* Ticket + QR */
.ticket {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-blue); box-shadow: var(--shadow-2);
}
.ticket-top { background: linear-gradient(120deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 18px 20px; }
.ticket-top .ev { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.ticket-top .dt { font-size: 0.76rem; color: var(--blue-soft); margin-top: 3px; }
.ticket-cut { position: relative; border-top: 2px dashed var(--border-blue); }
.ticket-cut::before, .ticket-cut::after {
  content: ""; position: absolute; top: -9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--warm-tint);
}
.ticket-cut::before { left: -10px; } .ticket-cut::after { right: -10px; }
.ticket-body { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.ticket-meta { font-size: 0.78rem; color: var(--muted); }
.ticket-meta b { display: block; color: var(--ink); font-size: 0.9rem; }

/* Campaign card */
.campaign {
  background: #fff; border: 1px solid var(--border-blue); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-1);
}
.campaign h3 { font-size: 1.06rem; }
.campaign .loc { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.progress { height: 10px; background: #F0E9E0; border-radius: 999px; margin: 18px 0 10px; overflow: hidden; }
.progress .bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress.in-view .bar { width: var(--pct, 76%); }
.camp-nums { display: flex; justify-content: space-between; font-size: 0.85rem; }
.camp-nums b { color: var(--ink); }
.avatars { display: flex; margin-top: 16px; align-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.av-1 { background: var(--blue); } .av-2 { background: var(--orange); }
.av-3 { background: var(--indigo); } .av-4 { background: #157A4C; }
.avatars .more { margin-left: 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }

/* ---------- Day-in-the-life strip ---------- */
.day-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.day-card {
  background: #fff; border: 1px solid var(--border-blue); border-radius: var(--r-md);
  padding: 22px; position: relative; overflow: hidden;
}
.day-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.day-card .t { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--orange-deep); }
.day-card h3 { font-size: 1rem; margin: 10px 0 6px; }
.day-card p { font-size: 0.88rem; }

/* ---------- Quote widget (trading) ---------- */
.quote-card {
  background: #fff; border: 1px solid #E2DBF5; border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(91, 55, 201, 0.18); padding: 26px; max-width: 440px;
}
.quote-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--indigo-tint); padding: 6px; border-radius: 14px; margin-bottom: 20px; }
.quote-tab {
  border: none; background: transparent; padding: 11px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--muted); cursor: pointer;
  transition: all 0.18s ease;
}
.quote-tab.on { background: #fff; color: var(--indigo); box-shadow: 0 4px 14px rgba(91, 55, 201, 0.16); }
.q-field { background: #FAF9FD; border: 1px solid #E9E4F7; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.q-field label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 6px; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-row input {
  border: none; background: transparent; outline: none; width: 100%;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--ink);
}
.q-cur { font-weight: 800; font-family: var(--font-display); color: var(--indigo); font-size: 1.05rem; flex: none; }
.q-breakdown { border-top: 1px dashed #E2DBF5; margin-top: 8px; padding-top: 14px; font-size: 0.88rem; }
.q-line { display: flex; justify-content: space-between; padding: 4px 0; }
.q-line b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 0.84rem; }
.q-lock { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.q-ring { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; color: var(--indigo); background: conic-gradient(var(--indigo-bright) calc(var(--p) * 1%), #EDE8FA 0); }
.q-ring span { background: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--border-blue); border-radius: var(--r-md); padding: 30px 26px 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--gold)); box-shadow: 0 8px 18px rgba(232, 66, 10, 0.3);
}
.steps.blue .step::before { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); box-shadow: 0 8px 18px rgba(26, 86, 219, 0.3); }
.steps.idg .step::before { background: linear-gradient(135deg, var(--indigo), var(--indigo-bright)); box-shadow: 0 8px 18px rgba(91, 55, 201, 0.3); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-blue); border-radius: var(--r-md); background: #fff; }
table.sp { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.sp th {
  text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); padding: 16px 20px; border-bottom: 1px solid var(--border-blue); background: #FCFCFA;
}
table.sp td { padding: 16px 20px; border-bottom: 1px solid var(--border-blue); color: var(--body-c); }
table.sp tr:last-child td { border-bottom: none; }
table.sp td b { color: var(--ink); }
table.sp .mono { font-family: var(--font-mono); font-size: 0.84rem; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--border-blue); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--border-blue); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 22px 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.acc-q .chev { flex: none; transition: transform 0.25s ease; color: var(--orange); font-size: 1.1rem; }
.acc-q.open .chev { transform: rotate(45deg); }
.acc-a { padding: 0 26px 24px; font-size: 0.98rem; max-width: 760px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: var(--font-body);
  border: 1.5px solid var(--border-blue); background: #fff; font-size: 1rem; color: var(--ink);
  outline: none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(46, 125, 255, 0.12);
}
.form-success {
  background: #E9F8F0; border: 1px solid #C4EBD7; color: #135E3C;
  padding: 18px 22px; border-radius: var(--r-md); font-weight: 600;
}

/* ---------- Split CTA panel ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cta-panel {
  border-radius: var(--r-lg); padding: 44px 40px; position: relative; overflow: hidden;
}
.cta-panel h3 { font-size: 1.55rem; margin-bottom: 10px; }
.cta-panel p { margin-bottom: 26px; max-width: 380px; }
.cta-biz { background: linear-gradient(150deg, var(--navy-2), var(--navy) 75%); color: #B8C6E4; border: 1px solid var(--navy-line); }
.cta-biz h3 { color: #fff; }
.cta-life { background: linear-gradient(150deg, #FFF1E4, #FFE4CE); border: 1px solid #F6D4BC; }
.cta-life p { color: #7A5237; }
.cta-panel .glyph { position: absolute; right: -30px; bottom: -42px; font-size: 11rem; opacity: 0.1; font-family: var(--font-display); font-weight: 800; line-height: 1; }

/* ---------- Media gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .tall { grid-row: span 2; }
.g-tile {
  border-radius: var(--r-md); overflow: hidden; position: relative; min-height: 210px;
  display: flex; align-items: flex-end; border: 1px solid var(--border-blue);
}
.g-tile .cap {
  position: relative; z-index: 1; padding: 18px 20px; color: #fff; font-weight: 600; font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(6, 15, 34, 0.6); width: 100%;
  background: linear-gradient(transparent, rgba(6, 15, 34, 0.72));
}
.g-1 { background: linear-gradient(140deg, var(--navy-2), var(--navy-3)); }
.g-2 { background: linear-gradient(140deg, #E8420A, #F5A800); }
.g-3 { background: linear-gradient(140deg, #1A56DB, #2E7DFF); }
.g-4 { background: linear-gradient(140deg, #5B37C9, #7C5CFC); }
.g-5 { background: linear-gradient(140deg, #0A1830, #16326B); }
.g-6 { background: linear-gradient(140deg, #C93607, #E8420A); }
.g-tile .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: rgba(255, 255, 255, 0.22); font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: #060F22; color: #8FA1C7; padding: 72px 0 40px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer-brand img { height: 44px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer h4 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 18px; font-family: var(--font-body); font-weight: 700;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer a { color: #8FA1C7; font-size: 0.93rem; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(141, 182, 255, 0.12); padding-top: 30px; font-size: 0.82rem; }
.footer-legal .disclaimer { max-width: 860px; line-height: 1.7; color: #6B7FA8; margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #6B7FA8; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.footnote { font-size: 0.84rem; color: var(--muted); max-width: 640px; }
.dark .footnote, .darker .footnote { color: #6B7FA8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-wide { grid-template-columns: 1.1fr 1fr; }
.badge-soon {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo); background: var(--indigo-tint);
  padding: 4px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .cta-split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .day-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ledger-flow { grid-template-columns: 1fr; gap: 0; }
  .flow-line { width: 3px; height: 56px; justify-self: center; }
  .flow-line::before {
    background-image: linear-gradient(180deg, currentColor 0 12px, transparent 12px 24px);
    background-size: 3px 24px;
    animation-name: dashFlowV;
  }
  @keyframes dashFlowV { to { background-position: 0 24px; } }
  .gallery { grid-template-columns: 1fr 1fr; }
  .phones { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 40px; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .mobile-menu { display: block; }
  .grid-2, .grid-3, .grid-4, .steps, .day-strip, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sticky-cta.show-mobile { display: block; }
  .dash-stats { grid-template-columns: 1fr; }
  .phone.tilt-l, .phone.tilt-r { transform: none; }
  body.has-sticky { padding-bottom: 84px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .progress .bar { width: var(--pct, 76%); }
  .ticker-track { animation: none !important; }
}

/* ═══════════════ M-plus: Ramp/MoonPay-inspired marketing components ═══════════════ */

/* Top announcement strip (site-wide, honest regulated line). */
.topbar { background: var(--navy); color: #C7D6F5; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
@media (max-width: 640px) { .topbar a { display: none; } .topbar-inner { justify-content: center; } }

/* Live rates ticker/marquee (MoonPay-style). */
.rates-ticker { border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; gap: 0; animation: tickerScroll 40s linear infinite; }
.rates-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 26px; border-right: 1px solid var(--navy-line); white-space: nowrap; font-family: var(--font-mono); font-size: .86rem; color: #C7D6F5; }
.ticker-item b { color: #fff; font-weight: 700; }
.ticker-item .up { color: var(--green); } .ticker-item .dn { color: var(--gold-light); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* Feature grid — "what makes us different". */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--paper); border: 1px solid var(--border-blue); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-1); }
.feature-card .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-tint); color: var(--indigo); margin-bottom: 14px; }
.feature-card .fi svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.06rem; }
.feature-card p { margin-top: 6px; font-size: .95rem; }

/* Product cards — Buy / Sell / Remittance. */
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .product-cards { grid-template-columns: 1fr; } }
.product-card { border-radius: var(--r-md); padding: 26px; border: 1px solid var(--navy-line); background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #B8C6E4; }
.product-card h3 { color: #fff; font-size: 1.2rem; }
.product-card p { margin: 8px 0 16px; font-size: .95rem; }
.product-card .plink { color: var(--gold-light); font-weight: 600; }

/* Payment rails + networks chips. */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-blue); background: var(--paper); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-1); }
.chip .mono { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* Honest facts band (real product facts, not fabricated stats). */
.facts-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .facts-band { grid-template-columns: 1fr 1fr; } }
.fact { text-align: center; }
.fact .big { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.fact .lbl { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.dark .fact .big { color: #fff; } .dark .fact .lbl { color: var(--blue-soft); }

/* Hero trust line under the CTA. */
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: .84rem; color: var(--blue-soft); }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line b { color: #fff; font-weight: 600; }
