/* ============================================================
   UrPay — Homepage v2 — World-class
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--p-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Animated mesh background */
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.mesh-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); will-change: transform;
}
.mb1 {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(ellipse, rgba(107,107,255,0.45) 0%, transparent 65%);
  top: -20%; right: -15%;
  animation: blob 16s ease-in-out infinite;
}
.mb2 {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(ellipse, rgba(80,40,180,0.35) 0%, transparent 65%);
  bottom: -10%; left: -10%;
  animation: blob 20s ease-in-out infinite reverse;
  animation-delay: -6s;
}
.mb3 {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(ellipse, rgba(200,180,255,0.12) 0%, transparent 65%);
  top: 35%; left: 38%;
  animation: blob 14s ease-in-out infinite;
  animation-delay: -10s;
}
.mb4 {
  width: 30vw; height: 30vw; max-width: 400px; max-height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,160,0.08) 0%, transparent 65%);
  bottom: 20%; right: 25%;
  animation: blob 18s ease-in-out infinite reverse;
  animation-delay: -3s;
}

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

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 80px 28px 100px;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}

/* Left */
.hero-left {}

.hero-badge {
  margin-bottom: 32px;
  display: inline-flex;
  animation: pop-in 0.6s var(--ease) 0.2s both;
}

.hero-h1 {
  color: #fff;
  margin-bottom: 8px;
  animation: pop-in 0.7s var(--ease) 0.3s both;
}

.hero-h1-line2 {
  display: block;
  animation: pop-in 0.7s var(--ease) 0.45s both;
}

.hero-sub {
  font-size: 1.125rem; line-height: 1.72;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin-bottom: 44px;
  animation: pop-in 0.7s var(--ease) 0.55s both;
}

.hero-btns {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 60px;
  animation: pop-in 0.7s var(--ease) 0.65s both;
}

/* Stats bar */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 36px;
  animation: pop-in 0.7s var(--ease) 0.75s both;
}
.hstat {
  flex: 1; display: flex; flex-direction: column; gap: 5px;
  padding-right: 24px;
}
.hstat + .hstat {
  padding-left: 24px; padding-right: 24px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.hstat:last-child { padding-right: 0; }
.hstat-num {
  font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em;
}
.hstat-label { font-size: 0.775rem; color: rgba(255,255,255,0.38); font-weight: 500; }

/* Right — photo mosaic */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 40px 20px;
  animation: pop-in 0.8s var(--ease) 0.5s both;
}

/* Mosaic grid container */
.hero-mosaic {
  position: relative;
  width: 460px; height: 480px;
}

/* Main terminal photo — centre focal */
.mosaic-main {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: 220px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(107,107,255,0.35),
    0 32px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(107,107,255,0.25);
  object-fit: cover;
  aspect-ratio: 3/4;
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}

/* Top-left mosaic slot */
.mosaic-hosp {
  position: absolute;
  top: 0; left: 0;
  width: 195px; height: 235px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 2;
  transform: rotate(-2.5deg);
  animation: float 9s ease-in-out infinite;
  animation-delay: -3s;
}
/* Device group PNG variant — landscape render with transparent bg */
.mosaic-hosp-devices {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, rgba(107,107,255,0.12) 0%, rgba(10,7,26,0.8) 100%);
  padding: 16px 12px;
}

/* Retail photo — bottom right */
.mosaic-retail {
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 220px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 2;
  transform: rotate(2deg);
  animation: float 8s ease-in-out infinite;
  animation-delay: -6s;
}

/* Floating UI chips — sit above photos */
.fcard {
  position: absolute;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px;
  white-space: nowrap;
  z-index: 10;
}

.fcard-approved {
  bottom: 120px; left: -8px;
  animation: float 6s ease-in-out infinite;
  animation-delay: -1s;
}
.fcard-routing {
  top: 40px; right: -12px;
  animation: float 8s ease-in-out infinite;
  animation-delay: -3s;
}
.fcard-npp {
  bottom: 28px; right: 60px;
  animation: float 7s ease-in-out infinite;
  animation-delay: -5s;
}

.fcard-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fcard-icon-green { background: var(--green-dim); }
.fcard-icon-p     { background: rgba(107,107,255,0.1); }

