:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-alt: #0c1524;
  --panel: rgba(12, 21, 36, 0.78);
  --panel-strong: rgba(12, 21, 36, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --surface: #e2ecf9;
  --surface-soft: rgba(226, 236, 249, 0.74);
  --text: #e4ecf6;
  --text-soft: rgba(228, 236, 246, 0.68);
  --text-muted: rgba(228, 236, 246, 0.48);
  --slate-900: #0c1524;
  --slate-800: #142036;
  --slate-700: #1e2f4a;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --accent: #06b6d4;
  --accent-2: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.5);
  --success: #10b981;
  --warm: #f59e0b;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(2, 6, 18, 0.5);
  --shadow-soft: 0 18px 40px rgba(2, 6, 18, 0.32);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1240px;
  --transition: 240ms cubic-bezier(.16, .84, .44, 1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(6, 182, 212, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(16, 185, 129, 0.06), transparent),
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(6, 182, 212, 0.04), transparent),
    linear-gradient(180deg, #040810 0%, #081420 40%, #060e1a 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

main {
  overflow: clip;
}

.section {
  position: relative;
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(229, 238, 252, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(6, 182, 212, 0.2); }
}

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

.section-heading--wide {
  max-width: none;
}

.section-heading h2,
.hero-copy h1,
.api-copy h2,
.platform-copy h2,
.contact-copy h2,
.policy-shell h1 {
  margin: 18px 0 14px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-2) 50%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading h2,
.api-copy h2,
.platform-copy h2,
.contact-copy h2,
.policy-shell h1 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.section-heading p,
.hero-lead,
.api-copy p,
.platform-copy p,
.contact-copy p,
.policy-shell p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85), rgba(8, 14, 28, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: var(--shadow), 0 0 0 1px rgba(6, 182, 212, 0.04) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
  will-change: transform;
}

.btn-primary {
  color: #021014;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(6, 182, 212, 0.4), 0 0 80px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.22);
}

.btn-secondary:hover,
.btn-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.32);
}

.btn-nav {
  min-height: 46px;
  padding: 0 20px;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 16px 0;
  transition: padding var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: -1;
}

.site-header.scrolled {
  padding: 8px 0;
}

.site-header.scrolled::after {
  background: rgba(6, 11, 22, 0.78);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 108px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-img {
  width: auto;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.22));
}

.logo-img-footer {
  height: 92px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1 1 auto;
}

.main-nav a:not(.btn) {
  color: rgba(229, 238, 252, 0.76);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), opacity var(--transition);
}

.main-nav a:not(.btn):hover {
  color: var(--white);
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 176px 0 86px;
}

.hero-noise,
.hero-orb {
  position: absolute;
  pointer-events: none;
}

.hero-noise {
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(255,255,255,0.08) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}

.hero-orb {
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}

.hero-orb-a {
  top: 40px;
  left: -140px;
  background: rgba(6, 182, 212, 0.35);
}

.hero-orb-b {
  top: 20px;
  right: -160px;
  background: rgba(16, 185, 129, 0.15);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
  max-width: 11.5ch;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
}

.hero-stat {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-2);
}

.hero-stat span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.flow-card {
  width: min(100%, 560px);
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  padding: 28px;
}

.flow-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
}

.flow-node,
.hero-status-strip {
  position: absolute;
  z-index: 2;
}

.flow-node {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(13, 22, 40, 0.9), rgba(11, 18, 33, 0.78));
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}

.flow-node span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.flow-node strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.flow-node-center {
  top: 50%;
  left: 50%;
  min-width: 200px;
  text-align: center;
  transform: translate(-50%, -50%);
  padding: 22px;
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12) inset, 0 30px 60px rgba(2, 6, 18, 0.5);
}

.flow-node-top-left { top: 82px; left: 32px; }
.flow-node-bottom-left { bottom: 132px; left: 42px; }
.flow-node-top-right { top: 96px; right: 34px; }
.flow-node-bottom-right { bottom: 122px; right: 38px; }

.flow-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.5), rgba(16,185,129,0.12));
}

.flow-line-1 {
  top: 164px;
  left: 146px;
  width: 170px;
  transform: rotate(29deg);
}

.flow-line-2 {
  bottom: 205px;
  left: 160px;
  width: 164px;
  transform: rotate(-21deg);
}

.flow-line-3 {
  top: 184px;
  right: 172px;
  width: 152px;
  transform: rotate(149deg);
}

.flow-line-4 {
  bottom: 193px;
  right: 170px;
  width: 156px;
  transform: rotate(205deg);
}

.flow-pulse {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--white), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  animation: travel 2.6s linear infinite;
}

.flow-line:nth-of-type(2) .flow-pulse,
.flow-line:nth-of-type(4) .flow-pulse {
  animation-duration: 3.2s;
}

@keyframes travel {
  from { transform: translateX(-6px) translateY(-6px); }
  to { transform: translateX(calc(100% - 8px)) translateY(-6px); }
}

