/* =============================================
   FnoxPe - Pure CSS (No Tailwind, No Build)
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

section[id] {
  scroll-margin-top: 90px;
}

html {
  scroll-snap-type: none;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-light, #F5F8FC);
  color: var(--text-primary, var(--brand-navy));
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  -webkit-tap-highlight-color: transparent;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

section {
  margin: 60px 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-size: 16px !important; font-family: inherit; }

/* === CSS VARIABLES (aliases referencing brand-tokens.css) === */
:root {
  --brand-dark: var(--brand-navy);
  --brand-bright: var(--brand-primary);
  --brand-gradient: var(--gradient-soft);
  --hero-gradient: linear-gradient(135deg, var(--brand-navy), var(--brand-primary));

  --fnox-dark: var(--brand-navy);
  --fnox-primary: var(--brand-primary);
  --fnox-accent: var(--brand-primary);
  --fnox-soft: #EFF6FF;
  --fnox-gradient: var(--gradient-soft);
  --primary: var(--brand-primary);
  --primary-light: rgba(27,139,255,0.1);
  --primary-lighter: rgba(27,139,255,0.05);
  --secondary: var(--brand-primary);
  --secondary-light: rgba(27,139,255,0.1);
  --navy: var(--brand-navy);
  --bg-soft: var(--bg-light);
  --bg-card: var(--card-light);
  --text-primary: var(--brand-navy);
  --text-secondary: var(--brand-navy);
  --text-muted: #6B7280;
}

.fnox-dark { color: var(--brand-navy); }
.fnox-accent { color: var(--brand-primary); }

/* === GLASS CARD SYSTEM === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* === FLAT ENTERPRISE CARD === */
.flat-card {
  background: var(--card-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: none;
}

body.dark-mode .flat-card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
}

/* === TYPOGRAPHY === */
.section-tag,
.section-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  position: relative;
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title-center { text-align: center; }
.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-heading {
  font-weight: 800;
  background: linear-gradient(270deg, var(--primary), var(--secondary), var(--primary));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 6s ease infinite;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === ANIMATIONS === */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blobFloat {
  from { transform: translateY(0px) translateX(0px); }
  to { transform: translateY(-40px) translateX(20px); }
}

@keyframes meshRotate {
  from { transform: rotate(0deg) scale(1.5); }
  to { transform: rotate(360deg) scale(1.5); }
}

@keyframes pulseChart {
  0% { transform: scaleX(0.85); opacity: 0.7; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.85); opacity: 0.7; }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chatbotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(27,139,255,0.3); }
  50% { transform: scale(1.08); box-shadow: 0 4px 20px rgba(27,139,255,0.5); }
}