.fcard-text { display: flex; flex-direction: column; gap: 2px; }
.fcard-main { font-size: 0.8125rem; font-weight: 700; color: var(--text); }
.fcard-sub  { font-size: 0.7rem; color: var(--text-3); }
.fcard-val  { font-size: 0.9rem; font-weight: 800; color: var(--green); margin-left: auto; }
.fcard-val-p { font-size: 0.9rem; font-weight: 800; color: var(--p); margin-left: auto; }

/* Orbit ring */
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(107,107,255,0.15);
  transform: translate(-50%, -50%);
  animation: spin-slow 40s linear infinite;
  pointer-events: none;
}

/* Bottom gradient fade */
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px; z-index: 3;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   SCHEME STRIP
══════════════════════════════════════════════════════════ */
.schemes { background: var(--white); overflow: hidden; padding: 40px 0; }
.schemes-label {
  text-align: center; margin-bottom: 28px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.strip-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.strip-track {
  display: flex; gap: 14px; width: max-content;
  animation: slide-x 28s linear infinite;
}
.strip-track:hover { animation-play-state: paused; }
.scheme-chip {
  height: 40px; padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.09);
  background: var(--white);
  display: inline-flex; align-items: center;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--text); white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.scheme-chip:hover {
  border-color: rgba(107,107,255,0.4);
  box-shadow: 0 4px 16px rgba(107,107,255,0.1);
}
.scheme-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.scheme-logo-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.scheme-logo-chip svg { display: block; }

/* ══════════════════════════════════════════════════════════
   PLATFORM SECTION
══════════════════════════════════════════════════════════ */
.platform { background: var(--cream); }

.platform-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.pcard {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 44px;
  border: 1px solid rgba(107,107,255,0.1);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s;
  position: relative; overflow: hidden;
}
.pcard::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(107,107,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.pcard:hover {
  box-shadow: 0 16px 56px rgba(107,107,255,0.14);
  transform: translateY(-5px);
  border-color: rgba(107,107,255,0.25);
}
.pcard-tag {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--p); margin-bottom: 10px;
}
.pcard h3 {
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.pcard p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }

.pcard-dark {
  background: linear-gradient(145deg, var(--p-rich) 0%, var(--p-mid) 100%);
  border-color: rgba(107,107,255,0.3);
}
.pcard-dark::before {
  background: linear-gradient(135deg, rgba(107,107,255,0.2) 0%, transparent 60%);
}
.pcard-dark h3 { color: #fff; }
.pcard-dark p  { color: rgba(255,255,255,0.6); }
.pcard-dark .pcard-tag { color: rgba(150,150,255,0.8); }

.feat-list {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 28px;
}
.feat-list li {
  font-size: 0.875rem; color: var(--text-2);
  padding-left: 22px; position: relative;
}
.feat-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--p);
}
.feat-list-light li { color: rgba(255,255,255,0.6); }
.feat-list-light li::before { background: rgba(140,140,255,0.7); }

.flink-light { color: rgba(130,130,255,0.9); }

/* ══════════════════════════════════════════════════════════
   WHY URPAY
══════════════════════════════════════════════════════════ */
.why { background: var(--white); }

.why-rows { display: flex; flex-direction: column; gap: 100px; }

.why-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.why-row-flip { direction: rtl; }
.why-row-flip > * { direction: ltr; }

.why-visual {
  border-radius: var(--r-lg);
  overflow: hidden; position: relative;
}

/* Acquirer diagram */
.acq-diagram {
  background: linear-gradient(145deg, var(--p-rich) 0%, var(--p-mid) 100%);
  border: 1px solid rgba(107,107,255,0.3);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  min-height: 380px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.acq-nodes {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.acq-node {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(107,107,255,0.25);
  border-radius: 10px; padding: 10px 18px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.8);
}
.acq-node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p); flex-shrink: 0; }
.acq-arrow {
  font-size: 1.75rem; color: rgba(107,107,255,0.5); line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.acq-arrow span { font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(107,107,255,0.5); font-weight: 600; text-transform: uppercase; }
.acq-center {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(107,107,255,0.5);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 0 40px rgba(107,107,255,0.2);
}
.acq-result { margin-top: 8px; }

/* Uptime diagram */
.uptime-diagram {
  background: var(--lav);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.uptime-row { display: flex; flex-direction: column; gap: 8px; }
.uptime-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
}
.uptime-status { font-size: 0.7rem; color: var(--green); font-weight: 600; }
.uptime-status-dim { font-size: 0.7rem; color: rgba(107,107,255,0.6); font-weight: 600; }
.uptime-bar {
  height: 10px; background: rgba(107,107,255,0.1);
  border-radius: 5px; overflow: hidden;
}
.uptime-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--p) 0%, #9B6BFF 100%);
}
.uptime-fill-green {
  background: linear-gradient(90deg, var(--green) 0%, #00B882 100%);
}
.uptime-fill-dim {
  background: rgba(107,107,255,0.3);
}
.uptime-note {
  margin-top: 12px; text-align: center;
}

/* Photo card */
.why-photo {
  border-radius: var(--r-lg); overflow: hidden;
  height: 400px;
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }

.why-content {}
.why-content h3 { margin: 14px 0 20px; }
.why-content p  { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }
.why-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ══════════════════════════════════════════════════════════
   INDUSTRIES
══════════════════════════════════════════════════════════ */
.industries { background: var(--cream); }

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

.ind-card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(107,107,255,0.1);
  transition: box-shadow 0.35s var(--ease), transform 0.35s;
  cursor: pointer;
}
.ind-card:hover {
  box-shadow: 0 16px 56px rgba(107,107,255,0.14);
  transform: translateY(-6px);
}