.hero-status-strip {
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-status-strip > div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 13, 24, 0.68);
}

.hero-status-strip span,
.card-kicker,
.contact-points span,
.footer-copy,
.footer-meta,
.footer-contact p,
.policy-copy p,
.tick-row,
.result-badges span,
.receipt-card span,
.metric-row span,
.security-pill span,
.bullet-list,
.currency-window p,
.contact-form span {
  color: var(--text-muted);
}

.hero-status-strip strong,
.metric-row strong,
.receipt-card strong {
  display: block;
  margin-top: 6px;
  color: var(--surface);
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-online i,
.security-pill i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.trust-ribbon {
  padding: 20px 0 0;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px 24px;
  border-block: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(229, 238, 252, 0.6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-strip-item svg {
  opacity: 0.45;
  flex-shrink: 0;
  color: var(--accent);
}

.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: rgba(6, 182, 212, 0.04);
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq-item a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.serve-grid {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.serve-item {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: border-color var(--transition), background var(--transition);
}

.serve-item:hover {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.04);
}

.serve-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--accent-2);
}

.serve-item span {
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(229, 238, 252, 0.6));
  line-height: 1.45;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(229, 238, 252, 0.78);
  font-size: 0.9rem;
  white-space: nowrap;
}

.marquee-track span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.92), rgba(8, 14, 26, 0.97));
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: var(--shadow-soft);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: auto -60px -80px auto;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.06);
  filter: blur(24px);
}

.bento-volume { grid-column: span 7; min-height: 330px; color: #9fb6ff; }
.bento-security { grid-column: span 5; }
.bento-currencies { grid-column: span 5; }
.bento-serve { grid-column: span 7; }
.bento-dashboard { grid-column: span 8; }

.card-topline,
.metric-row,
.security-pill,
.receipt-card,
.footer-links-stack,
.contact-points,
.result-badges,
.api-tabs {
  display: flex;
}

.card-topline {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--surface);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.chip-success {
  color: #dff8ed;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
}

.metric-row {
  gap: 18px;
  margin-bottom: 14px;
}

.metric-row > div {
  flex: 1 1 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.metric-row strong {
  font-size: 1.7rem;
  line-height: 1;
}

.chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.tick-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.security-pill {
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li + li {
  margin-top: 12px;
}

.currency-window {
  flex: 1;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  max-height: 220px;
}

.currency-track {
  display: grid;
  gap: 6px;
  padding: 12px 18px;
  animation: currencyScroll 9s linear infinite;
}

.currency-track span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface);
}

@keyframes currencyScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.bento-currencies p {
  margin: 0;
  color: var(--text-soft);
}

.dashboard-frame,
.shot-shell {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255,255,255,0.03);
}

.dashboard-frame img,
.shot-shell img {
  width: 100%;
  height: auto;
}

.section-api {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 20%);
}

.api-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.platform-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

.api-tabs {
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}

.api-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.03);
  color: var(--surface-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.api-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(6,182,212,0.22), rgba(8,145,178,0.22));
  border-color: rgba(6,182,212,0.44);
}

.code-window {
  border-radius: 26px;
  overflow: hidden;
}

.code-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.03);
}

.code-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

