
:root {
  --navy: #07162e;
  --navy-2: #0c2850;
  --blue: #286df4;
  --sky: #73b6ff;
  --white: #ffffff;
  --muted: #a8bdd8;
  --ink: #14233b;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--navy);
  color: white;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1190px, calc(100% - 48px));
  margin: auto;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% 30%, #173b73 0%, transparent 52%),
    linear-gradient(125deg, #071427, #0a2044 70%, #0b2b5e);
}

/* HEADER */

.header {
  z-index: 10;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 27px;
  background: linear-gradient(145deg, #65b7ff, #1c5ce6);
  box-shadow: 0 10px 30px #1261ea55;
}

.logo-blue {
  margin-left: 5px;
  color: #70b5ff;
}

.nav-button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 13px 22px;
  color: white;
  background: rgba(255,255,255,.1);
  font-weight: 700;
  font-size: 13px;
  transition: .25s;
}

.nav-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.nav-button span {
  margin-left: 12px;
}

/* HERO */

.hero {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.background-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 85px 85px;
  mask-image: linear-gradient(to right, transparent, black);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.glow-one {
  width: 430px;
  height: 430px;
  right: -160px;
  top: 5%;
  background: rgba(37,99,235,.25);
}

.glow-two {
  width: 250px;
  height: 250px;
  bottom: -130px;
  left: 15%;
  background: rgba(12,115,245,.14);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 45px;
  padding-top: 90px;
  padding-bottom: 115px;
}

.hero-left {
  max-width: 670px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(124,179,255,.24);
  border-radius: 40px;
  padding: 11px 17px;
  background: rgba(255,255,255,.04);
  color: #94c5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.9px;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47e3a3;
  box-shadow: 0 0 0 5px rgba(71,227,163,.11);
}

.hero h1 {
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 1.13;
  letter-spacing: -4px;
  font-weight: 800;
  margin: 30px 0 24px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #ffffff, #83c6ff 65%, #4584ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.95;
  color: #acc2df;
}

.hero-buttons {
  margin-top: 35px;
}

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 60px;
  border: none;
  border-radius: 13px;
  padding: 0 28px;
  background: linear-gradient(120deg, #3986ff, #1954dd);
  box-shadow: 0 15px 40px rgba(35,105,255,.29);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: .25s;
}

.main-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(35,105,255,.4);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 36px;
  font-size: 12px;
  color: #adc6e7;
}

.point-check {
  color: #4ee3a3;
  margin-right: 5px;
}

/* PREMIUM FINTECH VISUAL */

.hero-right {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1100px;
}

.orbital {
  position: absolute;
  border: 1px solid rgba(147,197,253,.13);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

.orbital-1 {
  width: 445px;
  height: 445px;
}

.orbital-2 {
  width: 315px;
  height: 315px;
}

.light-beam {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #2774e7;
  filter: blur(90px);
  opacity: .28;
}

.premium-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 375px;
  height: 238px;
  border-radius: 24px;
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.32);
}

.card-back {
  background: linear-gradient(145deg, #436da9, #103365);
  transform: translate(-42%,-65%) rotate(14deg);
  opacity: .65;
}

.card-back-symbol {
  color: rgba(255,255,255,.13);
  font-size: 180px;
  font-weight: 800;
  text-align: right;
}

.card-main {
  background:
    radial-gradient(circle at 86% 80%, rgba(155,218,255,.35), transparent 45%),
    linear-gradient(120deg, #2a78ee, #1645a2 65%, #102d73);
  border: 1px solid rgba(255,255,255,.32);
  transform: translate(-56%,-41%) rotate(-9deg);
  animation: cardFloat 6s ease-in-out infinite;
}

.card-main::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -170px;
  right: -150px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
}

.premium-card-top,
.premium-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.card-brand b {
  color: #b7dcff;
}

.card-shine {
  font-size: 30px;
  color: #acd7ff;
}

.currency-symbol {
  font-size: 95px;
  font-weight: 800;
  line-height: 1.55;
  opacity: .9;
}

.premium-card-bottom {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.floating-box {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  color: #183252;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.floating-box strong,
.floating-box small {
  display: block;
}

.floating-box strong {
  font-size: 12px;
}

.floating-box small {
  color: #7b8da5;
  font-size: 10px;
  margin-top: 4px;
}

.floating-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-weight: 800;
}

.floating-icon.green {
  background: #ddf9e9;
  color: #16a34a;
}

.floating-icon.blue {
  background: #e6efff;
  color: #2563eb;
}

.float-a {
  top: 40px;
  right: -12px;
}

.float-b {
  bottom: 26px;
  left: -18px;
}

@keyframes cardFloat {
  0%,100% {
    transform: translate(-56%,-41%) rotate(-9deg);
  }
  50% {
    transform: translate(-56%,-47%) rotate(-7deg);
  }
}

/* FOOTER */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand strong span {
  color: #78b9ff;
}

.footer-brand small,
.footer-legal {
  color: #92a9c9;
  font-size: 10px;
  line-height: 1.7;
}

.footer-legal {
  max-width: 540px;
  display: grid;
  gap: 3px;
  text-align: right;
}

/* MODAL */

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3,11,27,.78);
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn .25s ease;
}

.modal {
  position: relative;
  width: min(100%, 455px);
  max-height: 90dvh;
  overflow-y: auto;
  background: white;
  color: var(--ink);
  padding: 38px;
  border-radius: 25px;
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
}

