/* ============================================
   FUNDING PAGE — Merchant Cash Advance
   Visual-first, minimal text, animated flow diagram.
   ============================================ */

.funding-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 7rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(109, 232, 192, 0.08), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(31, 224, 168, 0.05), transparent 50%),
    linear-gradient(180deg, #030608 0%, #050a0d 50%, #020406 100%);
}

.funding-hero-name {
  color: var(--teal-bright, #6de8c0);
  font-weight: 700;
}

/* ---- Cosmos background (planet + stars) ---- */
.cosmos-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cosmos-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 65%),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,0.75), transparent 65%),
    radial-gradient(1.2px 1.2px at 48% 22%, rgba(255,255,255,0.9), transparent 65%),
    radial-gradient(1px 1px at 64% 74%, rgba(255,255,255,0.55), transparent 65%),
    radial-gradient(1.5px 1.5px at 82% 30%, rgba(255,255,255,0.85), transparent 65%),
    radial-gradient(1px 1px at 93% 60%, rgba(255,255,255,0.65), transparent 65%),
    radial-gradient(1px 1px at 8% 82%, rgba(255,255,255,0.7), transparent 65%),
    radial-gradient(1px 1px at 40% 88%, rgba(255,255,255,0.5), transparent 65%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,0.6), transparent 65%),
    radial-gradient(1.2px 1.2px at 18% 44%, rgba(255,255,255,0.8), transparent 65%),
    radial-gradient(1px 1px at 55% 48%, rgba(255,255,255,0.5), transparent 65%),
    radial-gradient(1px 1px at 88% 90%, rgba(255,255,255,0.55), transparent 65%);
  background-size: 100% 100%;
  opacity: 0.8;
  animation: starsTwinkle 7s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  from { opacity: 0.55; }
  to   { opacity: 0.95; }
}

.cosmos-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1280px, 150vmin);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  animation: planetFloat 24s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(31, 224, 168, 0.28));
}

@keyframes planetFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -52%) scale(1.015); }
}

