/* ==========================================================================
 * FINTECH HOMEPAGE - BOOTSTRAP 5
 * ==========================================================================
 * Modern dark theme landing page with glass morphism, animations, and
 * seamless section transitions. All Bootstrap 4 classes removed.
 * ========================================================================== */

/* ==========================================================================
 * NAVBAR TO HERO CONNECTION
 * ========================================================================== */

/* Remove default body background on homepage */
body.page-index .bg-light {
  background-color: var(--hero-bg-darker) !important;
}

/* Seamless navbar to hero transition */
header .header-middle {
  background: rgba(2, 6, 23, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative;
  z-index: 1030;
}

/* Make navbar text visible on dark background */
header .navbar-brand,
header .nav-link {
  color: var(--text-primary-dark) !important;
}

header .nav-link:hover {
  color: var(--hero-accent-secondary) !important;
}

/* Button adjustments for dark navbar */
header .btn-secondary {
  background: linear-gradient(
    135deg,
    var(--hero-accent-primary),
    var(--hero-accent-secondary)
  );
  border: none;
  color: white;
}

header .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
 * FINTECH STYLE HERO (2025 Refresh)
 * ==========================================================================
 */

:root {
  --hero-bg-dark: #0f172a;
  --hero-bg-darker: #020617;
  --hero-accent-primary: #3b82f6;
  --hero-accent-secondary: #06b6d4;
  --hero-accent-glow: rgba(59, 130, 246, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #94a3b8;
}

.fintech-hero {
  background-color: var(--hero-bg-darker);
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(6, 182, 212, 0.1) 0%,
      transparent 40%
    );
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  margin-top: 0;
  color: var(--text-primary-dark);
  z-index: 1;
}

/* Background Glow Effects */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--hero-accent-glow) 0%,
    transparent 70%
  );
  opacity: 0.15;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-1 {
  top: -20%;
  left: -10%;
}
.hero-glow-2 {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.4) 0%,
    transparent 70%
  );
}

/* Typography */
.fintech-hero .display-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fintech-hero .text-gradient {
  background: linear-gradient(
    135deg,
    var(--hero-accent-primary) 0%,
    var(--hero-accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fintech-hero .lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary-dark);
  font-weight: 400;
  line-height: 1.6;
  max-width: 540px;
}

/* Buttons */
.btn-glow {
  background: linear-gradient(
    135deg,
    var(--hero-accent-primary) 0%,
    var(--hero-accent-secondary) 100%
  );
  border: none;
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  color: white;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.7) 0%,
    rgba(15, 23, 42, 0.7) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Animations */
.float-1 {
  animation: float-y 6s ease-in-out infinite;
}
.float-2 {
  animation: float-y 8s ease-in-out infinite reverse;
}
.float-3 {
  animation: float-y 7s ease-in-out infinite 1s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Feature Badges - Using BS5: d-flex align-items-center gap-2 p-3 rounded-3 */
.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-badge i {
  color: var(--hero-accent-secondary);
}

.hero-badge span {
  font-weight: 600;
  color: var(--text-primary-dark);
}

/* ==========================================================================
 * HERO VISUAL ANIMATIONS (Server-Mobile Connection)
 * ==========================================================================
 */

.visual-scene {
  height: 400px;
  perspective: 1000px;
}

.visual-node {
  transition: transform 0.3s ease;
}

.server-node {
  top: 5%;
  right: 5%;
}

.mobile-node {
  bottom: 5%;
  left: 5%;
}

.pipeline-container {
  pointer-events: none;
}

/* Diagonal line connecting nodes */
.pipeline-path {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transform: translate(-50%, -50%) rotate(-35deg);
}

.data-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--hero-accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--hero-accent-secondary);
  opacity: 0;
}

.particle-1 {
  animation: data-flow-forward 2.5s infinite linear;
}
.particle-2 {
  animation: data-flow-forward 2.5s infinite linear 0.8s;
}

@keyframes data-flow-forward {
  0% {
    transform: translate(-50%, -50%) rotate(-35deg) translateX(-180px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-35deg) translateX(180px);
    opacity: 0;
  }
}

.brand-orb {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* Brand Orbs - Final Positions */
.orb-apple {
  top: 20%;
  left: 30%;
}
.orb-android {
  bottom: 20%;
  right: 20%;
  color: #10b981;
}
.orb-harmony {
  top: 60%;
  left: 35%;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
}
.orb-hyperos {
  bottom: 45%;
  right: 30%;
  font-size: 0.75rem;
  font-weight: 800;
  color: #3b82f6;
}

/* Bi-directional Data Flow */
.particle-reverse {
  background: var(--hero-accent-primary);
  box-shadow: 0 0 12px var(--hero-accent-primary);
}

.particle-rev-1 {
  animation: data-flow-reverse 3s infinite linear;
}
.particle-rev-2 {
  animation: data-flow-reverse 3s infinite linear 1.5s;
}

@keyframes data-flow-reverse {
  0% {
    transform: translate(-50%, -50%) rotate(-35deg) translateX(180px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-35deg) translateX(-180px);
    opacity: 0;
  }
}
/* ==========================================================================
 * FINTECH PAGE SECTIONS (Consistent Design)
 * ==========================================================================
 */

/* Global Fintech Sections - Use BS5: position-relative py-5 */
.fintech-section {
  background-color: var(--hero-bg-darker);
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 50%
  );
  color: var(--text-primary-dark);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section Glows */
.section-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--hero-accent-glow) 0%,
    transparent 60%
  );
  opacity: 0.1;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.section-glow-1 {
  top: 10%;
  right: -10%;
}
.section-glow-2 {
  top: -20%;
  left: -15%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.3) 0%,
    transparent 60%
  );
}
.section-glow-3 {
  bottom: -10%;
  right: 10%;
}
.section-glow-4 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
}

/* Section Typography - Use BS5: display-5 fw-bold mb-3 text-white, fs-5 text-secondary mx-auto */
.section-title {
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fintech Feature Cards - Use BS5: glass-card h-100 p-4 position-relative */
.fintech-feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  min-height: 240px;
}

.fintech-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--hero-accent-primary),
    var(--hero-accent-secondary)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.fintech-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.2);
}

.fintech-feature-card:hover::before {
  transform: scaleX(1);
}

.fintech-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.feature-title {
  color: var(--text-primary-dark);
}

/* Affiliate Section - Use BS5: d-flex flex-column align-items-center gap-3 p-4 rounded-3 */
.affiliate-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  min-width: 120px;
}

.affiliate-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
}

/* Responsive - Mobile adjustments for spacing only */
@media (max-width: 991.98px) {
  .fintech-hero .hero-visual-wrapper {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .affiliate-icon {
    min-width: 100px;
  }
}

/* Homepage Layout - Use BS5: p-0 m-0 classes in HTML */
/* Hide breadcrumbs on homepage for seamless flow */
body.page-index .breadcrumb,
body.page-index nav[aria-label*="breadcrumb"] {
  display: none;
}

/* Ensure sections stack without gaps */
.fintech-hero + .index-products,
.fintech-hero + .index-features,
.index-features + .index-products,
.index-products + .index-features,
.index-features + .index-affiliate {
  margin-top: 0 !important;
}

/* Card Sizing - Use BS5: min-height classes in HTML for responsive */