.code-topbar span:nth-child(1) { background: #fb7185; }
.code-topbar span:nth-child(2) { background: #f59e0b; }
.code-topbar span:nth-child(3) { background: #10b981; }

.code-topbar strong {
  margin-left: 6px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.code-window pre {
  margin: 0;
  padding: 24px;
  min-height: 250px;
  overflow: auto;
}

.code-window code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #d8e2ff;
  white-space: pre-wrap;
}

.api-result {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding-top: 0;
}

.phone-mock {
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 36px;
}

.phone-notch {
  width: 34%;
  height: 18px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.phone-screen {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.phone-title {
  margin-bottom: 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-state {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.payment-state-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(219, 255, 241, 0.72);
}

.payment-state strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.12;
  margin-bottom: 8px;
}

.payment-state p {
  margin: 0;
  color: rgba(219, 255, 241, 0.76);
}

.receipt-card {
  margin-top: 18px;
  flex-direction: column;
  gap: 12px;
}

.receipt-card > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.result-badges {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.result-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.shot-shell {
  padding: 18px;
  border-radius: 30px;
}

.info-stack {
  display: grid;
  gap: 14px;
  margin: 28px 0 30px;
}

.info-card {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: border-color var(--transition);
}

.info-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.info-card h3 {
  color: var(--accent-2);
}

.info-card h3,
.footer-col h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.info-card p,
.footer-links-stack a,
.footer-contact a,
.footer-contact p,
.policy-copy p,
.contact-points a {
  color: var(--text-soft);
}

.info-card p,
.contact-points div,
.footer-contact p,
.footer-copy,
.footer-meta,
.policy-copy p {
  margin: 0;
}

.contact-layout {
  align-items: stretch;
}

.contact-copy {
  padding-right: 10px;
}

.contact-points {
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.contact-points div {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.contact-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-card {
  padding: 28px;
  border-radius: 30px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 60px 32px;
  min-height: 320px;
}

.form-success h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.form-success p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.9rem;
}

.form-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox span {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--white);
  background: rgba(255,255,255,0.03);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(230,237,248,0.42);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(6,182,212,0.58);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.12);
}

.contact-form option {
  color: #0f172a;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(3, 8, 18, 0.52);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-copy {
  margin-top: 18px;
}

.footer-meta {
  margin-top: 10px;
  font-size: 0.86rem;
}

.footer-links-stack {
  flex-direction: column;
  gap: 10px;
}

.footer-links-stack a,
.footer-contact a {
  transition: color var(--transition);
}

.footer-links-stack a:hover,
.footer-contact a:hover,
.contact-points a:hover,
.policy-copy a:hover {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.policy-page {
  padding-top: 158px;
  padding-bottom: 70px;
}

.policy-hero {
  padding: 0 0 40px;
}

.policy-shell {
  padding: 34px;
  border-radius: 34px;
}

.policy-copy {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.gateway-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.feature-group h2 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2, #22d3ee);
  margin: 0 0 14px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent, #06b6d4);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .gateway-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16, .84, .44, 1), transform 0.8s cubic-bezier(.16, .84, .44, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-grid .animate-on-scroll:nth-child(2),
.contact-layout .animate-on-scroll:nth-child(2),
.api-layout .animate-on-scroll:nth-child(2),
.platform-layout .animate-on-scroll:nth-child(2) {
  transition-delay: 0.12s;
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 96px;
  }

  .logo-img {
    height: 88px;
  }

  .logo-img-footer {
    height: 78px;
  }

  .hero-layout,
  .api-layout,
  .platform-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }

  .flow-card {
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 104px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(6, 11, 22, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 10px 8px;
  }

  .main-nav .btn {
    width: 100%;
  }

  .hero {
    padding-top: 152px;
  }

  .hero-stats,
  .hero-status-strip,
  .two-up,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-volume,
  .bento-security,
  .bento-currencies,
  .bento-serve,
  .bento-dashboard {
    grid-column: auto;
  }

  .api-result {
    padding-top: 0;
  }

  .faq-grid {
    gap: 8px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.85rem;
  }

  .flow-card {
    min-height: 620px;
  }

  .flow-node-top-left { top: 62px; left: 24px; }
  .flow-node-bottom-left { bottom: 172px; left: 28px; }
  .flow-node-top-right { top: 62px; right: 24px; }
  .flow-node-bottom-right { bottom: 172px; right: 28px; }

  .flow-line-1 {
    top: 158px;
    left: 128px;
    width: 150px;
    transform: rotate(38deg);
  }

  .flow-line-2 {
    bottom: 242px;
    left: 140px;
    width: 144px;
    transform: rotate(-34deg);
  }

  .flow-line-3 {
    top: 160px;
    right: 146px;
    width: 144px;
    transform: rotate(142deg);
  }

  .flow-line-4 {
    bottom: 238px;
    right: 142px;
    width: 144px;
    transform: rotate(219deg);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .section {
    padding: 76px 0;
  }

  .site-header {
    padding: 10px 0;
  }

  .header-inner {
    min-height: 78px;
  }

  .logo-img {
    height: 70px;
  }

  .logo-img-footer {
    height: 66px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .hero-lead,
  .section-heading p,
  .api-copy p,
  .platform-copy p,
  .contact-copy p,
  .policy-shell p {
    font-size: 0.98rem;
  }

  .flow-card {
    min-height: 620px;
    padding: 18px;
  }

  .flow-node {
    max-width: 128px;
    padding: 12px;
  }

  .flow-node-center {
    min-width: 164px;
    max-width: 190px;
  }

  .flow-node-top-left,
  .flow-node-top-right {
    top: 28px;
  }

  .flow-node-bottom-left,
  .flow-node-bottom-right {
    bottom: 190px;
  }

  .flow-node-top-left { left: 12px; }
  .flow-node-top-right { right: 12px; }
  .flow-node-bottom-left { left: 18px; }
  .flow-node-bottom-right { right: 18px; }

  .flow-line-1 { top: 112px; left: 98px; width: 126px; }
  .flow-line-2 { bottom: 262px; left: 106px; width: 120px; }
  .flow-line-3 { top: 112px; right: 112px; width: 120px; }
  .flow-line-4 { bottom: 262px; right: 110px; width: 120px; }

  .hero-status-strip {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .bento-card,
  .contact-card,
  .policy-shell,
  .shot-shell,
  .code-window,
  .phone-mock {
    border-radius: 24px;
  }

  .contact-card {
    padding: 20px;
  }

  .phone-mock,
  .result-badges {
    display: none;
  }

  .section {
    overflow: hidden;
  }

  .api-copy {
    min-width: 0;
    overflow: hidden;
  }

  .code-window {
    max-width: 100%;
  }

  .code-window pre {
    padding: 16px;
    min-height: 180px;
  }

  .code-window code {
    font-size: 0.78rem;
    line-height: 1.6;
    word-break: break-all;
  }

  .api-result .section-cta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }

  .api-result .section-cta .btn {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}

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

/* === 2026-03 Premium Fintech Redesign === */
:root {
  --bg: #fafbfd;
  --bg-alt: #f4f6fa;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --panel-soft: rgba(8, 145, 178, 0.04);
  --surface: #0f1729;
  --surface-soft: rgba(15, 23, 41, 0.74);
  --text: #0f1729;
  --text-soft: rgba(15, 23, 41, 0.72);
  --text-muted: rgba(15, 23, 41, 0.48);
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --line: rgba(15, 23, 41, 0.07);
  --line-strong: rgba(15, 23, 41, 0.12);
  --accent: #0891b2;
  --accent-2: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --success: #10b981;
  --warm: #f59e0b;
  --white: #ffffff;
  --shadow: 0 32px 64px -12px rgba(15, 23, 41, 0.1), 0 0 0 1px rgba(15, 23, 41, 0.04);
  --shadow-soft: 0 16px 40px -8px rgba(15, 23, 41, 0.06), 0 0 0 1px rgba(15, 23, 41, 0.03);
  --shadow-glass: 0 24px 48px -12px rgba(15, 23, 41, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 20% -20%, rgba(6, 182, 212, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(16, 185, 129, 0.05), transparent),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(8, 145, 178, 0.03), transparent),
    #fafbfd;
  color: var(--text);
}

/* Glassmorphism card system */
.glass-card,
.bento-card,
.hero-stat,
.info-card,
.contact-card,
.shot-shell,
.hero-status-strip > div {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.interactive-card,
.flow-card-interactive {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.interactive-card::after,
.flow-card-interactive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--px, 50%) var(--py, 50%), rgba(6, 182, 212, 0.1), transparent 48%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.interactive-card:hover,
.flow-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -8px rgba(15, 23, 41, 0.12), 0 0 0 1px rgba(6, 182, 212, 0.12) inset;
  border-color: rgba(6, 182, 212, 0.18);
}

.interactive-card:hover::after,
.flow-card-interactive:hover::after {
  opacity: 1;
}

.eyebrow {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.14);
  font-weight: 600;
}

.eyebrow::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Primary buttons — vivid accent, high contrast */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4), 0 0 60px rgba(6, 182, 212, 0.12);
  transform: translateY(-1px);
}

/* Scroll-triggered reveal animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }

.site-header::after {
  background: rgba(250, 251, 253, 0.6);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.site-header.scrolled::after {
  background: rgba(250, 251, 253, 0.82);
  border-bottom-color: rgba(15, 23, 41, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.04);
}

/* Section spacing — generous breathing room */
.section { padding: 100px 0; }

/* Browser mockup frame */
.browser-mockup {
  border-radius: 16px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 32px 64px -16px rgba(15, 23, 41, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0f172a;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.browser-dots span:first-child { background: #ef4444; opacity: 0.7; }
.browser-dots span:nth-child(2) { background: #eab308; opacity: 0.7; }
.browser-dots span:last-child { background: #22c55e; opacity: 0.7; }

.browser-url {
  flex: 1;
  padding: 5px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.browser-mockup img {
  width: 100%;
  display: block;
}

/* Encryption flow diagram */
.encryption-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0 auto 48px;
  max-width: 900px;
  flex-wrap: wrap;
}

.enc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 0 0 auto;
  width: 140px;
}

.enc-step strong {
  font-size: 0.88rem;
  color: var(--text);
}

.enc-step span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.enc-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(15, 23, 41, 0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.enc-icon-active {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--accent);
}

.enc-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  padding-top: 16px;
  flex: 0 0 auto;
  width: 48px;
}

.enc-lock {
  color: var(--success);
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.trust-badge strong {
  font-size: 0.84rem;
  color: var(--text);
}

.trust-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Company Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.timeline-line {
  position: absolute;
  top: 28px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 2px;
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 1;
  margin-bottom: 14px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 120px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .encryption-flow {
    gap: 8px;
  }
  .enc-step { width: 100px; }
  .enc-step strong { font-size: 0.78rem; }
  .enc-arrow { width: 32px; }
  .timeline-items { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .timeline-line { display: none; }
  .trust-badges { gap: 10px; }
  .trust-badge { padding: 12px 16px; }
}

.main-nav a:not(.btn) {
  color: rgba(18, 35, 62, 0.78);
}

.main-nav a:not(.btn):hover {
  color: var(--surface);
}

.btn-secondary {
  color: var(--text-soft);
  background: transparent;
  border-color: rgba(15, 23, 41, 0.15);
}

.btn-secondary:hover {
  background: rgba(15, 23, 41, 0.04);
  border-color: rgba(15, 23, 41, 0.25);
  color: var(--text);
}

/* Nav CTA — always vivid accent in header */
.btn-nav {
  color: #fff !important;
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
  font-size: 0.86rem;
}

.btn-nav:hover {
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.hero {
  padding-bottom: 104px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 82px 0 auto;
  height: 640px;
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-noise {
  opacity: 0.08;
}

.hero-orb {
  opacity: 0.2;
}

.hero-copy h1,
.section-heading h2,
.api-copy h2,
.platform-copy h2,
.contact-copy h2,
.policy-shell h1 {
  color: var(--surface);
}

.hero-stat {
  border-color: rgba(91, 108, 255, 0.12);
}

.hero-stat strong,
.card-kicker,
.metric-row strong,
.hero-status-strip strong,
.receipt-card strong,
.contact-points strong,
.info-card h3,
.footer-col h3 {
  color: var(--surface);
}

.flow-card {
  width: min(100%, 620px);
  padding: 22px;
  border-radius: 36px;
  background: linear-gradient(180deg, #13284a 0%, #0c1a31 100%);
  border: 1px solid rgba(63, 194, 122, 0.18);
  box-shadow: 0 36px 90px rgba(17, 32, 58, 0.22);
}

.flow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(91, 108, 255, 0.14), transparent 26%),
              radial-gradient(circle at 76% 12%, rgba(63, 194, 122, 0.15), transparent 24%),
              radial-gradient(circle at 50% 72%, rgba(63, 194, 122, 0.08), transparent 26%);
  pointer-events: none;
}

.flow-stage {
  position: relative;
  min-height: 418px;
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(2, 8, 18, 0.2));
  overflow: hidden;
}

.flow-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 197, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 197, 240, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.45));
}

.flow-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-path {
  fill: none;
  stroke: rgba(63, 194, 122, 0.88);
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  animation: dashFlow 16s linear infinite;
}

.flow-path-down {
  stroke-width: 3.8;
  stroke-dasharray: 8 11;
}

.flow-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 29, 0.42);
  color: rgba(231, 239, 255, 0.88);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-node span,
.flow-node strong {
  color: inherit;
}

.flow-node strong {
  margin-top: 6px;
  font-size: 1.05rem;
}

.flow-node-top-left {
  top: 8%;
  left: 4.5%;
  min-width: 132px;
  grid-area: online;
}

.flow-node-top-mid-left {
  top: 8%;
  left: 27.5%;
  min-width: 126px;
  grid-area: terminals;
}

.flow-node-top-mid-right {
  top: 8%;
  right: 27.5%;
  min-width: 96px;
  grid-area: api;
}

.flow-node-top-right {
  top: 8%;
  right: 4.5%;
  min-width: 96px;
  grid-area: pos;
}

.flow-node-center {
  top: 46%;
  left: 50%;
  width: min(46vw, 320px);
  min-height: 128px;
  text-align: center;
  transform: translate(-50%, -50%);
  padding: 26px 24px;
  border-color: rgba(63, 194, 122, 0.28);
  background: linear-gradient(180deg, rgba(22, 39, 73, 0.92), rgba(10, 20, 36, 0.96));
  box-shadow: 0 0 0 1px rgba(63, 194, 122, 0.12) inset, 0 30px 60px rgba(2, 6, 23, 0.28);
  grid-area: hub;
}

.flow-node-bottom-center {
  left: 50%;
  bottom: 9%;
  min-width: 264px;
  transform: translateX(-50%);
  grid-area: clearing;
}

.flow-packet {
  fill: #ffffff;
  stroke: rgba(152, 255, 195, 0.72);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.85));
}

.flow-packet-input {
  r: 9;
}

.flow-packet-down {
  r: 10;
}

.hero-status-strip {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hero-status-strip > div {
  min-height: 118px;
  padding: 18px 18px 20px;
  border-radius: 24px;
}

.hero-status-card-volume {
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
}

.hero-status-card-status {
  background: linear-gradient(180deg, #f9fffc, #eefbf6);
}

.hero-status-card-settlement {
  background: linear-gradient(180deg, #ffffff, #f7f7ff);
}

.status-online {
  color: var(--surface);
}

.trust-ribbon {
  padding-top: 10px;
}

.trust-strip {
  border-block-color: rgba(82, 104, 139, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.trust-strip-item {
  color: rgba(18, 35, 62, 0.65);
}

.marquee {
  border-block: 1px solid rgba(82, 104, 139, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.marquee-track span {
  background: rgba(255,255,255,0.88);
  border-color: rgba(82, 104, 139, 0.14);
  color: var(--surface-soft);
}

.section-surface {
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.22));
}

.section-soft {
  background: linear-gradient(180deg, rgba(226, 235, 248, 0.42), rgba(245, 249, 255, 0.16));
}

.bento-grid {
  gap: 22px;
}

.bento-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,255,0.92));
  border: 1px solid rgba(91, 108, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.bento-card::before {
  inset: auto -70px -100px auto;
  width: 220px;
  background: rgba(91, 108, 255, 0.08);
  filter: blur(26px);
}

.bento-volume {
  color: #43557a;
}

.serve-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(82, 104, 139, 0.12);
}

.serve-item strong {
  color: #1a2744;
}

.serve-item span {
  color: #43557a;
}

.metric-row > div,
.security-pill,
.currency-window,
.dashboard-frame,
.shot-shell,
.contact-points div,
.receipt-card > div,
.phone-screen,
.code-topbar,
.info-card,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(82, 104, 139, 0.12);
}

.chart path:last-child {
  stroke: var(--accent);
}

.code-window {
  background: linear-gradient(180deg, #172945, #0f1d34);
  border: 1px solid rgba(121, 146, 255, 0.18);
}

.code-topbar,
.code-window pre {
  background: transparent;
}

.code-window code,
.code-topbar strong {
  color: #e2e9ff;
}

.phone-mock {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.92));
}

.payment-state {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(230, 252, 243, 0.7));
}

.info-card,
.contact-card,
.contact-points div,
.shot-shell {
  border-radius: 28px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  color: #1e293b;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(18, 35, 62, 0.42);
}

.site-footer {
  border-top: 1px solid rgba(82, 104, 139, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.footer-links-stack a,
.footer-contact a,
.footer-contact p,
.footer-copy,
.footer-meta {
  color: var(--text-soft);
}

.footer-links-stack a:hover,
.footer-contact a:hover {
  color: var(--surface);
}

.mobile-toggle {
  background: rgba(255,255,255,0.76);
  color: var(--surface);
  border: 1px solid rgba(82, 104, 139, 0.14);
}

@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -220; }
}


@keyframes dotFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -4px, 0) scale(1.08); }
}

@media (max-width: 1120px) {
  .flow-card {
    width: min(100%, 640px);
  }
}

@media (max-width: 900px) {
  .main-nav {
    top: 92px;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(82, 104, 139, 0.16);
    box-shadow: 0 24px 50px rgba(41, 62, 96, 0.14);
  }

  .hero-layout {
    gap: 28px;
  }

  .flow-card {
    padding: 18px;
  }

  .flow-stage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'online terminals'
      'api pos'
      'hub hub'
      'clearing clearing';
    gap: 14px;
    padding: 18px;
  }

  .flow-map {
    display: none;
  }

  .flow-node {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    transform: none;
  }

  .flow-node-center,
  .flow-node-bottom-center {
    width: 100%;
    min-height: 120px;
  }

  .flow-node-bottom-center {
    min-height: 84px;
  }

  .hero-status-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 146px;
    padding-bottom: 72px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stat,
  .hero-status-strip > div,
  .bento-card,
  .info-card,
  .contact-points div,
  .contact-card,
  .phone-mock,
  .code-window,
  .shot-shell {
    border-radius: 24px;
  }

  .flow-card {
    border-radius: 30px;
  }

  .flow-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      'online'
      'terminals'
      'api'
      'pos'
      'hub'
      'clearing';
  }

  .flow-node,
  .flow-node-center,
  .flow-node-bottom-center {
    min-height: 70px;
  }

  .flow-node-center {
    min-height: 112px;
  }

  .flow-node-bottom-center {
    min-height: 80px;
  }
}