/* ---- Hero content (over cosmos) ---- */
.funding-hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.funding-hero-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: rgba(15, 20, 26, 0.6);
  border: 1px solid rgba(109, 232, 192, 0.3);
  border-radius: 999px;
  color: var(--teal-bright, #6de8c0);
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.funding-headline {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.funding-hero-sub {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(236, 248, 240, 0.85);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* ---- Key points list (glassmorphic) ---- */
.funding-key-points {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.25rem;
  max-width: 560px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.funding-key-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  background: rgba(15, 20, 26, 0.55);
  border: 1px solid rgba(109, 232, 192, 0.15);
  border-radius: 12px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(236, 248, 240, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.funding-key-points li:hover {
  border-color: rgba(109, 232, 192, 0.4);
  transform: translateX(2px);
}

.funding-key-points li strong {
  color: var(--teal-bright, #6de8c0);
  font-weight: 700;
}

.key-point-check {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ---- Hero primary CTA ---- */
.funding-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
  padding: 1.15rem 2.2rem;
  background: linear-gradient(120deg, var(--teal-bright, #6de8c0), var(--teal, #1fe0a8));
  border: 0;
  border-radius: 999px;
  color: #001712;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 40px -8px rgba(31, 224, 168, 0.55),
    0 0 0 1px rgba(109, 232, 192, 0.2) inset;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.funding-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px -8px rgba(31, 224, 168, 0.7),
    0 0 0 1px rgba(109, 232, 192, 0.3) inset;
}

.funding-primary-cta svg {
  transition: transform 0.25s ease;
}

.funding-primary-cta:hover svg {
  transform: translateX(3px);
}

.funding-hero-trustline {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(216, 236, 255, 0.55);
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright, #6de8c0);
  box-shadow: 0 0 10px rgba(109, 232, 192, 0.8);
  animation: trustPulse 2s ease-in-out infinite;
}

@keyframes trustPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ============================================
   01 — FLOW DIAGRAM
   ============================================ */
.funding-flow-section {
  background: #000;
  position: relative;
}

.funding-flow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(31, 224, 168, 0.06), transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(31, 224, 168, 0.04), transparent 55%);
  pointer-events: none;
}

.flow-diagram {
  position: relative;
  max-width: 980px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 920px;
  margin: 0 auto;
}

/* Sale pulse above the terminal */
@keyframes salePing {
  0%   { r: 3;  opacity: 0;   }
  15%  {        opacity: 0.95; }
  100% { r: 26; opacity: 0;   }
}

.flow-sale-pulse {
  animation: salePing 2.4s cubic-bezier(0.25, 0.85, 0.4, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.flow-sale-pulse-delay {
  animation-delay: 1.2s;
}

/* Flowing particles along the lines (stroke-dashoffset animation) */
@keyframes flowShift {
  from { stroke-dashoffset: 0;   }
  to   { stroke-dashoffset: -130; }
}

.flow-particles {
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(109, 232, 192, 0.55));
}

.flow-particles-main {
  animation: flowShift 2.2s linear infinite;
}

.flow-particles-account {
  animation: flowShift 2.4s linear infinite;
  animation-delay: -0.9s;
}

.flow-particles-repay {
  animation: flowShift 3.2s linear infinite;
  animation-delay: -1.8s;
}

/* Pulse ring around the split node */
@keyframes splitPing {
  0%   { r: 7;  opacity: 0.9; }
  100% { r: 26; opacity: 0;   }
}

.flow-split-pulse {
  animation: splitPing 2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* Labels */
.flow-label {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: rgba(216, 236, 255, 0.55);
}

.flow-label-strong {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: #fff;
}

.flow-label-soft {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  fill: rgba(109, 232, 192, 0.85);
}

.flow-label-split {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: rgba(216, 236, 255, 0.35);
}

.flow-caption {
  margin-top: 2.5rem;
  text-align: center;
}

.flow-caption-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: rgba(31, 224, 168, 0.05);
  border: 1px solid rgba(31, 224, 168, 0.18);
  border-radius: 999px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  color: rgba(216, 236, 255, 0.82);
}

.flow-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright, #6de8c0);
  box-shadow: 0 0 10px rgba(109, 232, 192, 0.7);
}

/* ============================================
   02 — USE CASES GRID
   ============================================ */
.funding-uses {
  position: relative;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 var(--gutter, 1.5rem);
}

.use-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: linear-gradient(145deg, rgba(15, 20, 26, 0.85) 0%, rgba(7, 9, 12, 0.9) 100%);
  border: 1px solid rgba(216, 236, 255, 0.08);
  border-radius: 16px;
  transition:
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.use-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 224, 168, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.use-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 224, 168, 0.35);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 40px -10px rgba(31, 224, 168, 0.2);
}

.use-card:hover::before {
  opacity: 1;
}

.use-card-icon {
  margin-bottom: 1.25rem;
  display: inline-flex;
  padding: 0.6rem;
  background: rgba(31, 224, 168, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(31, 224, 168, 0.15);
}

.use-card h3 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
}

.use-card p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(216, 236, 255, 0.68);
  margin: 0;
}

/* ============================================
   04 — BENEFITS STRIP
   Quick stat chips emphasising the "free · soft · fast" promise
   ============================================ */
.funding-benefits-section {
  background: #030303;
  position: relative;
}

.benefits-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
  padding: 0 var(--gutter, 1.5rem);
}

.benefit-chip {
  text-align: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(145deg, rgba(15, 20, 26, 0.9) 0%, rgba(7, 9, 12, 1) 100%);
  border: 1px solid rgba(31, 224, 168, 0.22);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.benefit-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(31, 224, 168, 0.1), transparent 55%);
  pointer-events: none;
}

.benefit-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 224, 168, 0.45);
}

.benefit-chip-num {
  position: relative;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--teal-bright, #6de8c0);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.benefit-chip-label {
  position: relative;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216, 236, 255, 0.62);
}

/* ============================================
   BOTTOM CTA
   ============================================ */
.funding-cta .cta-headline {
  margin-bottom: 1rem;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 720px) {
  .funding-hero {
    min-height: 90vh;
  }

  .funding-primary-cta {
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
  }

  .funding-hero-trustline {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    padding: 0 1rem;
    text-align: center;
  }

  .flow-diagram {
    margin-top: 2rem;
  }

  .flow-label,
  .flow-label-strong,
  .flow-label-soft,
  .flow-label-split {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .uses-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .use-card {
    padding: 1.5rem 1.1rem;
  }

  .use-card h3 {
    font-size: 1.1rem;
  }

  .use-card p {
    font-size: 0.86rem;
  }

  .benefits-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .benefit-chip {
    padding: 1.5rem 0.75rem;
  }

  .benefit-chip-num {
    font-size: 1.6rem;
  }

  .benefit-chip-label {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 480px) {
  .uses-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced-motion fallback: freeze the flow at a stable state */
@media (prefers-reduced-motion: reduce) {
  .flow-sale-pulse,
  .flow-sale-pulse-delay,
  .flow-particles,
  .flow-split-pulse,
  .trust-dot {
    animation: none;
  }
  .flow-particles-main,
  .flow-particles-account,
  .flow-particles-repay {
    stroke-dasharray: 0;
    stroke-opacity: 0.7;
  }
}