.modal-close {
  position: absolute;
  top: 19px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #f1f5fa;
  color: #64748b;
  font-size: 25px;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #194180;
}

.modal-brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 25px;
}

.modal h2 {
  margin: 28px 0 8px;
  font-size: 27px;
  letter-spacing: -1.3px;
  line-height: 1.3;
}

.modal-description {
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.8;
  color: #7c8ba0;
}

.form-group {
  margin-bottom: 21px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
}

.phone-field,
.password-field {
  display: flex;
  align-items: center;
  background: #f7faff;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  overflow: hidden;
  transition: .2s;
}

.phone-field:focus-within,
.password-field:focus-within {
  border-color: #4d91ff;
  box-shadow: 0 0 0 4px rgba(77,145,255,.1);
}

.country-code {
  padding-left: 16px;
  color: #425b7d;
  font-size: 13px;
  font-weight: 800;
}

.phone-field input,
.password-field input {
  flex: 1;
  min-width: 0;
  height: 53px;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #122947;
  font-size: 14px;
}

.password-field button {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 800;
}

.field-help {
  display: block;
  color: #8999ae;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 8px;
}

.form-disclosure {
  font-size: 10px;
  color: #71829a;
  line-height: 1.8;
  margin: 8px 0 15px;
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  line-height: 1.6;
  min-height: 17px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, #3884ff, #1550db);
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 13px 30px rgba(37,99,235,.2);
  transition: .25s;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: .6;
  cursor: wait;
}

.modal-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 10px;
  color: #a5b2c4;
}

.state-view {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.state-view p {
  max-width: 300px;
  color: #8291a6;
  line-height: 1.8;
  font-size: 12px;
}

.spinner {
  width: 65px;
  height: 65px;
  border: 5px solid #e6efff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.success-circle {
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 48px;
  animation: pop .4s ease;
}

.application-number {
  border-radius: 11px;
  padding: 13px 20px;
  background: #edf4ff;
  color: #2359b8;
  font-weight: 800;
  font-size: 12px;
  margin: 15px 0 24px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pop {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .hero-content {
    gap: 15px;
  }

  .premium-card {
    width: 305px;
    height: 205px;
  }

  .currency-symbol {
    font-size: 75px;
  }

  .orbital-1 {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .navbar {
    height: 74px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .nav-button {
    padding: 11px 14px;
    font-size: 11px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 75px 0 65px;
  }

  .hero-left {
    margin: auto;
  }

  .hero h1 {
    font-size: clamp(40px, 8vw, 57px);
    letter-spacing: -2px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-points {
    justify-content: center;
  }

  .hero-right {
    max-width: 440px;
    height: 330px;
    margin: 10px auto 0;
  }

  .float-a { right: 0; top: 7px; }
  .float-b { left: 0; bottom: 3px; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 13px;
  }

  .hero-tag {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero-points {
    gap: 10px;
    font-size: 10px;
  }

  .main-button {
    width: 100%;
    gap: 15px;
  }

  .hero-right {
    height: 275px;
  }

  .premium-card {
    width: 250px;
    height: 165px;
    padding: 20px;
  }

  .card-brand {
    font-size: 15px;
  }

  .currency-symbol {
    font-size: 60px;
  }

  .premium-card-bottom {
    font-size: 7px;
  }

  .orbital-1 {
    width: 275px;
    height: 275px;
  }

  .orbital-2 {
    width: 190px;
    height: 190px;
  }

  .floating-box {
    padding: 10px;
    gap: 8px;
  }

  .floating-box strong {
    font-size: 10px;
  }

  .floating-box small {
    font-size: 9px;
  }

  .floating-icon {
    width: 29px;
    height: 29px;
  }

  .modal {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .phone-field input,
  .password-field input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* MPAY PREMIUM LOADING ANIMATION */

.premium-loader {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 24px;
}

.progress-ring {
  width: 124px;
  height: 124px;
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: #e8effa;
  stroke-width: 7;
}

.ring-value {
  fill: none;
  stroke: #357cf5;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 307.876;
  stroke-dashoffset: 307.876;
  transition: stroke-dashoffset .25s linear;
}

.loader-percentage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 800;
  color: #1c4da2;
  letter-spacing: -1px;
}

#loadingView {
  min-height: 380px;
}

#loadingView h2 {
  font-size: 23px;
  margin: 5px 0 8px;
}

#loadingView p {
  max-width: 330px;
  margin: 0 auto 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #8191a8;
}

.progress-container {
  width: 100%;
  margin-top: 7px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 13px;
  border-radius: 30px;
  background: #e8eff9;
  overflow: hidden;
  border: 1px solid #dbe5f4;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #b5d7ff 35%,
    #68a9ff 70%,
    #347af1 100%
  );
  box-shadow: 0 0 12px rgba(73,143,255,.3);
  transition: width .25s linear;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.5),
    transparent
  );
  background-size: 200% 100%;
  animation: progressShimmer 3s ease-in-out infinite;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #8b9ab0;
  font-size: 10px;
  font-weight: 700;
}

.loading-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: #99a8ba;
  font-size: 10px;
}

.loading-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,.09);
}

@keyframes progressShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 430px) {
  #loadingView {
    min-height: 340px;
  }

  .premium-loader,
  .progress-ring {
    width: 110px;
    height: 110px;
  }

  #loadingView h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill::after {
    animation: none;
  }
}