/* --- responsive flow diagram refinement --- */
.flow-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto minmax(164px, 1fr) auto;
  grid-template-areas:
    "top top top top"
    ". hub hub ."
    ". clearing clearing .";
  row-gap: 22px;
  min-height: 540px;
  align-items: start;
}

.flow-top-row,
.flow-middle-row,
.flow-bottom-row {
  position: relative;
  z-index: 2;
}

.flow-top-row {
  grid-area: top;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.flow-middle-row {
  grid-area: hub;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-bottom-row {
  grid-area: clearing;
  display: flex;
  justify-content: center;
}

.flow-node {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  transform: none;
}

.flow-node-top-left,
.flow-node-top-mid-left,
.flow-node-top-mid-right,
.flow-node-top-right {
  min-width: 0;
}

.flow-node-center {
  width: min(100%, 360px);
  min-height: 144px;
}

.flow-node-bottom-center {
  width: min(100%, 340px);
  min-height: 78px;
}

.flow-node.interactive-card:hover,
.flow-node.interactive-card:focus-visible {
  transform: none;
  box-shadow: 0 16px 38px rgba(55, 82, 120, 0.12), 0 0 0 1px rgba(91, 108, 255, 0.12) inset;
}

.flow-node-center.interactive-card:hover,
.flow-node-bottom-center.interactive-card:hover {
  transform: none;
}

.hero-status-card-status strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.currency-window {
  flex: 1;
}

.currency-track {
  gap: 8px;
}

.currency-track span {
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .flow-stage {
    min-height: 520px;
    row-gap: 18px;
  }

  .flow-top-row {
    gap: 14px;
  }

  .flow-node-center {
    width: min(100%, 340px);
  }
}

@media (max-width: 900px) {
  .flow-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "top top"
      "hub hub"
      "clearing clearing";
    min-height: auto;
  }

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

  .flow-map {
    display: none;
  }

  .flow-node {
    min-height: 78px;
  }

  .flow-node-center {
    width: 100%;
    min-height: 124px;
  }

  .flow-node-bottom-center {
    width: 100%;
    min-height: 84px;
  }
}

@media (max-width: 640px) {
  .flow-stage {
    padding: 16px;
    row-gap: 14px;
  }

  .flow-top-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-node,
  .flow-node-center,
  .flow-node-bottom-center {
    width: 100%;
    min-height: 72px;
  }

  .flow-node-center {
    min-height: 110px;
    padding: 22px 18px;
  }

  .currency-window {
    flex: 1;
  }
}

/* === integration comparison page === */
.integration-compare {
  margin-top: 36px;
}

.compare-section {
  margin-top: 40px;
}

.compare-section h2 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compare-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.compare-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.compare-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.compare-card--highlight {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

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

.advantage-item {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.advantage-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .compare-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }
}

/* === gateway panel v3 fix === */
.hero-visual {
  display: flex;
  justify-content: center;
}

.gateway-panel {
  width: min(100%, 620px);
  border-radius: 28px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 12%, rgba(99, 102, 241, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.12), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(99, 102, 241, 0.1), transparent 24%),
    linear-gradient(180deg, #13284a 0%, #0c1a31 100%);
  border: 1px solid rgba(105, 136, 191, 0.24);
  box-shadow: 0 36px 90px rgba(17, 32, 58, 0.22);
}

.gateway-panel-stage {
  position: relative;
  min-height: 460px;
  padding: 16px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(2, 8, 18, 0.16));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.gateway-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 197, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 197, 240, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.55));
}