@keyframes chatbotSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .webgl-mesh, .chart-line, .gradient-heading,
  .animate-on-scroll, .pg-scroll-track { animation: none !important; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* === LAYOUT HELPERS === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.shrink-0 { flex-shrink: 0; }
.hidden { display: none; }
.block { display: block; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-primary,
.cta-primary {
  background: #1B8BFF;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(27,139,255,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.cta-primary:hover {
  background: #1575D4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,139,255,0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

.btn-outline-white {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === INPUTS === */
.input, .textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s;
}

.input:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,139,255,0.1);
}

.textarea { resize: none; }

/* === CARD === */
.card {
  background: var(--card-light);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 60px;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header.scrolled {
  background: linear-gradient(to bottom, #ffffff 0%, #f3f6fb 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
}

.nav-desktop { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-navy);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

.btn-login {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
}

.btn-signup-nav {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
}

.menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

body.dark-mode .menu-toggle {
  color: #ffffff !important;
}
body.dark-mode .menu-toggle svg {
  stroke: #ffffff !important;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  padding-top: 60px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.92);
  animation: fadeIn 0.25s ease;
}

.mobile-menu.active { display: block; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 48px;
}

.mobile-menu .nav-link { font-size: 18px; font-weight: 500; color: var(--text-navy); }
.mobile-menu .btn-login { font-size: 18px; padding: 12px 24px; margin-top: 16px; }
.mobile-menu .btn-signup-nav { font-size: 18px; padding: 12px 24px; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  user-select: none;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.logo:active {
  transform: scale(0.92);
}
.logo.logo-bounce .logo-container {
  animation: logoBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes logoBounce {
  0% { transform: scale(1); }
  20% { transform: scale(0.85) rotate(-4deg); }
  50% { transform: scale(1.15) rotate(2deg); }
  70% { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gradient-professional);
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.4),
    0 15px 30px rgba(27,139,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
}

.logo-text {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -80%; }
  100% { left: 130%; }
}

.logo-dark .logo-icon {
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.3),
    0 15px 30px rgba(96,165,250,0.5);
}

/* === GRADIENT MESH === */
.gradient-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, rgba(27,139,255,0.4), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(27,139,255,0.4), transparent 50%);
  animation: floatMesh 12s ease-in-out infinite alternate;
  filter: blur(80px);
  pointer-events: none;
}

@keyframes floatMesh {
  0% { transform: translateY(-20px) scale(1); }
  100% { transform: translateY(20px) scale(1.1); }
}

/* === PARTICLES CANVAS === */
#particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 80px 20px 60px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 30%, rgba(27,139,255,0.25), transparent 60%),
    linear-gradient(135deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
  margin: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.blob1 {
  background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
  top: 10%;
  left: 10%;
}

.blob2 {
  background: var(--gradient-professional);
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

.webgl-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(27,139,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,139,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: meshRotate 60s linear infinite;
  transform-origin: center center;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27,139,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - 60px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(27,139,255,0.3);
  background: rgba(27,139,255,0.1);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  max-width: 900px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-heading {
  display: block;
  font-size: clamp(40px, 7vw, 80px);
  margin-top: 4px;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 20px);
  color: #D1D5DB;
  max-width: 640px;
  font-weight: 400;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 40px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
}

.hero-trust-icon svg { width: 20px; height: 20px; color: var(--secondary); }

.hero-trust-label {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to top, var(--bg-soft), transparent);
}

/* === SCROLL ANIMATION === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* === DASHBOARD PREVIEW === */
.section-dashboard {
  padding: 40px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(27,139,255,0.03) 50%, transparent 100%);
}

.dashboard-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.chart-line {
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  mask: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  animation: pulseChart 3s infinite ease-in-out;
  margin-bottom: 32px;
}

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

.metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon svg { width: 20px; height: 20px; }
.metric-label { font-size: 12px; color: var(--text-muted); }
.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-value svg { width: 12px; height: 12px; }

/* === STATS === */
.section-stats { padding: 40px 20px; background: var(--bg-soft); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* === ROUTING SIMULATOR === */
.section-routing { padding: 40px 20px; background: var(--bg-soft); }

.routing-card { padding: 24px 32px; max-width: 768px; margin: 0 auto; }

.routing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.routing-txn-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.routing-txn-value { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.gateway-list { display: grid; gap: 12px; margin-top: 16px; }

.gateway-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(243,244,246,0.5);
  transition: all 0.3s ease;
  gap: 12px;
}

.gateway-item.scanning { border-color: var(--primary); transform: scale(1.01); }
.gateway-item.selected { border-color: var(--secondary); transform: scale(1.01); }

.gateway-name-wrapper { display: flex; align-items: center; gap: 12px; }
.gateway-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(156,163,175,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-radio.active {
  border-color: var(--secondary);
  background: var(--secondary);
}

.gateway-radio.active svg { color: #fff; }

.gateway-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
}

.gateway-name { font-weight: 500; color: var(--text-primary); }
.gateway-optimal { font-size: 12px; color: var(--secondary); font-weight: 500; }

.gateway-stats { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.gateway-stat-label { font-size: 12px; color: var(--text-muted); }
.gateway-stat-value { font-weight: 500; color: var(--text-primary); }

.routing-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  margin-top: 12px;
  animation: fadeInUp 0.3s ease;
}

.routing-result svg { width: 16px; height: 16px; color: var(--secondary); flex-shrink: 0; }
.routing-result span { font-size: 14px; color: var(--secondary); font-weight: 500; }

/* === API PLAYGROUND === */
.section-api { padding: 40px 20px; background: var(--bg-card); }

.api-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1024px; margin: 0 auto; }

.code-card { border-radius: 8px; overflow: hidden; }

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(243,244,246,0.3);
}

.code-dots { display: flex; align-items: center; gap: 8px; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #f87171; }
.code-dot.yellow { background: #fbbf24; }
.code-dot.green { background: #4ade80; }

.code-filename { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.code-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.code-copy-btn svg { width: 16px; height: 16px; }

pre {
  padding: 16px;
  font-size: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--text-primary);
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}

.response-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--text-muted);
  font-size: 14px;
}

/* === COST CALCULATOR === */
.section-calculator { padding: 40px 20px; background: var(--bg-soft); }

.calculator-card { padding: 24px 32px; max-width: 768px; margin: 0 auto; }

.slider-wrapper { margin-bottom: 32px; }
.slider-label { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 16px; display: block; }

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  outline: none;
  margin-bottom: 12px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.volume-display { font-size: 24px; font-weight: 600; color: var(--text-primary); }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.calc-box {
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.calc-box-traditional { background: rgba(243,244,246,0.5); }
.calc-box-fnoxpe { background: rgba(27,139,255,0.08); }
.calc-box-savings { background: rgba(27,139,255,0.08); }

.calc-box-icon { width: 20px; height: 20px; margin: 0 auto 8px; display: block; }
.calc-box-icon-muted { color: #6B7280; }
.calc-box-icon-brand { color: #1B8BFF; }
.calc-box-label { font-size: 12px; color: #6B7280; margin-bottom: 4px; }
.calc-box-value { font-size: 18px; font-weight: 600; }
.calc-box-value-dark { color: #111827; }
.calc-box-value-brand { color: #1B8BFF; }
.calc-box-extra { font-size: 12px; font-weight: 500; margin-top: 2px; }

.case-icon-wrap {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,139,255,0.08); flex-shrink: 0;
}
.case-company { font-size: 14px; font-weight: 500; color: #111827; }
.case-industry { font-size: 12px; color: #6B7280; }
.case-metric { font-size: 30px; font-weight: 600; color: #1B8BFF; margin-bottom: 4px; }
.case-label { font-size: 14px; font-weight: 500; color: #111827; margin-bottom: 12px; }
.case-desc { font-size: 14px; color: #6B7280; line-height: 1.6; }

/* === COMPARISON === */
.section-comparison {
  padding: 60px 20px;
  background: #ffffff;
}

.comparison-wrap {
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  font-size: 14px;
  font-weight: 500;
}

.cmp-feature-col { text-align: left; }
.cmp-center-col { text-align: center; }

.comparison-table th {
  color: #6B7280;
  font-weight: 600;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.comparison-table td {
  color: #111827;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(27,139,255,0.03);
}

.cmp-check {
  color: #1B8BFF;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.cmp-cross {
  color: rgba(156,163,175,0.35);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.cmp-partial {
  color: rgba(156,163,175,0.45);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.fnoxpe-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(27,139,255,0.1);
  color: var(--primary);
}

.check-icon { color: var(--secondary); }
.x-icon { color: rgba(156,163,175,0.3); }
.check-dim { color: rgba(156,163,175,0.4); }

/* === CASE STUDIES === */
.section-casestudies { padding: 40px 20px; background: var(--bg-soft); }

.cases-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.case-card { padding: 24px; }

.case-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.case-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-icon svg { width: 20px; height: 20px; }
.case-company { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.case-industry { font-size: 12px; color: var(--text-muted); }
.case-metric { font-size: 30px; font-weight: 600; margin-bottom: 4px; }
.case-metric-label { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 12px; }
.case-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* === TESTIMONIALS === */
.section-testimonials { padding: 40px 20px; background: var(--bg-soft); }

.testimonial-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }

.testimonial-track {
  display: flex;
  gap: 20px;
  animation: testimonialScroll 25s linear infinite;
}
.testimonial-carousel:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  min-width: 85%;
  max-width: 85%;
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 24px;
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-width: 420px;
    max-width: 420px;
  }
}

.stars { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; fill: var(--primary); color: var(--primary); }

.testimonial-quote {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.author-role { font-size: 12px; color: var(--text-muted); }

/* === PRICING === */
.section-pricing { padding: 40px 20px; background: var(--bg-card); transition: background 1s ease; }

.pricing-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pricing-logo .logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 28px;
}

.pricing-logo .logo-text {
  font-size: 32px;
}

body.dark-mode .pricing-logo {
  filter: drop-shadow(0 0 25px rgba(27,139,255,0.35));
}

#pricing.highlight {
  background: linear-gradient(
    135deg,
    rgba(27,139,255,0.25),
    rgba(10,30,60,0.6)
  );
}

#pricing.pricing-pulse {
  animation: pricingPulse 2s ease-out;
}

@keyframes pricingPulse {
  0% { box-shadow: 0 0 0 0 rgba(27,139,255,0.4); }
  50% { box-shadow: 0 0 30px 10px rgba(27,139,255,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(27,139,255,0); }
}

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.pricing-card { padding: 24px; height: 100%; }

.pricing-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.pricing-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.pricing-icon svg { width: 20px; height: 20px; color: #fff; }
.pricing-card-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.pricing-items { display: flex; flex-direction: column; gap: 0; }

.pricing-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-item:last-child { border-bottom: none; }
.pricing-item-label { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.pricing-item-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pricing-item-value { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }

.gst-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.06);
  margin-top: 32px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.gst-note svg { width: 20px; height: 20px; color: #F59E0B; flex-shrink: 0; margin-top: 2px; }
.gst-note p { font-size: 14px; color: var(--text-primary); }
.gst-note strong { font-weight: 600; }

/* === CTA === */
.cta-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1B8BFF, #0B1F3B);
  color: white;
}

.cta-container {
  max-width: 768px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.cta-section h2 span {
  color: #BFE3FF;
}

.cta-section p {
  font-size: 18px;
  color: #D1D5DB;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.cta-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  padding: 14px 28px;
  border-radius: 14px;
  background: white;
  color: #0B1F3B;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-section .btn-outline {
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  background: transparent;
  transition: 0.3s ease;
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* === FINANCIAL SERVICES === */
.fs-section {
  padding: 80px 20px;
  background: var(--bg-soft);
  position: relative;
}

.fs-header {
  margin-bottom: 40px;
}

.fs-glossy-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.fs-logo-static {
  width: 44px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto 15px;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

body.dark-mode .fs-logo-static {
  filter: brightness(1) !important;
}

.cmp-logo-static {
  width: 32px;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 6px;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

.cmp-logo-static-sm {
  width: 28px;
  height: auto;
  border-radius: 6px;
  vertical-align: middle;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

body.dark-mode .cmp-logo-static,
body.dark-mode .cmp-logo-static-sm {
  filter: brightness(1) !important;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-static {
  width: 36px;
  height: auto;
  border-radius: 8px;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

body.dark-mode .footer-logo-static {
  filter: brightness(1) !important;
}

body.dark-mode .footer-logo-text {
  color: #ffffff;
}

.fs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.fs-card {
  border-radius: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.fs-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.fs-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.85;
}

body.dark-mode .fs-section {
  background: #071C36;
}

body.dark-mode .fs-card {
  background: linear-gradient(145deg, #0f1c2f, #13233d);
  border: 1px solid rgba(27,139,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

body.dark-mode .fs-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

@media (min-width: 768px) {
  .fs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .fs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === SERVICES === */
.section-services { padding: 40px 20px; background: #F3F4F6; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.service-card { padding: 24px; height: 100%; }

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 16px;
}

.service-icon svg { width: 20px; height: 20px; color: #fff; }
.service-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.service-bullet { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.service-bullet.purple { background: var(--primary); }
.service-bullet.cyan { background: var(--secondary); }

/* Bank logos */
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }

.bank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  transition: transform 0.3s;
}

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

.bank-logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.bank-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}
.bank-name { font-size: 12px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }

.service-bullet.blue { background: var(--brand-primary); }


/* PG Partners section */
.section-pg-partners {
  text-align: center;
  padding: 40px 20px;
  background: #f6f8fb;
}

.pg-partners-title {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.pg-scroll-container { overflow: hidden; position: relative; }

.pg-scroll-track {
  display: flex;
  gap: 30px;
  animation: pgScroll 20s linear infinite;
  width: max-content;
}

.pg-card {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 180px;
  height: 110px;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pg-card:hover {
  transform: translateY(-6px);
}

.gateway-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.pg-card img {
  max-width: 120px;
  max-height: 55px;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

/* Onboarding section */
.section-onboarding { padding: 40px 20px; background: var(--bg-soft); }

.onboarding-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }

.onboarding-card { padding: 24px; height: 100%; }

.onboarding-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.onboarding-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.onboarding-icon svg { width: 20px; height: 20px; color: #fff; }
.onboarding-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.onboarding-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.onboarding-text + .onboarding-text { margin-top: 12px; }

.onboarding-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-purple {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-purple:hover { opacity: 0.9; }

/* === CONTACT === */
.section-contact { padding: 40px 20px; background: var(--bg-soft); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 896px; margin: 0 auto; }

.contact-form { padding: 24px; }
.contact-form form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }

.contact-info { display: flex; flex-direction: column; gap: 24px; justify-content: center; }

.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,139,255,0.1);
  flex-shrink: 0;
}

.contact-info-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-info-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.contact-info-value { font-size: 14px; color: var(--text-muted); white-space: pre-line; }

.social-links { display: flex; align-items: center; gap: 12px; }

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.2s;
}

.social-link:hover { opacity: 0.85; }
.social-link svg { width: 20px; height: 20px; }
.social-link.whatsapp { background: #25D366; }
.social-link.telegram { background: #0088CC; }

/* === INLINE LOGO === */
.inline-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.inline-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient-professional);
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
}
.inline-logo-wordmark {
  font-weight: 700;
  font-size: 22px;
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.inline-logo-wrap-sm {
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(27,139,255,0.1);
}
.inline-logo-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 11px;
}
.inline-logo-wordmark-sm {
  font-size: 14px;
}
.inline-logo {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.inline-logo-heading {
  height: 32px;
  width: auto;
  margin-right: 4px;
  vertical-align: baseline;
  position: relative;
  top: 2px;
}
.inline-logo-sm {
  height: 18px;
  width: auto;
}
@media (max-width: 768px) {
  .inline-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 12px;
  }
  .inline-logo-wordmark {
    font-size: 18px;
  }
  .inline-logo-wrap {
    gap: 6px;
  }
  .inline-logo-icon-sm {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 9px;
  }
  .inline-logo-wordmark-sm {
    font-size: 12px;
  }
  .inline-logo-heading {
    height: 24px;
  }
  .inline-logo-sm {
    height: 14px;
  }
}

/* === PLATFORM INTEGRATIONS === */
.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.platform-card {
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.platform-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.platform-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(27,139,255,0.06);
}
.platform-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 16px;
}
.platform-card-list {
  list-style: none;
  padding: 0;
  text-align: left;
}
.platform-card-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.platform-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-professional);
}

.custom-integration-box {
  background: linear-gradient(135deg, rgba(27,139,255,0.06), rgba(27,139,255,0.06));
  border: 1px solid rgba(27,139,255,0.15);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}
.custom-integration-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 16px;
}
.custom-integration-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 12px;
}
.custom-integration-note {
  font-size: 13px;
  color: #9CA3AF;
  font-style: italic;
}
.platform-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .platform-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .custom-integration-box {
    padding: 32px 20px;
  }
  .custom-integration-title {
    font-size: 20px;
  }
}

/* === HOW INTEGRATION WORKS - FLOW DIAGRAM === */
.integration-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
}
.flow-step {
  width: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,139,255,0.06);
  color: var(--primary);
}
.flow-icon svg {
  width: 22px;
  height: 22px;
}
.flow-icon-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.flow-step-highlight .flow-label {
  font-weight: 700;
  color: var(--primary);
}
.flow-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}
.flow-arrow {
  font-size: 20px;
  color: var(--brand-primary);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .integration-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .flow-step {
    width: 45%;
    min-width: unset;
  }
  .flow-arrow {
    display: none;
  }
}

/* === ENTERPRISE-GRADE PERFORMANCE SLIDER === */
.perf-slider-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.perf-slider-track {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.perf-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.4s ease;
}
.perf-slide.active {
  display: flex;
}
.perf-slide-value {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.perf-slide-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.perf-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.perf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.perf-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.3);
}

/* === FOOTER === */
.footer { padding: 48px 0 64px; background: var(--text-navy); }

.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; margin-bottom: 48px; }

.footer-brand p { font-size: 14px; color: #9CA3AF; margin-top: 12px; line-height: 1.6; }

.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: #9CA3AF; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-address { text-align: center; }
.footer-address p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.footer-disclaimer {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
.footer-copyright { font-size: 12px; color: var(--text-muted); user-select: none; cursor: default; }
.footer-badges { display: flex; align-items: center; gap: 16px; }
.footer-badges span { font-size: 12px; color: var(--text-muted); }

/* === MOBILE TASKBAR === */
.mobile-taskbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 480px;
  max-height: 70px;
  z-index: 500;
  transition: opacity 0.2s ease;
  display: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(10,20,40,0.75);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.mobile-taskbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.taskbar-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  text-decoration: none;
  color: #CBD5E1;
  transition: all 0.25s ease;
}


.taskbar-item .nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #111827, #1E293B);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.taskbar-item .nav-icon i {
  font-size: 16px;
  color: #1B8BFF;
  filter: none;
  transition: color 0.3s ease;
}

.taskbar-item:hover .nav-icon {
  background: rgba(27,139,255,0.15);
}

.taskbar-item.active .nav-icon {
  background: rgba(27,139,255,0.15);
  border: 1px solid rgba(27,139,255,0.4);
  box-shadow: none;
}

.taskbar-item.active .nav-icon i {
  color: #1B8BFF;
}

.taskbar-item.active {
  color: #fff;
}

.taskbar-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.4px; }

.nav-item-pricing {
  overflow: visible;
}

.nav-item-pricing .pricing-icon-wrap {
  position: relative;
  background: linear-gradient(145deg, #0d2847, #122e55);
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow:
    0 0 12px rgba(0, 180, 255, 0.2),
    0 0 24px rgba(0, 180, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: pricingPop 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.nav-item-pricing .pricing-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.4), rgba(120, 80, 255, 0.3), rgba(0, 210, 255, 0.1));
  z-index: -1;
  opacity: 0;
  animation: pricingGlow 3s ease-in-out infinite;
}

.nav-item-pricing .pricing-icon-wrap::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #7850ff);
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
  animation: pricingDot 3s ease-in-out infinite;
}

.nav-item-pricing .pricing-icon-wrap i {
  color: #00d2ff !important;
  filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.4));
  font-size: 17px;
}

.nav-item-pricing span {
  color: #00d2ff !important;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.nav-item-pricing:hover .pricing-icon-wrap {
  background: linear-gradient(145deg, #0f3360, #163a6a);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow:
    0 0 18px rgba(0, 180, 255, 0.35),
    0 0 36px rgba(0, 180, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes pricingPop {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  15% {
    transform: translateY(-10px) scale(1.15);
  }
  25% {
    transform: translateY(-2px) scale(1.05);
  }
  35% {
    transform: translateY(-6px) scale(1.1);
  }
  50% {
    transform: translateY(0) scale(1);
  }
}

@keyframes pricingGlow {
  0%, 50%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  15% {
    opacity: 0.7;
    transform: scale(1.05);
  }
  35% {
    opacity: 0.4;
    transform: scale(1.02);
  }
}

@keyframes pricingDot {
  0%, 50%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  15% {
    transform: scale(1.3);
    opacity: 1;
  }
  35% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* === CHATBOT === */
.chatbot-trigger {
  position: fixed;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient-professional);
  border: none;
  box-shadow: 0 8px 20px rgba(27,139,255,0.35);
  bottom: 95px;
  right: 20px;
  cursor: pointer;
}

.chatbot-trigger.pulse { animation: chatbotPulse 2s ease-in-out; }
.chatbot-trigger i { font-size: 22px; }

/* Chatbot Overlay */
.chatbot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.chat-open .chatbot-overlay {
  display: block;
  opacity: 1;
}

body.chat-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

body.chat-open .mobile-taskbar {
  opacity: 0;
  pointer-events: none;
}

/* Chatbot Window — iOS Sheet Style */
.chatbot-window {
  position: fixed;
  z-index: 9999;
  background: #FFFFFF;
  color: #1A2A3A;
  border: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: calc(85vh - 10px);
  max-height: 700px;
  padding-bottom: env(safe-area-inset-bottom);
  will-change: transform;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.chatbot-window.chatbot-visible {
  transform: translateY(0);
}

.chatbot-window.chatbot-dragging {
  transition: none;
}

/* Drag Handle */
.chatbot-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
  flex-shrink: 0;
  background: inherit;
  -webkit-user-select: none;
  user-select: none;
}

.chatbot-drag-handle:active {
  cursor: grabbing;
}

.chatbot-drag-pill {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: #D1D5DB;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.chatbot-header-left { display: flex; align-items: center; gap: 8px; }

.chatbot-header-right { display: flex; align-items: center; gap: 6px; }

.chatbot-back-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  cursor: pointer;
}

.chatbot-back-btn svg { width: 12px; height: 12px; }

.chatbot-title { font-size: 14px; font-weight: 600; }

.chatbot-minimize-btn,
.chatbot-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chatbot-minimize-btn:hover,
.chatbot-close-btn:hover {
  background: rgba(255,255,255,0.35);
}

.chatbot-close-btn svg { width: 16px; height: 16px; }

/* Desktop: centered card style instead of full-width */
@media (min-width: 769px) {
  .chatbot-window {
    bottom: 0;
    right: 24px;
    left: auto;
    width: 400px;
    max-width: 400px;
    height: 600px;
    max-height: 600px;
    border-radius: 16px 16px 0 0;
    margin: 0;
  }
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }

.chat-msg-content { max-width: 85%; }

.chat-bubble {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: pre-line;
  line-height: 1.5;
}

.chat-bubble.user { background: var(--primary); color: #fff; }
.chat-bubble.bot { background: #F3F4F6; color: var(--text-primary); }

.chat-buttons { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.chat-option-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(27,139,255,0.3);
  background: rgba(27,139,255,0.05);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-option-btn:hover { background: rgba(27,139,255,0.12); }

.chat-typing {
  display: flex;
  justify-content: flex-start;
}

.chat-typing-bubble {
  background: #F3F4F6;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.chatbot-form {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.chatbot-textarea {
  min-height: 60px;
  max-height: 100px;
  line-height: 1.4;
  padding: 10px 12px;
  font-family: inherit;
}

.quick-option {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.quick-option:active {
  transform: scale(0.97);
}
.quick-option:hover {
  box-shadow: 0 0 0 2px rgba(27,139,255,0.3), 0 2px 8px rgba(27,139,255,0.15);
}

.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chatbot-input-row .input { flex: 1; }

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  flex-shrink: 0;
}

.chatbot-send-btn:disabled { opacity: 0.5; }
.chatbot-send-btn svg { width: 16px; height: 16px; }

.chatbot-restart {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  flex-shrink: 0;
}

.chat-quick-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.quick-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(27,139,255,0.1);
  border: 1px solid rgba(27,139,255,0.2);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  color: var(--text-primary);
}

.quick-option:hover {
  background: rgba(27,139,255,0.2);
  border-color: rgba(27,139,255,0.35);
}

.quick-option strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-option-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.chat-rep-contact {
  background: rgba(27,139,255,0.06);
  border: 1px solid rgba(27,139,255,0.15);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.chat-rep-contact strong {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.chat-rep-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.chat-rep-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.chat-rep-wa {
  background: #25D366;
  color: #fff;
}

.chat-rep-wa:hover {
  background: #1EBE57;
}

.chat-rep-tg {
  background: #0088cc;
  color: #fff;
}

.chat-rep-tg:hover {
  background: #0077b5;
}

.chatbot-input-row .input {
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === THEME TOGGLE === */
.theme-toggle {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(27,139,255,0.1); }
body.dark-mode .theme-toggle:hover { background: rgba(255,255,255,0.1); }

/* === DARK MODE - REAL DARK DESIGN SYSTEM === */
body.dark-mode {
  background: #06152B !important;
  background-image: none;
  color: #E6F0FF;
  --hero-gradient: linear-gradient(135deg, #06152B 0%, #071C36 100%);
  --bg-soft: #071C36;
  --bg-card: #0C2547;
  --text-primary: #E6F0FF;
  --text-secondary: #B8D4FF;
  --text-muted: #8BAED4;
  --text-light: #6B8DB5;
  --border-color: rgba(27,139,255,0.15);
  --border-light: rgba(27,139,255,0.08);
  --fnox-dark: #E6F0FF;
}

body.dark-mode section,
body.dark-mode .section {
  background: #071C36 !important;
}

body.dark-mode .container {
  background: transparent !important;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode span {
  color: #B8D4FF;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #FFFFFF;
}

body.dark-mode .muted-text {
  color: #8BAED4;
}

body.dark-mode .card,
body.dark-mode .content-box,
body.dark-mode .testimonial-card,
body.dark-mode .section-box,
body.dark-mode .pricing-card,
body.dark-mode .feature-card,
body.dark-mode .platform-card,
body.dark-mode .flow-step,
body.dark-mode .disclosure-box,
body.dark-mode .accordion-item {
  background: #0C2547 !important;
  border: 1px solid rgba(27,139,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

body.dark-mode .card-soft {
  background: #0C2547 !important;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #06152B 0%, #071C36 100%);
}

body.dark-mode .header {
  background: rgba(6,21,43,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,139,255,0.1);
}
body.dark-mode .header.scrolled {
  background: rgba(6,21,43,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,139,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .nav-link { color: #B8D4FF; }
body.dark-mode .nav-link:hover { color: var(--brand-primary); }

body.dark-mode .mobile-menu { background: rgba(6,21,43,0.98); }
body.dark-mode .mobile-menu .nav-link { color: #B8D4FF; }

body.dark-mode .logo-icon {
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.3),
    0 0 25px rgba(96,165,250,0.6);
}

body.dark-mode .logo-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  color: #ffffff;
}

body.dark-mode .card {
  background: #0C2547 !important;
  border-color: rgba(27,139,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

body.dark-mode .stat-card {
  background: #0C2547 !important;
  border-color: rgba(27,139,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

body.dark-mode .btn-primary {
  box-shadow: 0 8px 20px rgba(27,139,255,0.3);
}
body.dark-mode .btn-primary:hover {
  box-shadow: 0 12px 28px rgba(27,139,255,0.35);
}

body.dark-mode .dashboard-card { background: #0C2547 !important; }
body.dark-mode .metric-card { background: #10294F !important; }

body.dark-mode .section-stats,
body.dark-mode .section-routing,
body.dark-mode .section-calculator,
body.dark-mode .section-casestudies,
body.dark-mode .section-testimonials,
body.dark-mode .section-onboarding,
body.dark-mode .section-contact,
body.dark-mode .section-pg-partners {
  background: #071C36 !important;
}

body.dark-mode .section-api,
body.dark-mode .section-pricing,
body.dark-mode .section-dashboard {
  background: #071C36 !important;
}

body.dark-mode .gateway-item {
  background: #0C2547 !important;
  border-color: rgba(27,139,255,0.15);
}
body.dark-mode .code-header { background: #10294F !important; }
body.dark-mode .calc-box-traditional {
  background: rgba(12, 37, 71, 0.7) !important;
  border: 1px solid rgba(27,139,255,0.12);
}
body.dark-mode .calc-box-fnoxpe { background: rgba(27,139,255,0.12) !important; }
body.dark-mode .calc-box-savings { background: rgba(27,139,255,0.08) !important; }
body.dark-mode .calc-box-value-dark { color: #E6F0FF !important; }
body.dark-mode .calc-box-label { color: #94A3B8 !important; }
body.dark-mode .calc-box-icon-muted { color: #94A3B8 !important; }

body.dark-mode .case-company { color: #E6F0FF !important; }
body.dark-mode .case-industry { color: #94A3B8 !important; }
body.dark-mode .case-label { color: #CBD5E1 !important; }
body.dark-mode .case-desc { color: #94A3B8 !important; }
body.dark-mode .case-icon-wrap { background: rgba(27,139,255,0.15); }

body.dark-mode .input,
body.dark-mode .textarea {
  background: #10294F !important;
  border-color: rgba(27,139,255,0.15);
  color: #E6F0FF;
}

body.dark-mode .chat-bubble.bot { background: #0C2547 !important; color: #E6F0FF; }
body.dark-mode .chat-typing-bubble { background: #0C2547 !important; }
body.dark-mode .chatbot-window { background: #0C2547 !important; color: #E6F0FF; }
body.dark-mode .chatbot-drag-pill { background: rgba(255,255,255,0.2); }
body.dark-mode .chatbot-overlay { background: rgba(0,0,0,0.7); }
body.dark-mode .chatbot-form { background: #0C2547 !important; }
body.dark-mode .quick-option { background: rgba(27,139,255,0.15); border-color: rgba(27,139,255,0.25); }
body.dark-mode .quick-option:hover { background: rgba(27,139,255,0.25); }
body.dark-mode .quick-option strong { color: #E6F0FF; }
body.dark-mode .quick-option-desc { color: #B8D4FF; }
body.dark-mode .chat-rep-contact { background: rgba(27,139,255,0.08); border-color: rgba(27,139,255,0.2); }
body.dark-mode .chat-rep-contact strong { color: #E6F0FF; }

body.dark-mode .chat-option-btn {
  border-color: rgba(27,139,255,0.3);
  background: rgba(27,139,255,0.08);
  color: #E6F0FF;
}
body.dark-mode .chat-option-btn:hover { background: rgba(27,139,255,0.15); }

body.dark-mode .pg-card {
  background: #102B4E !important;
  border: 1px solid rgba(27,139,255,0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

body.dark-mode .pg-card:hover {
  transform: translateY(-6px);
  border-color: #1B8BFF;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

body.dark-mode .gateway-logo-wrap {
  background: rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 12px;
}

body.dark-mode .gateway-logo-wrap img {
  max-height: 40px;
  filter: brightness(1.2) contrast(1.2);
  mix-blend-mode: normal;
}

body.dark-mode .platform-card-title { color: #FFFFFF; }
body.dark-mode .platform-card-list li { color: #B8D4FF; }
body.dark-mode .custom-integration-title { color: #FFFFFF; }
body.dark-mode .custom-integration-text { color: #B8D4FF; }
body.dark-mode .custom-integration-note { color: #8BAED4; }
body.dark-mode .custom-integration-box {
  background: linear-gradient(145deg, #0C2547, #071C36) !important;
  border-color: rgba(27,139,255,0.25);
}

body.dark-mode .important-disclosure,
body.dark-mode .disclosure-box {
  background: linear-gradient(145deg, #0C2547, #071C36) !important;
  border: 1px solid rgba(27,139,255,0.25);
}

body.dark-mode .platform-card-icon { background: rgba(27,139,255,0.12); }
body.dark-mode .flow-icon { background: rgba(27,139,255,0.12); }
body.dark-mode .contact-info-icon { background: rgba(27,139,255,0.12); }

body.dark-mode .bank-item {
  background: #0C2547 !important;
  border-color: rgba(27,139,255,0.15);
}


body.dark-mode .mobile-taskbar {
  background: rgba(6,21,43,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(27,139,255,0.1);
}

body.dark-mode .mobile-taskbar i,
body.dark-mode .taskbar-item .nav-icon i {
  color: #B8D4FF;
}

body.dark-mode .taskbar-item.active .nav-icon {
  background: var(--gradient-professional);
}
body.dark-mode .taskbar-item.active .nav-icon i {
  color: #ffffff;
}

body.dark-mode .section-comparison {
  background: linear-gradient(180deg, #081526 0%, #0b1f36 100%);
}

body.dark-mode .comparison-wrap {
  background: rgba(12, 28, 50, 0.9);
  border: 1px solid rgba(27,139,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

body.dark-mode .comparison-table th {
  color: #ffffff;
  background: rgba(27,139,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark-mode .comparison-table td {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark-mode .comparison-table tbody tr:hover {
  background: rgba(27,139,255,0.05);
}

body.dark-mode .cmp-check {
  color: #1B8BFF;
}

body.dark-mode .cmp-cross {
  color: rgba(255,255,255,0.25);
}

body.dark-mode .cmp-partial {
  color: rgba(255,255,255,0.35);
}

body.dark-mode .hero-fade { background: linear-gradient(to top, #06152B, transparent); }

body.dark-mode .legal-page { background: #06152B !important; }
body.dark-mode .legal-content {
  background: #0C2547 !important;
  border: 1px solid rgba(27,139,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
body.dark-mode .legal-title { color: #FFFFFF; }
body.dark-mode .legal-updated { color: #9FB8E8; }
body.dark-mode .legal-content h2 { color: #FFFFFF; }
body.dark-mode .legal-content h3 { color: #FFFFFF; }
body.dark-mode .legal-content strong { color: #E6F0FF; }
body.dark-mode .legal-content p,
body.dark-mode .legal-content li { color: #B8D4FF; }

.tsm-disclosure-card {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(27,139,255,0.08), rgba(27,139,255,0.04));
  border: 1px solid rgba(27,139,255,0.2);
  border-radius: 10px;
  margin-bottom: 32px;
}
.tsm-disclosure-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #0F2B5B;
  line-height: 1.7;
  letter-spacing: 0.2px;
}
.tsm-disclosure-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.2px;
  color: #334155;
}
.tsm-disclosure-text-last {
  margin-bottom: 0;
}

body.dark-mode .tsm-disclosure-card {
  background: linear-gradient(180deg, #0E223F 0%, #0B1C33 100%);
  border: 1px solid rgba(27,139,255,0.25);
  box-shadow: 0 0 25px rgba(27,139,255,0.08);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
body.dark-mode .tsm-disclosure-heading {
  color: #FFFFFF;
}
body.dark-mode .tsm-disclosure-text {
  color: #D6E4FF;
}

body.dark-mode .btn-signup-nav { border-color: var(--brand-primary); color: var(--brand-primary); }
body.dark-mode .btn-outline { border-color: var(--brand-primary); color: var(--brand-primary); }

body.dark-mode .gst-note { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #B8D4FF; }

body.dark-mode .fnoxpe-badge { background: rgba(27,139,255,0.12); color: var(--brand-primary); }

body.dark-mode .chatbot-trigger {
  background: var(--gradient-professional);
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

body.dark-mode .cta-section {
  background: linear-gradient(135deg, #06152B, #0A1E3C);
}

body.dark-mode .cta-section .btn-primary {
  background: #1B8BFF;
  color: white;
}

body.dark-mode .cta-section .btn-primary:hover {
  background: #1575D4;
}

body.dark-mode .bg-heading {
  opacity: 0.05;
}

body.dark-mode .menu-icon {
  color: #ffffff !important;
}

/* === SVG ICON DEFAULTS === */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
  .cta-buttons { flex-direction: row; }

  .pricing-item { flex-direction: row; align-items: center; justify-content: space-between; }

  .calc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .nav-desktop { display: flex; }
  .menu-toggle { display: none !important; }

  .mobile-taskbar { display: none !important; }

  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .api-grid { grid-template-columns: repeat(2, 1fr); }

  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .onboarding-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom-row { flex-direction: row; }

  .hero-trust { gap: 48px; }

  .gateway-stat.speed-col { display: block; }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  section { margin: 40px 0; }

  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  p  { font-size: 15px; }

  .section-title { font-size: 20px; }
  .cta-section h2 { font-size: 26px; }
  .cta-section { padding: 70px 20px; }
  .cta-buttons { flex-direction: column; }

  .hero {
    padding: 60px 16px 40px;
  }

  .stats-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .gateway-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gateway-stats {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .nav-desktop { display: none !important; }
  .menu-toggle { display: flex !important; }

  .mobile-taskbar { display: block; }

  .blob { width: 200px; height: 200px; }
  .webgl-mesh { display: none; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .chatbot-window {
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 70vh;
    bottom: 64px;
    border-radius: 20px;
  }

  .gateway-stat.speed-col { display: none; }

  body { padding-bottom: 60px; }
}

/* === LEGAL PAGES === */
.legal-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
  background: var(--bg-soft);
}

.legal-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-navy);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-navy);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text-navy);
}

@media (max-width: 640px) {
  .legal-content {
    padding: 24px 16px;
    border-radius: 8px;
  }
  .legal-page {
    padding: 80px 0 40px;
  }
}

/* === MOBILE ACCORDION === */
.accordion-header { display: none; }
.accordion-content { display: block !important; }

@media (max-width: 768px) {
  .accordion-section {
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.4s ease;
  }
  .accordion-section.active {
    background: linear-gradient(
      135deg,
      rgba(27,139,255,0.15),
      rgba(11,31,59,0.4)
    );
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    -webkit-user-select: none;
  }
  .accordion-arrow {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    display: block !important;
  }
  .accordion-section.active .accordion-content {
    max-height: 2000px;
  }

  .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .flow-icon,
  .platform-card-icon {
    box-shadow: none;
  }
  .gradient-mesh-1,
  .gradient-mesh-2,
  .gradient-mesh-3 {
    animation: none !important;
  }
}

body.dark-mode .accordion-section { background: #0C2547 !important; }
body.dark-mode .accordion-header { border-bottom-color: rgba(27,139,255,0.15); color: #E6F0FF; }
body.dark-mode .accordion-arrow { color: #B8D4FF; }

/* === SMART ROUTING ANIMATION === */
.sr-video {
  max-width: 820px;
  margin: 0 auto 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1px solid #dbeafe;
  padding: 32px 20px 20px;
  overflow: hidden;
}
body.dark-mode .sr-video {
  background: linear-gradient(135deg, #0c1a30 0%, #0e2240 100%);
  border-color: rgba(27,139,255,0.18);
}
.sr-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.sr-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.sr-node-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sr-icon-user {
  background: linear-gradient(135deg, #1B8BFF, #0f5bb0);
}
.sr-icon-engine {
  background: linear-gradient(135deg, #1B8BFF, #0B1F3B);
  position: relative;
  z-index: 2;
}
.sr-node-label {
  font-size: 12px; font-weight: 700; color: #1e293b;
}
body.dark-mode .sr-node-label { color: #e2e8f0; }
.sr-node-sub {
  font-size: 10px; color: #64748b; font-weight: 500;
}

/* Engine */
.sr-engine { position: relative; }
.sr-engine-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 60px; height: 60px;
  margin: -42px 0 0 -30px;
  border-radius: 50%;
  border: 2px solid rgba(27,139,255,0.3);
  animation: srPulse 2s ease-out infinite;
}
@keyframes srPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.sr-engine-bars {
  display: flex; gap: 3px; margin-top: 2px; height: 18px; align-items: flex-end;
}
.sr-bar {
  width: 5px; border-radius: 2px;
  background: #1B8BFF;
  animation: srBarBounce 1s ease-in-out infinite;
}
.sr-bar:nth-child(1) { animation-delay: 0s; }
.sr-bar:nth-child(2) { animation-delay: 0.15s; }
.sr-bar:nth-child(3) { animation-delay: 0.3s; }
.sr-bar:nth-child(4) { animation-delay: 0.45s; }
.sr-bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes srBarBounce {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

/* Connection lines */
.sr-line {
  width: 60px; height: 3px; position: relative;
  background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
  flex-shrink: 0;
}
body.dark-mode .sr-line {
  background: repeating-linear-gradient(90deg, #334155 0, #334155 6px, transparent 6px, transparent 12px);
}
.sr-packet {
  position: absolute; top: -4px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1B8BFF;
  box-shadow: 0 0 12px rgba(27,139,255,0.6);
}
.sr-packet-1 { animation: srMove1 2.5s ease-in-out infinite; }
.sr-packet-2 { animation: srMove2 2.5s ease-in-out infinite 1.2s; }
@keyframes srMove1 {
  0% { left: 0; opacity: 1; }
  80% { left: calc(100% - 10px); opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes srMove2 {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  80% { left: calc(100% - 10px); opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* Gateways */
.sr-gateways {
  display: flex; flex-direction: column; gap: 8px;
}
.sr-gw {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 12px; padding: 8px 12px;
  position: relative;
  transition: all 0.3s;
}
body.dark-mode .sr-gw {
  background: #1a2744; border-color: #2d3f5e;
}
.sr-gw-dim { opacity: 0.45; }
.sr-gw-best {
  opacity: 1;
  border-color: #1B8BFF;
  box-shadow: 0 0 16px rgba(27,139,255,0.2);
  animation: srGwGlow 2s ease-in-out infinite;
}
@keyframes srGwGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(27,139,255,0.15); }
  50% { box-shadow: 0 0 20px rgba(27,139,255,0.35); }
}
.sr-gw-logo {
  width: 28px; height: 28px; border-radius: 6px; object-fit: contain;
}
.sr-gw-name {
  font-size: 12px; font-weight: 700; color: #1e293b; min-width: 60px;
}
body.dark-mode .sr-gw-name { color: #e2e8f0; }
.sr-gw-stat {
  font-size: 10px; color: #64748b; white-space: nowrap;
}
.sr-gw-badge {
  font-size: 8px; font-weight: 700;
  color: #059669; background: #ecfdf5;
  padding: 2px 8px; border-radius: 8px;
  animation: srBadgePop 2s ease-in-out infinite;
  white-space: nowrap;
}
body.dark-mode .sr-gw-badge { background: rgba(5,150,105,0.15); }
@keyframes srBadgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Benefits row */
.sr-benefits {
  display: flex; gap: 8px; margin-top: 18px;
  justify-content: center; flex-wrap: wrap;
}
.sr-benefit {
  font-size: 11px; padding: 6px 14px;
  border-radius: 20px; white-space: nowrap;
  animation: srFadeIn 6s ease-in-out infinite;
}
.sr-b1 { background: #ecfdf5; color: #059669; animation-delay: 0s; }
.sr-b2 { background: #eff6ff; color: #1B8BFF; animation-delay: 1.5s; }
.sr-b3 { background: #fef3c7; color: #b45309; animation-delay: 3s; }
.sr-b4 { background: #f0fdf4; color: #15803d; animation-delay: 4.5s; }
body.dark-mode .sr-b1 { background: rgba(5,150,105,0.12); }
body.dark-mode .sr-b2 { background: rgba(27,139,255,0.12); }
body.dark-mode .sr-b3 { background: rgba(180,83,9,0.12); }
body.dark-mode .sr-b4 { background: rgba(21,128,61,0.12); }
@keyframes srFadeIn {
  0%, 10% { opacity: 0.3; transform: translateY(4px); }
  20%, 40% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0.3; transform: translateY(4px); }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .sr-video { padding: 20px 12px 16px; border-radius: 14px; }
  .sr-flow { flex-direction: column; gap: 0; }
  .sr-line { width: 3px; height: 40px; }
  .sr-packet { top: 0; left: -4px; }
  .sr-packet-1 { animation: srMoveV 2.5s ease-in-out infinite; }
  .sr-packet-2 { animation: srMoveV 2.5s ease-in-out infinite 1.2s; }
  .sr-gateways { flex-direction: column; width: 100%; }
  .sr-gw { width: 100%; }
  .sr-benefits { gap: 6px; }
  .sr-benefit { font-size: 10px; padding: 5px 10px; }
}
@keyframes srMoveV {
  0% { top: 0; opacity: 1; }
  80% { top: calc(100% - 10px); opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; }
}

/* === PLATFORM INTEGRATION VIDEO === */
.pi-video-section {
  padding: 40px 20px 0;
}
.pi-video {
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1px solid #dbeafe;
  padding: 32px 24px 24px;
  overflow: hidden;
}
body.dark-mode .pi-video {
  background: linear-gradient(135deg, #0c1a30 0%, #0e2240 100%);
  border-color: rgba(27,139,255,0.18);
}
.pi-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.pi-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pi-block-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.pi-icon-merchant {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.pi-icon-hub {
  background: linear-gradient(135deg, #1B8BFF, #0B1F3B);
  position: relative; z-index: 2;
}
.pi-hub-f {
  font-size: 22px; font-weight: 800; color: #fff;
  font-family: Inter, sans-serif;
}
.pi-block-title {
  font-size: 13px; font-weight: 700; color: #1e293b;
}
body.dark-mode .pi-block-title { color: #e2e8f0; }
.pi-block-sub {
  font-size: 9px; color: #64748b; text-align: center; max-width: 100px;
}

/* Hub pulse */
.pi-hub { position: relative; }
.pi-hub-ring {
  position: absolute; top: -8px; left: 50%; margin-left: -34px;
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid rgba(27,139,255,0.25);
  animation: piPulse 2s ease-out infinite;
}
@keyframes piPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
.pi-hub-indicators {
  display: flex; gap: 4px; margin-top: 2px;
}
.pi-ind {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1B8BFF;
}
.pi-ind-1 { animation: piIndBlink 1.5s ease infinite 0s; }
.pi-ind-2 { animation: piIndBlink 1.5s ease infinite 0.3s; }
.pi-ind-3 { animation: piIndBlink 1.5s ease infinite 0.6s; }
@keyframes piIndBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Connectors */
.pi-connector {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  position: relative; width: 70px; flex-shrink: 0;
}
.pi-conn-line {
  width: 100%; height: 3px;
  background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
}
body.dark-mode .pi-conn-line {
  background: repeating-linear-gradient(90deg, #334155 0, #334155 6px, transparent 6px, transparent 12px);
}
.pi-conn-dot {
  position: absolute; top: -4px; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: #1B8BFF;
  box-shadow: 0 0 12px rgba(27,139,255,0.5);
}
.pi-dot-1 { animation: piDotMove 2.5s ease-in-out infinite; }
.pi-dot-2 { animation: piDotMove 2.5s ease-in-out infinite 1s; }
@keyframes piDotMove {
  0% { left: 0; opacity: 1; }
  80% { left: calc(100% - 10px); opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
.pi-conn-label {
  font-size: 9px; font-weight: 600; color: #1B8BFF;
  white-space: nowrap;
}

/* Gateway fan */
.pi-fan {
  display: flex; flex-direction: column; gap: 6px;
}
.pi-fan-item {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 6px 12px;
  opacity: 0;
  animation: piFanIn 4s ease-in-out infinite;
}
body.dark-mode .pi-fan-item { background: #1a2744; border-color: #2d3f5e; }
.pi-fan-1 { animation-delay: 0s; }
.pi-fan-2 { animation-delay: 0.4s; }
.pi-fan-3 { animation-delay: 0.8s; }
.pi-fan-4 { animation-delay: 1.2s; }
@keyframes piFanIn {
  0%, 5% { opacity: 0; transform: translateX(-10px); }
  15%, 85% { opacity: 1; transform: translateX(0); }
  95%, 100% { opacity: 0; transform: translateX(-10px); }
}
.pi-fan-logo {
  width: 26px; height: 26px; border-radius: 6px; object-fit: contain;
}
.pi-fan-name {
  font-size: 11px; font-weight: 600; color: #1e293b;
}
body.dark-mode .pi-fan-name { color: #e2e8f0; }

/* Stats row */
.pi-stats-row {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 20px; flex-wrap: wrap;
}
.pi-stat {
  text-align: center; padding: 8px 18px;
  border-radius: 12px; background: #fff;
  border: 1px solid #e2e8f0;
}
body.dark-mode .pi-stat { background: #1a2744; border-color: #2d3f5e; }
.pi-stat-pop1 { animation: piStatPop 5s ease infinite 0s; }
.pi-stat-pop2 { animation: piStatPop 5s ease infinite 1.5s; }
.pi-stat-pop3 { animation: piStatPop 5s ease infinite 3s; }
@keyframes piStatPop {
  0%, 10% { transform: scale(0.95); opacity: 0.5; }
  20%, 50% { transform: scale(1); opacity: 1; }
  60%, 100% { transform: scale(0.95); opacity: 0.5; }
}
.pi-stat-val {
  display: block; font-size: 18px; font-weight: 800; color: #1B8BFF;
}
.pi-stat-label {
  font-size: 10px; color: #64748b;
}

/* Mobile */
@media (max-width: 600px) {
  .pi-video { padding: 20px 14px 16px; border-radius: 14px; }
  .pi-flow-row { flex-direction: column; gap: 0; }
  .pi-connector { width: 3px; height: 40px; flex-direction: row; }
  .pi-conn-line {
    width: 3px; height: 100%;
    background: repeating-linear-gradient(180deg, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
  }
  body.dark-mode .pi-conn-line {
    background: repeating-linear-gradient(180deg, #334155 0, #334155 6px, transparent 6px, transparent 12px);
  }
  .pi-conn-dot {
    top: 0; left: -4px;
    animation: piDotMoveV 2.5s ease-in-out infinite !important;
  }
  .pi-conn-label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
  .pi-fan { flex-direction: column; width: 100%; }
  .pi-fan-item { width: 100%; }
  .pi-stats-row { gap: 8px; }
  .pi-stat { padding: 6px 12px; }
  .pi-stat-val { font-size: 15px; }
}
@keyframes piDotMoveV {
  0% { top: 0; opacity: 1; }
  80% { top: calc(100% - 10px); opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; }
}

.fs-card-dropdown { width: 100%; }
.fs-card-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
}
.fs-dropdown-arrow {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.fs-card-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.fs-card-dropdown.active .fs-card-dropdown-content {
  max-height: 600px;
}
.fs-card-dropdown.active .fs-dropdown-arrow {
  transform: rotate(45deg);
}

/* ===================================================================
   FNOXPE — Global Header / Nav / Footer (hp-* classes)
   Loaded on all pages via style.css
   =================================================================== */

/* ── Header ──────────────────────────────────────────────────────── */
.hp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.hp-header--scrolled {
  border-color: #E2E8F0;
  box-shadow: 0 2px 16px rgba(15,23,42,.07);
  background: rgba(255,255,255,.97);
}
.hp-header-inner {
  display: flex; align-items: center; gap: 0;
  height: 68px; padding: 0 4px;
}
.hp-header-inner .hp-logo { margin-right: 40px; }

/* ── Logo ────────────────────────────────────────────────────────── */
.hp-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0; margin-right: 32px;
}
.hp-logo-icon   { width: 32px; height: 32px; display: block; }
.hp-logo-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -.5px;
  color: transparent; /* overridden by spans */
}
.hp-logo-wordmark .wm-blue   { color: #1A46D4; }
.hp-logo-wordmark .wm-violet { color: #7C3AED; }
.hp-logo-wordmark .wm-orange { color: #F97316; }

/* ── Desktop nav ─────────────────────────────────────────────────── */
.hp-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.hp-nav-item { position: relative; }
.hp-nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: #475569; background: none; border: none; cursor: pointer;
  text-decoration: none; transition: color .18s, background .18s;
  font-family: inherit; white-space: nowrap;
}
.hp-nav-link:hover { color: #1A46D4; background: rgba(26,70,212,.06); }
.hp-chevron { transition: transform .22s; }
.hp-has-dropdown.hp-open .hp-chevron { transform: rotate(180deg); }

/* ── Dropdown ────────────────────────────────────────────────────── */
.hp-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 240px; background: #fff; border-radius: 14px;
  border: 1px solid #E2E8F0; box-shadow: 0 16px 48px rgba(15,23,42,.12);
  padding: 8px; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .22s, transform .22s;
  z-index: 200;
}
.hp-has-dropdown.hp-open .hp-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.hp-dd-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px; text-decoration: none;
  transition: background .18s;
}
.hp-dd-item:hover { background: #F8FAFF; }
.hp-dd-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.hp-dd-text { display: flex; flex-direction: column; gap: 1px; }
.hp-dd-text strong { font-size: 13px; font-weight: 700; color: #0F172A; }
.hp-dd-text em     { font-style: normal; font-size: 11px; color: #64748B; }

/* ── Nav right ───────────────────────────────────────────────────── */
.hp-nav-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.hp-nav-login {
  font-size: 13.5px; font-weight: 600; color: #475569;
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: color .18s, background .18s;
}
.hp-nav-login:hover { color: #1A46D4; background: rgba(26,70,212,.06); }
.hp-nav-cta { font-size: 13.5px; padding: 9px 20px; border-radius: 10px; }

/* ── Hamburger ────────────────────────────────────────────────────── */
.hp-menu-btn {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: 8px;
  transition: background .18s;
}
.hp-menu-btn:hover { background: rgba(15,23,42,.05); }
.hp-menu-bar { width: 20px; height: 2px; background: #475569; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ── Mobile menu ─────────────────────────────────────────────────── */
.hp-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 88vw;
  background: #fff; z-index: 1100; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.hp-mobile-menu--open { transform: translateX(0); }
.hp-mobile-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.35);
  z-index: 1099; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.hp-mobile-overlay--visible { opacity: 1; pointer-events: auto; }
.hp-mm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #E2E8F0;
}
.hp-mm-close {
  background: none; border: none; font-size: 18px; color: #64748B;
  cursor: pointer; width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.hp-mm-close:hover { background: rgba(15,23,42,.06); }
.hp-mm-nav { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.hp-mm-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #94A3B8; padding: 10px 8px 4px; margin: 0;
}
.hp-mm-link {
  display: block; padding: 10px 12px; font-size: 14px; font-weight: 600;
  color: #334155; border-radius: 8px; text-decoration: none; transition: background .18s, color .18s;
}
.hp-mm-link:hover { background: rgba(26,70,212,.07); color: #1A46D4; }
.hp-mm-footer {
  padding: 16px 20px; border-top: 1px solid #E2E8F0;
  display: flex; flex-direction: column; gap: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.hp-footer {
  background: #0F172A; color: #CBD5E1; padding: 64px 0 0;
}
.hp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hp-footer-brand .hp-logo { margin-bottom: 14px; }
.hp-footer-tagline { font-size: 13.5px; color: #94A3B8; line-height: 1.65; margin: 12px 0 20px; max-width: 260px; }
.hp-footer-social { display: flex; gap: 8px; }
.hp-social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #94A3B8; text-decoration: none;
  transition: background .18s, color .18s;
}
.hp-social-link:hover { background: rgba(26,70,212,.3); color: #fff; }
.hp-footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.hp-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-footer-links li a {
  font-size: 13.5px; color: #94A3B8; text-decoration: none; transition: color .18s;
}
.hp-footer-links li a:hover { color: #fff; }
.hp-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 12px;
}
.hp-footer-bottom p { font-size: 12px; color: #64748B; margin: 0; }
.hp-footer-bottom-links { display: flex; gap: 16px; }
.hp-footer-bottom-links a { font-size: 12px; color: #64748B; text-decoration: none; transition: color .18s; }
.hp-footer-bottom-links a:hover { color: #94A3B8; }

/* ── Responsive nav / footer ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hp-nav { display: none; }
  .hp-nav-login, .hp-nav-cta { display: none; }
  .hp-menu-btn { display: flex; }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-footer-bottom { flex-direction: column; text-align: center; }
  .hp-logo-wordmark { font-size: 16px; }
}
