/* One shared coordinate space keeps the phone, copy and payment scene together. */
.northpay-public > #top { background: #050820; }
.public-hero + .payment-marquee { padding-bottom: 5px; background: transparent; }
.public-hero + .payment-marquee > .payment-marquee-row:last-child { padding-bottom: 1px; }
.payment-marquee + .platform-section { padding-top: 52px; scroll-margin-top: 112px; }
.public-hero {
  --hero-strip-height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding: 112px 32px calc(24px + var(--hero-strip-height));
  gap: 0;
  background:
    radial-gradient(ellipse at 83% 36%, #08135c 0, transparent 43%),
    radial-gradient(ellipse at 71% 94%, #241493 0, transparent 48%),
    linear-gradient(125deg, #020518, #020626 54%, #080331);
}
.public-hero .hero-bottom-marquee { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; width: 100%; padding: 0; }
.public-hero::before { display: none; }
.public-hero::after { opacity: .14; }
.public-hero .hero-ambient { background: none; }
.public-hero .vip-network-map { opacity: .24; }
.public-hero .vip-network-junctions { opacity: .4; }
.public-hero .hero-spark { width: 3px; height: 3px; opacity: .35; }
.public-hero .hero-aurora-one { opacity: .45; }
.public-hero .hero-data-line { opacity: .2; }
.hero-ambient::before, .hero-ambient::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 83%;
  left: -12%;
  top: -4%;
  border: 2px solid transparent;
  border-bottom-color: #8c26ff;
  border-right-color: #3335e6;
  border-radius: 50%;
  transform: rotate(-21deg);
  box-shadow: 0 8px 9px -8px #ba61ff, 0 22px 42px -20px #a200ff;
  animation: hero-ribbon 12s ease-in-out infinite alternate;
}
.hero-ambient::after {
  top: 32%;
  left: -9%;
  height: 63%;
  transform: rotate(-15deg);
  border-bottom-color: #087bff;
  border-right-color: #00bfff;
  box-shadow: 0 8px 9px -8px #54ddff, 0 22px 42px -20px #005dff;
  animation-delay: -6s;
}
.hero-composition {
  position: relative;
  container-type: inline-size;
  width: min(1360px, 100%);
  aspect-ratio: 1.78;
  flex: none;
  isolation: isolate;
}
.hero-composition .public-hero-copy {
  position: absolute;
  z-index: 12;
  top: 4%;
  left: 0;
  width: 53%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-composition .public-hero-copy h1 {
  margin: 0 0 1.7cqw;
  font-size: 5.05cqw;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.052em;
}
.hero-composition .hero-title-line { width: max-content; line-height: 1.04; }
.hero-composition .hero-title-word,
.hero-composition .hero-title-line:nth-child(2) .hero-title-word { display: inline-block; width: auto; }
.hero-composition h1 .hero-word-gradient {
  background-image: linear-gradient(100deg, #00dfff 0%, #009bff 45%, #6935f3 77%, #b82bf3 100%);
  background-size: 100% 100%;
}
.hero-composition .public-hero-copy > p {
  max-width: 100%;
  color: #d6dbf0;
  font-size: 1.86cqw;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -.025em;
}
.hero-composition .hero-capability-grid {
  width: 79%;
  margin: 1.8cqw 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1cqw;
}
.hero-composition .hero-capability {
  min-height: 6.7cqw;
  padding: 1cqw 1.4cqw;
  gap: 1.2cqw;
  border-radius: 1.4cqw;
  border: 1px solid var(--cap-edge);
  box-shadow: inset 0 0 0 1px #ffffff28, inset 0 1px 6px #ffffff65, 0 0 19px var(--cap-glow);
  background: var(--cap-fill);
}
.hero-composition .hero-capability::before {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff13, transparent 40%);
  box-shadow: none;
}
.hero-composition .hero-capability::after { display: none; }
.hero-composition .hero-capability i {
  flex: 0 0 4.5cqw;
  width: 4.5cqw;
  height: 4.5cqw;
  background: linear-gradient(145deg, #fff, #d5efff);
  box-shadow: 0 5px 18px #041b6630, inset 0 1px 0 #fff;
}
.hero-composition .hero-capability i svg { width: 2.7cqw; height: 2.7cqw; }
.hero-composition .hero-capability strong { font-size: 1.64cqw; letter-spacing: -.035em; }
.hero-composition .capability-collections { --cap-fill: linear-gradient(110deg, #00b6ea, #0056d8 66%, #0034af); --cap-edge: #56eaff; --cap-glow: #00bfff48; }
.hero-composition .capability-payouts { --cap-fill: linear-gradient(110deg, #ab3bf4, #5900d1 62%, #4900ac); --cap-edge: #cb7bff; --cap-glow: #981cff48; }
.hero-composition .capability-reconciliation { --cap-fill: linear-gradient(110deg, #00d0b0, #009b79 56%, #006e65); --cap-edge: #69ffe0; --cap-glow: #00e4c238; }
.hero-composition .capability-apis { --cap-fill: linear-gradient(110deg, #ffae2c, #f2541b 55%, #d62d27); --cap-edge: #ffd578; --cap-glow: #ff701a3c; }
.hero-composition .hero-payment-demo {
  position: absolute;
  z-index: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: block;
  pointer-events: none;
  isolation: auto;
  animation: none;
  opacity: 1;
  transform: none;
}
.hero-composition .hero-payment-demo::before,
.hero-composition .hero-payment-demo::after,
.hero-composition .product-glow,
.hero-composition .upi-orbit,
.hero-composition .hero-payment-network { display: none; }
.hero-composition .hero-hologram {
  z-index: 7;
  width: 62%;
  height: auto;
  right: -1%;
  bottom: 0;
  transform: none;
  filter: none;
}
.payment-scene { display: block; width: 100%; height: auto; overflow: visible; }
.scene-packets { animation: scene-packets 3s linear infinite; }
.scene-orb { animation: scene-orb 5s ease-in-out infinite; }
.scene-rings { animation: scene-rings 4s ease-in-out infinite; }
.scene-node { animation: scene-node 5s ease-in-out infinite; }
.scene-wallet { animation-delay: -.8s; }
.scene-chart { animation-delay: -1.6s; }
.scene-api { animation-delay: -2.4s; }
.hero-composition .upi-phone-stage {
  z-index: 8;
  top: 2%;
  right: 4.8%;
  width: 16.3%;
  height: auto;
  aspect-ratio: 320 / 600;
  pointer-events: auto;
  transform: perspective(1200px) rotateY(-13deg) skewX(-12deg) rotateZ(-5deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(12px 28px 24px #00031b88);
  animation: hero-phone-in 1s .15s ease both;
}
.hero-composition .upi-phone-stage::before {
  content: "";
  position: absolute;
  inset: -2px -9px -3px 4px;
  border: 1px solid #7eacf3;
  border-radius: 2.9cqw;
  background: linear-gradient(180deg, #e8edfa 0%, #7aaff6 3%, #0d2b68 7%, #9dd4ff 12%, #236bf0 16%, #051c50 31%, #164aab 72%, #792ce1 95%, #aec9ff);
  box-shadow: inset -2px 0 2px #d6eaff, 3px 0 8px #318bff63;
}
.hero-composition .upi-phone-stage::after {
  content: "";
  position: absolute;
  top: 25%;
  right: -9px;
  width: 3px;
  height: 13%;
  border: 1px solid #70a6ed;
  border-radius: 3px;
  background: #16316c;
}
.hero-composition .upi-phone-stage .upi-phone {
  container-type: inline-size;
  width: 100%;
  height: 100%;
  aspect-ratio: 320 / 600;
  border: .48cqw solid #050814;
  border-radius: 2.7cqw;
  background: #fff;
  box-shadow: 0 0 0 1px #d1e5ff, 0 0 0 3px #090d1d, inset 0 0 0 1px #cbd9ea;
}
.hero-composition .upi-phone::before {
  width: 29cqw;
  height: 7cqw;
  top: 3cqw;
  background: #030610;
  box-shadow: inset 0 1px 1px #526075;
}
.hero-composition .upi-phone::after {
  content: "";
  position: absolute;
  z-index: 30;
  bottom: 3.5cqw;
  left: 34%;
  width: 32%;
  height: 1.2cqw;
  border-radius: 99px;
  background: #9ca9bf;
}
.hero-composition .upi-phone-bar { height: 14cqw; padding: 3cqw 6cqw 0; font-size: 3.6cqw; color: #060e27; }
.hero-composition .upi-phone-bar i { background: none; }
.hero-composition .upi-phone-bar b { width: 17cqw; line-height: 1; }
.upi-phone-bar b svg { width: 100%; height: auto; fill: currentColor; }
.hero-composition .upi-screen { top: 14cqw; padding: 7cqw; }
.hero-composition .upi-processing-screen {
  justify-content: flex-start;
  background: radial-gradient(ellipse at 45% 46%, #e7f0ff, transparent 53%), linear-gradient(160deg, #fff, #f6f9ff);
}
.hero-composition .upi-state-brand { align-self: flex-start; display: flex; align-items: center; gap: 3cqw; margin: 1cqw 0 0; }
.hero-composition .upi-state-brand img { width: 12cqw; height: 12cqw; border: 1px solid #288dff; border-radius: 50%; }
.hero-composition .upi-state-brand small { color: #101b59; font-size: 6cqw; font-weight: 850; letter-spacing: -.04em; }
.hero-composition .upi-loader { flex: none; width: 47cqw; height: 47cqw; margin: 16cqw 0 0; box-shadow: 0 8cqw 12cqw #286ae64a, inset 0 1cqw 3cqw #fff; background: linear-gradient(160deg, #fff, #eff5ff); }
.hero-composition .upi-loader > span { inset: -5.5cqw; border-width: 1.5cqw; border-color: transparent; border-top-color: #05ceff; border-right-color: #8430ee; animation-duration: 2.4s; }
.hero-composition .upi-selected-app-logo { width: 32cqw; height: 32cqw; border-radius: 9cqw; box-shadow: 0 3cqw 7cqw #244e9e30; }
.hero-composition .upi-processing-screen h3 { margin: 10cqw 0 3cqw; font-size: 7.5cqw; line-height: 1.1; letter-spacing: -.055em; color: #111b51; }
.hero-composition .upi-processing-screen > p { max-width: 80cqw; font-size: 4.1cqw; line-height: 1.5; color: #5a6892; }
.hero-composition .upi-processing-steps { margin-top: 6cqw; padding: 4cqw; border: 1px solid #ebf1fc; border-radius: 6cqw; gap: 5cqw; box-shadow: 0 4cqw 7cqw #5884e613; }
.hero-composition .upi-processing-steps span { gap: 4cqw; font-size: 4.3cqw; color: #172758; }
.hero-composition .upi-processing-steps i { width: 9cqw; height: 9cqw; border-radius: 50%; flex: none; font-size: 5cqw; background: #adf5d9; }
.hero-composition .upi-processing-steps .active i { border-width: .6cqw; background: transparent; }
.upi-try-demo { margin-top: auto; padding: 4cqw 0 2cqw; border: 0; background: none; color: #6577a0; font: inherit; font-size: 3.5cqw; cursor: pointer; }
.upi-try-demo:hover { color: #224ae5; }
.upi-try-demo:focus-visible { outline: 2px solid #087ff6; outline-offset: 3px; }

/* Scale every demo state with the device, including its interactive controls. */
.hero-composition .upi-brand-row { grid-template-columns: 14cqw 1fr 10cqw; gap: 3cqw; }
.hero-composition .upi-brand-mark { width: 14cqw; height: 14cqw; border-radius: 4cqw; }
.hero-composition .upi-brand-row small { margin-bottom: 1cqw; font-size: 2.3cqw; }
.hero-composition .upi-brand-row strong { font-size: 3.8cqw; }
.hero-composition .upi-lock { width: 9cqw; height: 9cqw; border-radius: 3cqw; font-size: 4cqw; }
.hero-composition .upi-merchant-card { margin-top: 7cqw; padding: 4.5cqw; border-radius: 4.5cqw; }
.hero-composition .upi-merchant-card span { font-size: 2.3cqw; }
.hero-composition .upi-merchant-card strong { margin: 2cqw 0 1cqw; font-size: 4cqw; }
.hero-composition .upi-merchant-card small { font-size: 2.7cqw; }
.hero-composition .upi-amount { padding: 8cqw 0 6cqw; }
.hero-composition .upi-amount > small { font-size: 2.4cqw; }
.hero-composition .upi-amount strong { margin: 3cqw 0; font-size: 14cqw; }
.hero-composition .upi-amount strong sup { font-size: 7cqw; vertical-align: 3cqw; }
.hero-composition .upi-amount strong span { font-size: 7cqw; }
.hero-composition .upi-amount p { font-size: 2.7cqw; }
.hero-composition .upi-method { padding: 4cqw; border-radius: 4.5cqw; grid-template-columns: 12cqw 1fr auto; gap: 3cqw; }
.hero-composition .upi-method-icon { width: 12cqw; height: 12cqw; border-radius: 3.5cqw; font-size: 5cqw; }
.hero-composition .upi-method small { font-size: 2.4cqw; margin-bottom: 1cqw; }
.hero-composition .upi-method strong { font-size: 3.5cqw; }
.hero-composition .upi-method > b { font-size: 7cqw; }
.hero-composition .upi-pay-button, .hero-composition .upi-reset-button { min-height: 14cqw; border-radius: 4.5cqw; font-size: 4cqw; gap: 4cqw; }
.hero-composition .upi-pay-button { margin-top: 5cqw; }
.hero-composition .upi-trust-note { font-size: 2.4cqw; }
.hero-composition .upi-sheet-backdrop { inset: 14cqw 0 0; }
.hero-composition .upi-app-sheet { padding: 3cqw 6cqw 8cqw; border-radius: 8cqw 8cqw 0 0; }
.hero-composition .upi-sheet-handle { width: 14cqw; height: 1.4cqw; margin-bottom: 5cqw; }
.hero-composition .upi-sheet-title small { font-size: 2.6cqw; }
.hero-composition .upi-sheet-title h3 { font-size: 5.5cqw; margin-top: 2cqw; }
.hero-composition .upi-sheet-title button { width: 10cqw; height: 10cqw; border-radius: 3cqw; font-size: 7cqw; }
.hero-composition .upi-app-grid { margin-top: 5cqw; gap: 3cqw; }
.hero-composition .upi-app { min-height: 29cqw; padding: 3.5cqw; border-radius: 4cqw; }
.hero-composition .upi-app > span { width: 12cqw; height: 12cqw; margin-bottom: 3cqw; }
.hero-composition .upi-app > span img { border-radius: 3cqw; }
.hero-composition .upi-app strong { font-size: 3.2cqw; }
.hero-composition .upi-app small { margin-top: 1cqw; font-size: 2.3cqw; }
.hero-composition .upi-app-sheet > p { margin: 4cqw 0 0; font-size: 2.4cqw; }
.hero-composition .upi-success-rings { width: 29cqw; height: 29cqw; margin: 8cqw 0 9cqw; box-shadow: 0 0 0 4cqw #14be7e0d, 0 0 0 8cqw #14be7e06; }
.hero-composition .upi-success-rings span { width: 22cqw; height: 22cqw; font-size: 10cqw; }
.hero-composition .upi-success-screen > small { font-size: 2.7cqw; }
.hero-composition .upi-success-screen h3 { margin: 3cqw 0 2cqw; font-size: 11cqw; }
.hero-composition .upi-success-screen > p { font-size: 3cqw; }
.hero-composition .upi-receipt { margin: 8cqw 0 6cqw; padding: 2cqw 5cqw; border-radius: 4cqw; }
.hero-composition .upi-receipt > div { padding: 3cqw 0; gap: 3cqw; font-size: 2.8cqw; }

@keyframes hero-ribbon { to { translate: 0 35px; } }
@keyframes hero-phone-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes scene-packets { to { stroke-dashoffset: -478; } }
@keyframes scene-orb { 50% { translate: 0 -8px; } }
@keyframes scene-node { 50% { translate: 0 -4px; } }
@keyframes scene-rings { 50% { opacity: .65; } }

/* Square and tablet views use the reference's full poster composition. */
@media (min-width: 701px) and (max-width: 1100px) {
  .public-hero { padding: 100px 26px calc(20px + var(--hero-strip-height)); min-height: 100svh; }
  .hero-composition { width: 100%; min-width: 0; aspect-ratio: 1.1; }
  .hero-composition .public-hero-copy { top: 0; width: 62%; }
  .hero-composition .public-hero-copy h1 { font-size: 5.8cqw; margin-bottom: 1.2cqw; }
  .hero-composition .public-hero-copy > p { font-size: 2.45cqw; }
  .hero-composition .hero-capability-grid { width: 87%; margin-top: 1.3cqw; gap: 1.3cqw; }
  .hero-composition .hero-capability { min-height: 8.2cqw; padding: 1.2cqw; gap: 1.2cqw; border-radius: 1.8cqw; }
  .hero-composition .hero-capability i { width: 5.8cqw; height: 5.8cqw; flex-basis: 5.8cqw; }
  .hero-composition .hero-capability i svg { width: 3.7cqw; height: 3.7cqw; }
  .hero-composition .hero-capability strong { font-size: 2cqw; }
  .hero-composition .upi-phone-stage { width: 28%; top: 0; right: 3%; }
  .hero-composition .upi-phone-stage .upi-phone { border-width: .65cqw; border-radius: 4.2cqw; }
  .hero-composition .upi-phone-stage::before { border-radius: 4.4cqw; }
  .hero-composition .hero-hologram { width: 96%; bottom: -3%; right: 0; }
}

/* Short/landscape viewports scroll normally instead of shrinking the whole site. */
@media (max-width: 700px) {
  .public-hero { padding: 104px 20px calc(24px + var(--hero-strip-height)); min-height: 0; }
  .hero-composition { width: 100%; max-width: 540px; aspect-ratio: auto; }
  .hero-composition .public-hero-copy { position: relative; top: auto; width: 100%; padding: 0; }
  .hero-composition .public-hero-copy h1 { font-size: clamp(34px,10cqw,52px); margin-bottom: 20px; }
  .hero-composition .hero-title-line:nth-child(2) .hero-title-word { display: block; }
  .hero-composition .public-hero-copy > p { font-size: clamp(16px,4.65cqw,20px); line-height: 1.5; }
  .hero-copy-break { display: none; }
  .hero-composition .hero-capability-grid { width: 100%; gap: 12px; margin-top: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-composition .hero-capability { min-width: 0; min-height: 72px; padding: 10px; gap: 8px; border-radius: 14px; }
  .hero-composition .hero-capability i { width: clamp(30px,10cqw,44px); height: clamp(30px,10cqw,44px); flex-basis: clamp(30px,10cqw,44px); }
  .hero-composition .hero-capability i svg { width: 25px; height: 25px; }
  .hero-composition .hero-capability strong { font-size: clamp(12px,3.4cqw,16px); }
  .hero-composition .hero-payment-demo { position: relative; inset: auto; height: clamp(610px,200cqw,800px); margin-top: 38px; }
  .hero-composition .upi-phone-stage { width: min(300px,90%); top: 10px; right: 50%; transform: translateX(50%) perspective(1200px) rotateY(-8deg) rotateZ(4deg); }
  .hero-composition .upi-phone-stage .upi-phone { border-width: 6px; border-radius: 38px; }
  .hero-composition .upi-phone-stage::before { border-radius: 40px; right: -6px; }
  .hero-composition .upi-phone-stage::after { right: -6px; }
  .hero-composition .hero-hologram { width: 100%; right: 0; bottom: 0; }
  .hero-composition .upi-pay-button, .hero-composition .upi-reset-button, .hero-composition .upi-try-demo { min-height: 44px; font-size: 12px; }
  .hero-composition .upi-sheet-title button { width: 44px; height: 44px; flex: none; }
  .hero-composition .upi-app strong { font-size: 12px; }
}
@media (max-width: 359px) {
  .public-hero { padding-right: 16px; padding-left: 16px; }
  .hero-composition .hero-capability { flex-direction: column; justify-content: center; min-height: 88px; }
}

@media (max-width: 760px) {
  .public-hero { --hero-strip-height: 66px; }
  .public-hero + .payment-marquee { padding-bottom: 4px; }
  .public-hero + .payment-marquee > .payment-marquee-row:last-child { padding-bottom: .8px; }
  .payment-marquee + .platform-section { padding-top: 36px; scroll-margin-top: 88px; }
}
@media (max-width: 470px) {
  .public-hero { --hero-strip-height: 63px; }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero *, .public-hero *::before, .public-hero *::after { animation: none !important; }
  .hero-composition .upi-phone-stage { opacity: 1; }
}