.gateway-stage-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gateway-path {
  fill: none;
  stroke: rgba(6, 182, 212, 0.7);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  animation: dashFlow 16s linear infinite;
}

.gateway-path-down {
  stroke-width: 3;
  stroke-dasharray: 6 10;
  stroke: rgba(16, 185, 129, 0.6);
}

.gateway-packet {
  fill: #a78bfa;
  stroke: rgba(167, 139, 250, 0.6);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 28px rgba(139, 92, 246, 0.8));
}

.gateway-packet-down {
  fill: #a78bfa;
  stroke: rgba(167, 139, 250, 0.5);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 32px rgba(139, 92, 246, 0.8));
}

.gateway-source-row,
.gateway-hub-wrap,
.gateway-clearing-wrap {
  position: relative;
  z-index: 2;
}

.gateway-source-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.gateway-hub-wrap,
.gateway-clearing-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gateway-node {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(231, 239, 255, 0.92);
  background: rgba(7, 15, 29, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gateway-node-source {
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 24px;
  font-size: 0.98rem;
}

.gateway-node-hub {
  width: min(100%, 360px);
  min-height: 110px;
  padding: 18px 22px;
  border-radius: 30px;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, rgba(18, 36, 66, 0.94), rgba(8, 18, 32, 0.97));
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.1) inset, 0 30px 60px rgba(2, 6, 18, 0.4);
}