.ind-img {
  position: relative; height: 256px; overflow: hidden;
}
.ind-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ind-card:hover .ind-img img { transform: scale(1.06); }

.ind-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,7,26,0.8) 0%, rgba(10,7,26,0.1) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 22px;
}
.ind-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(107,107,255,0.55);
  backdrop-filter: blur(10px);
  padding: 5px 14px; border-radius: 100px;
}

.ind-body { padding: 30px; }
.ind-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.ind-body p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   INTEGRATIONS
══════════════════════════════════════════════════════════ */
.integrations { background: var(--white); }

.int-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 88px; align-items: center;
}

.int-content h2 { margin: 16px 0 20px; }
.int-content p  { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }
.int-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.int-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.int-tile {
  background: var(--cream);
  border: 1px solid rgba(107,107,255,0.1);
  border-radius: var(--r);
  padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.int-tile:hover {
  border-color: rgba(107,107,255,0.35);
  box-shadow: 0 6px 24px rgba(107,107,255,0.1);
  transform: translateY(-3px);
}
.int-tile-span { grid-column: span 3; flex-direction: row; text-align: left; background: var(--lav); }
.int-tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(107,107,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.int-tile-icon svg { width: 22px; height: 22px; color: var(--p); }
.int-tile-label { font-size: 0.8125rem; font-weight: 700; color: var(--text); }
.int-tile-sub   { font-size: 0.7rem; color: var(--p); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   PROOF / STATS
══════════════════════════════════════════════════════════ */
.proof {
  background: var(--p-deep);
  position: relative; overflow: hidden;
}
.proof::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(107,107,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(80,40,180,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.proof-inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }

.proof-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 48px; margin: 56px 0;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pstat { display: flex; flex-direction: column; gap: 8px; }
.pstat-num {
  font-size: 3.2rem; font-weight: 800;
  color: #fff; letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.pstat-num sup { font-size: 1.6rem; color: var(--p); font-weight: 800; }
.pstat-label { font-size: 0.825rem; color: rgba(255,255,255,0.38); font-weight: 500; }

.proof-quote { text-align: center; padding-top: 8px; }
.proof-quote blockquote {
  font-size: 1.125rem; color: rgba(255,255,255,0.7); line-height: 1.75;
  font-style: italic; max-width: 640px; margin: 0 auto 18px;
  font-family: var(--font-display); font-weight: 600;
}
.proof-quote cite { font-size: 0.825rem; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════ */
.cta-sec { background: var(--lav); }

.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.cta-content h2 { margin: 16px 0 20px; }
.cta-content p  { font-size: 1rem; color: var(--text-2); line-height: 1.7; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.cta-img {
  border-radius: var(--r-lg); width: 100%; height: 420px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgba(10,7,26,0.2);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .platform-bento { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; gap: 40px; }
  .why-row-flip { direction: ltr; }
  .ind-grid { grid-template-columns: repeat(2,1fr); }
  .int-inner { grid-template-columns: 1fr; gap: 48px; }
  .proof-stats { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-img { height: 300px; }
}
@media (max-width: 768px) {
  .hero-inner { padding: 40px 0 80px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 0; }
  .hstat { padding: 0 16px; }
  .ind-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2,1fr); }
  .int-tile-span { grid-column: span 2; }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .pstat-num { font-size: 2.4rem; }
  .cta-btns { flex-direction: column; }
}