.gateway-node-hub span {
  font-size: 1rem;
  color: rgba(231, 239, 255, 0.84);
}

.gateway-node-hub strong {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.gateway-node-clearing {
  width: min(100%, 340px);
  min-height: 78px;
  padding: 18px 22px;
  border-radius: 26px;
  font-size: 1rem;
}

.gateway-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gateway-status-card {
  min-height: 0;
  padding: 10px 14px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  border: 1px solid rgba(82, 104, 139, 0.12);
}

.gateway-status-card strong {
  font-family: var(--font-mono);
}

.gateway-status-card:nth-child(2) {
  background: linear-gradient(180deg, #f9fffc, #eefbf6);
}

.gateway-status-card span,
.stats-browser-url,
.stats-mini-panel span,
.stats-mini-stats span {
  color: rgba(18, 35, 62, 0.62);
}

.gateway-status-card strong,
.stats-mini-panel strong,
.stats-mini-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--surface);
}

.bento-dashboard {
  min-height: 360px;
}

.stats-browser-link {
  display: block;
  color: inherit;
}

.stats-browser-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(82, 104, 139, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,249,255,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.stats-browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(244, 247, 253, 0.95);
  border-bottom: 1px solid rgba(82, 104, 139, 0.12);
}

.stats-browser-dots {
  display: inline-flex;
  gap: 6px;
}

.stats-browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
}

.stats-browser-url {
  min-width: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(82, 104, 139, 0.1);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-browser-canvas {
  padding: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(99, 102, 241, 0.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.stats-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats-mini-stats > div,
.stats-mini-panel {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(82, 104, 139, 0.1);
  box-shadow: 0 8px 18px rgba(89, 111, 152, 0.08);
}

.stats-mini-chart {
  position: relative;
  height: 120px;
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(82, 104, 139, 0.1);
  background:
    linear-gradient(rgba(82, 104, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 104, 139, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(243,247,255,0.92));
  background-size: 100% 32px, 48px 100%, 100% 100%;
}

.stats-mini-chart-line {
  position: absolute;
  inset: 0;
}

.stats-mini-chart-line::before,
.stats-mini-chart-line::after {
  content: '';
  position: absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 16px;
}

.stats-mini-chart-line::before {
  background: linear-gradient(180deg, rgba(6,182,212,0.18), rgba(6,182,212,0));
  clip-path: polygon(0% 80%, 12% 72%, 26% 74%, 40% 58%, 54% 64%, 68% 34%, 80% 44%, 100% 18%, 100% 100%, 0% 100%);
}

.stats-mini-chart-line::after {
  border: 3px solid transparent;
  border-top: 0;
  border-right: 0;
  background: none;
  box-shadow: inset 0 0 0 999px transparent;
  clip-path: polygon(0% 80%, 12% 72%, 26% 74%, 40% 58%, 54% 64%, 68% 34%, 80% 44%, 100% 18%);
  outline: 3px solid rgba(99, 102, 241, 0.95);
  outline-offset: -3px;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.stats-mini-panel-wide {
  min-height: 124px;
}

.stats-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 72px;
  margin-top: 12px;
}

.stats-bars i {
  flex: 1 1 0;
  height: var(--bar);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.8), rgba(99, 102, 241, 0.58));
}

@media (max-width: 1120px) {
  .gateway-panel {
    width: min(100%, 680px);
  }
}

@media (max-width: 900px) {
  .gateway-panel-stage {
    min-height: auto;
    padding: 18px;
  }

  .gateway-hub-wrap,
  .gateway-clearing-wrap {
    justify-content: stretch;
  }

  .gateway-node-hub,
  .gateway-node-clearing {
    width: 100%;
  }

  .gateway-status-row,
  .stats-mini-stats,
  .stats-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gateway-panel {
    padding: 14px;
    border-radius: 28px;
  }

  .gateway-panel-stage {
    padding: 14px;
    border-radius: 22px;
    min-height: 380px;
  }

  .gateway-source-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .gateway-status-row {
    grid-template-columns: 1fr;
  }

  .gateway-node-source {
    min-height: 40px;
    font-size: 0.7rem;
    padding: 8px 4px;
    border-radius: 16px;
  }

  .gateway-node-clearing {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .gateway-node-hub {
    min-height: 90px;
    padding: 14px 12px;
  }

  .gateway-node-hub span {
    font-size: 0.82rem;
  }

  .gateway-node-hub strong {
    font-size: 1rem;
  }

  .stats-browser-canvas {
    padding: 14px;
  }

  .stats-mini-chart {
    height: 100px;
  }
}

/* --- Compact Grafana snapshot package overrides --- */
.gateway-status-card-alerts,
.gateway-status-card-uptime {
  justify-content: flex-start;
}

.gateway-status-card-alerts strong,
.gateway-status-card-uptime strong {
  margin-bottom: 10px;
}

.gateway-alert-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.gateway-alert-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.gateway-alert-list strong {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.35;
}

.gateway-alert-list em {
  font-style: normal;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.compact-alerts {
  gap: 8px;
}

.compact-alerts li {
  padding: 8px 10px;
  border-radius: 14px;
}

.uptime-strip {
  margin-top: 8px;
  padding: 10px 10px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.uptime-strip-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.uptime-strip img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.snapshot-pane {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.snapshot-card,
.latency-card {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.92), rgba(8, 14, 26, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.snapshot-card figcaption,
.latency-card figcaption {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.snapshot-card img,
.latency-card img,
.stats-browser-canvas-preview img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.snapshot-card-wide {
  grid-column: span 1;
}

.bento-volume {
  min-height: 0;
}

.bento-security {
  display: flex;
  flex-direction: column;
}

.bento-currencies {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.latency-card {
  margin-top: 2px;
}

.latency-card img {
  height: 165px;
  object-fit: cover;
  object-position: top center;
}

.stats-browser-frame-compact {
  min-height: 100%;
}

.stats-browser-canvas-preview {
  padding: 12px;
}

.stats-browser-canvas-preview img {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .snapshot-pane {
    grid-template-columns: 1fr;
  }

  .latency-card img {
    height: 190px;
  }
}

@media (max-width: 720px) {
  .gateway-status-row {
    grid-template-columns: 1fr;
  }

  .gateway-status-card {
    min-height: 0;
  }

  .uptime-strip img {
    height: 70px;
  }

  .latency-card img {
    height: 150px;
  }
}

/* ── Site Search ── */
.site-search {
  position: relative;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 150ms ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(8, 145, 178, 0.04);
}

.search-result-section {
  font-size: 0.66rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.search-result-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.search-result-snippet mark {
  background: rgba(8, 145, 178, 0.15);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 2px;
}

.search-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
