.wallet-landing {
  --landing-bg-1: #050714;
  --landing-bg-2: #0a1230;
  --landing-purple: #8d52ff;
  --landing-blue: #2f8dff;
  --landing-cyan: #35d2ff;
  --landing-text: #eef2ff;
  --landing-muted: rgba(224, 232, 255, 0.82);
  --landing-border: rgba(160, 180, 255, 0.22);
  --landing-card: rgba(17, 24, 49, 0.72);
  --cursor-x: 50%;
  --cursor-y: 50%;
  --cursor-glow-opacity: 0;
  --card-glow-opacity: 0;
  --tilt-x: 0;
  --tilt-y: 0;

  position: relative;
  align-self: stretch;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 2rem);
  margin: 1rem auto;
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: 32px;
  border: 1px solid var(--landing-border);
  overflow: hidden;
  background:
    radial-gradient(1300px 620px at 8% -10%, rgba(141, 82, 255, 0.26), transparent 48%),
    radial-gradient(980px 520px at 100% 0%, rgba(47, 141, 255, 0.22), transparent 52%),
    linear-gradient(130deg, var(--landing-bg-1) 0%, var(--landing-bg-2) 57%, #040613 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 35px 90px rgba(3, 7, 23, 0.72),
    0 0 70px rgba(85, 82, 255, 0.24);
  transition: border-color 0.32s ease, box-shadow 0.32s ease;
}

.wallet-landing.hidden {
  display: none !important;
}

.wallet-landing::before,
.wallet-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wallet-landing::before {
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, rgba(167, 108, 255, 0.82), rgba(67, 126, 255, 0.78), rgba(83, 214, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: landing-border-shift 8.2s linear infinite;
}

.wallet-landing::after {
  background:
    radial-gradient(680px 430px at var(--cursor-x) var(--cursor-y), rgba(124, 86, 255, calc(var(--cursor-glow-opacity) * 0.76)), transparent 76%),
    radial-gradient(520px 300px at var(--cursor-x) var(--cursor-y), rgba(54, 176, 255, calc(var(--cursor-glow-opacity) * 0.5)), transparent 72%);
  filter: saturate(110%);
  transition: opacity 0.25s ease;
}

.wallet-landing__aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.72;
  pointer-events: none;
  animation: landing-float 10s ease-in-out infinite;
}

.wallet-landing__aurora--one {
  width: 390px;
  height: 390px;
  left: -90px;
  top: 14%;
  background: radial-gradient(circle at 30% 30%, rgba(141, 82, 255, 0.75), rgba(141, 82, 255, 0));
}

.wallet-landing__aurora--two {
  width: 480px;
  height: 480px;
  right: -150px;
  bottom: -125px;
  background: radial-gradient(circle at 30% 30%, rgba(53, 210, 255, 0.5), rgba(53, 210, 255, 0));
  animation-delay: -3.8s;
}

.wallet-landing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "hero cards";
  gap: clamp(1rem, 1.5vw, 1.55rem);
  height: 100%;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--tilt-x) * 1px), calc(var(--tilt-y) * 1px), 0);
  transition: transform 0.26s ease;
}

.wallet-landing__topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(0.2rem, 1vw, 0.55rem) clamp(0.2rem, 1vw, 0.75rem);
}

.wallet-landing__brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 235, 255, 0.95);
}

.wallet-landing__chip {
  border: 1px solid rgba(109, 151, 255, 0.5);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.8rem;
  color: #d6deff;
  background: linear-gradient(120deg, rgba(123, 78, 255, 0.3), rgba(41, 115, 255, 0.24));
}

.wallet-landing__hero {
  grid-area: hero;
  align-self: center;
  padding: clamp(0.35rem, 1vw, 0.95rem) clamp(0.2rem, 0.6vw, 0.42rem);
  transform: translateZ(0);
  will-change: transform;
}

.wallet-landing__eyebrow {
  margin: 0 0 0.7rem;
  color: #c4d3ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.wallet-landing__hero h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--landing-text);
  text-shadow: 0 10px 40px rgba(7, 18, 48, 0.5);
}

.wallet-landing__hero h1 span {
  background: linear-gradient(120deg, #a56bff 6%, #5e86ff 54%, #59d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.wallet-landing__lead {
  margin: 1rem 0 0;
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  color: var(--landing-muted);
  line-height: 1.56;
}

.wallet-landing__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.35rem;
  max-width: 520px;
}

.wallet-landing__btn {
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 50px;
  padding: 0.84rem 1.34rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.wallet-landing__btn::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 70%);
  transform: translateX(-130%) rotate(8deg);
  transition: transform 0.55s ease;
  z-index: -1;
}

.wallet-landing__btn:hover {
  transform: translateY(-2px);
}

.wallet-landing__btn:hover::before {
  transform: translateX(120%) rotate(8deg);
}

.wallet-landing__btn:active {
  transform: translateY(0);
}

.wallet-landing__btn--primary {
  color: #f7f9ff;
  border-color: rgba(180, 203, 255, 0.45);
  background: linear-gradient(120deg, rgba(131, 66, 255, 0.95), rgba(41, 125, 255, 0.95));
  box-shadow: 0 14px 35px rgba(52, 77, 191, 0.42);
  animation: landing-primary-glow 2.8s ease-in-out infinite;
}

.wallet-landing__btn--primary:hover {
  box-shadow: 0 20px 42px rgba(52, 77, 191, 0.58);
}

.wallet-landing__btn--secondary {
  color: #dde7ff;
  border-color: rgba(125, 159, 255, 0.58);
  background: rgba(12, 20, 48, 0.78);
}

.wallet-landing__btn--secondary:hover {
  border-color: rgba(143, 173, 255, 0.82);
  background: rgba(18, 28, 63, 0.92);
}

.wallet-landing__kpis {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  max-width: 640px;
}

.wallet-landing__kpi {
  border: 1px solid rgba(138, 162, 255, 0.35);
  border-radius: 14px;
  padding: 0.72rem 0.75rem;
  background: rgba(11, 19, 46, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wallet-landing__kpi strong {
  display: block;
  color: #f1f4ff;
  font-size: 1rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.wallet-landing__kpi span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(212, 223, 255, 0.84);
  font-size: 0.78rem;
  line-height: 1.35;
}

.wallet-landing__cards {
  grid-area: cards;
  align-self: center;
  display: grid;
  gap: 0.78rem;
  grid-template-columns: 1fr;
  transform: translateZ(0);
  will-change: transform;
}

.wallet-landing__card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(126, 163, 255, 0.34);
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(145deg, var(--landing-card), rgba(20, 30, 61, 0.44));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(9, 17, 40, 0.34);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  will-change: transform;
}

.wallet-landing__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(260px 150px at var(--cursor-x) var(--cursor-y), rgba(124, 102, 255, calc(var(--card-glow-opacity) * 0.42)), rgba(47, 143, 255, calc(var(--card-glow-opacity) * 0.28)), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wallet-landing__card:hover::before {
  opacity: 1;
}

.wallet-landing__card:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: rgba(155, 186, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 44px rgba(13, 22, 52, 0.44),
    0 0 24px rgba(93, 109, 255, 0.2);
}

.wallet-landing__cards > .wallet-landing__card {
  animation: landing-card-breathe 6.4s ease-in-out infinite;
}

.wallet-landing__cards > .wallet-landing__card:nth-child(2) {
  animation-delay: -1.8s;
}

.wallet-landing__cards > .wallet-landing__card:nth-child(3) {
  animation-delay: -3.4s;
}

.wallet-landing__card h3,
.wallet-landing__card h4 {
  margin: 0;
  color: #f1f4ff;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.wallet-landing__card h3 {
  font-size: 1.02rem;
}

.wallet-landing__card h4 {
  font-size: 0.98rem;
}

.wallet-landing__card p {
  margin: 0.52rem 0 0;
  font-size: 0.89rem;
  color: rgba(220, 230, 255, 0.87);
  line-height: 1.42;
}

.wallet-landing__explain {
  grid-area: explain;
  border: 1px solid rgba(129, 157, 255, 0.28);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.55rem);
  background:
    linear-gradient(145deg, rgba(13, 21, 48, 0.76), rgba(11, 16, 38, 0.9)),
    radial-gradient(420px 220px at 0% 0%, rgba(125, 90, 255, 0.16), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(10, 16, 38, 0.33);
}

.wallet-landing__explain h2 {
  margin: 0;
  color: #f0f4ff;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.26rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.wallet-landing__explain > p {
  margin: 0.8rem 0 0;
  color: rgba(216, 225, 255, 0.85);
  font-size: 0.96rem;
  line-height: 1.62;
}

.wallet-landing__flow {
  margin-top: 0.86rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.wallet-landing__flow .wallet-landing__card {
  min-height: 100%;
}

.wallet-landing__comparison {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.wallet-landing__comparison-table h4 {
  margin-bottom: 0.18rem;
}

.wallet-landing__comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.68rem;
}

.wallet-landing__comparison-grid p {
  margin-top: 0.36rem;
  font-size: 0.84rem;
  line-height: 1.38;
}

.wallet-landing__comparison-grid strong {
  color: #e8efff;
}

@keyframes landing-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 22px, 0);
  }
}

@keyframes landing-border-shift {
  0% {
    filter: hue-rotate(0deg);
  }

  50% {
    filter: hue-rotate(18deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes landing-card-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes landing-primary-glow {
  0%,
  100% {
    box-shadow: 0 14px 35px rgba(52, 77, 191, 0.4);
  }

  50% {
    box-shadow: 0 20px 46px rgba(76, 108, 255, 0.62);
  }
}

@media (max-width: 1100px) {
  .wallet-landing {
    min-height: auto;
  }

  .wallet-landing__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "hero"
      "cards";
  }

  .wallet-landing__flow,
  .wallet-landing__comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-landing__comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wallet-landing {
    width: calc(100% - 0.75rem);
    margin: 0.375rem auto;
    border-radius: 20px;
    min-height: calc(100dvh - 0.75rem);
    padding: 0.95rem 0.82rem calc(1rem + env(safe-area-inset-bottom));
    overflow-x: clip;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 28px 72px rgba(2, 8, 28, 0.68),
      0 0 44px rgba(90, 110, 255, 0.2);
  }

  .wallet-landing::before {
    opacity: 0.44;
  }

  .wallet-landing__aurora {
    filter: blur(50px);
    opacity: 0.56;
  }

  .wallet-landing__aurora--one {
    width: 280px;
    height: 280px;
    left: -120px;
    top: 10%;
  }

  .wallet-landing__aurora--two {
    width: 300px;
    height: 300px;
    right: -140px;
    bottom: -120px;
  }

  .wallet-landing__grid {
    gap: 0.88rem;
  }

  .wallet-landing__topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.1rem 0.05rem 0;
  }

  .wallet-landing__brand {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .wallet-landing__chip {
    padding: 0.3rem 0.56rem;
    font-size: 0.71rem;
    white-space: nowrap;
    background: linear-gradient(120deg, rgba(123, 78, 255, 0.34), rgba(41, 115, 255, 0.26));
  }

  .wallet-landing__hero {
    padding: 0.22rem 0.06rem 0;
  }

  .wallet-landing__hero h1 {
    font-size: clamp(2rem, 9.7vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .wallet-landing__eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  .wallet-landing__lead {
    margin-top: 0.82rem;
    max-width: 36ch;
    font-size: 0.93rem;
    line-height: 1.52;
    color: rgba(222, 231, 255, 0.86);
    text-wrap: pretty;
  }

  .wallet-landing__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    margin-top: 0.95rem;
    gap: 0.56rem;
  }

  .wallet-landing__btn {
    width: 100%;
    min-height: 52px;
    border-radius: 13px;
    padding: 0.75rem 0.8rem;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.15;
  }

  .wallet-landing__kpis {
    margin-top: 0.78rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    gap: 0.52rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.08rem 0.08rem 0.26rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .wallet-landing__kpis::-webkit-scrollbar {
    display: none;
  }

  .wallet-landing__kpi {
    padding: 0.58rem 0.62rem 0.62rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(11, 19, 46, 0.8), rgba(11, 20, 50, 0.5));
    border-color: rgba(136, 162, 255, 0.4);
    scroll-snap-align: start;
  }

  .wallet-landing__kpi strong {
    font-size: 0.9rem;
  }

  .wallet-landing__kpi span {
    margin-top: 0.16rem;
    font-size: 0.69rem;
    line-height: 1.32;
  }

  .wallet-landing__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    gap: 0.58rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.08rem 0.08rem 0.34rem;
    margin-top: 0.05rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .wallet-landing__cards::-webkit-scrollbar {
    display: none;
  }

  .wallet-landing__flow {
    display: none;
  }

  .wallet-landing__comparison {
    display: none;
  }

  .wallet-landing__card {
    width: auto;
    min-width: 0;
    padding: 0.9rem 0.9rem 0.96rem;
    border-radius: 16px;
    border-color: rgba(132, 165, 255, 0.44);
    scroll-snap-align: start;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 15px 30px rgba(10, 19, 45, 0.42);
  }

  .wallet-landing__card h3,
  .wallet-landing__card h4 {
    font-size: 0.94rem;
    letter-spacing: 0.005em;
  }

  .wallet-landing__card p {
    font-size: 0.85rem;
    line-height: 1.42;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .wallet-landing__explain {
    border-radius: 18px;
    padding: 0.92rem 0.82rem;
  }

  .wallet-landing__explain h2 {
    font-size: 1.15rem;
  }

  .wallet-landing__explain > p {
    font-size: 0.89rem;
    margin-top: 0.64rem;
    line-height: 1.5;
  }

  .wallet-landing__flow {
    margin-top: 0.75rem;
    grid-template-columns: 1fr;
  }

  .wallet-landing__flow .wallet-landing__card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .wallet-landing {
    width: calc(100% - 0.6rem);
    border-radius: 18px;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .wallet-landing__hero h1 {
    font-size: clamp(1.86rem, 10.4vw, 2.45rem);
  }

  .wallet-landing__actions {
    grid-template-columns: 1fr;
  }

  .wallet-landing__btn {
    min-height: 50px;
  }

  .wallet-landing__kpis {
    grid-auto-columns: minmax(125px, 1fr);
  }

  .wallet-landing__cards {
    grid-auto-columns: minmax(88%, 1fr);
  }
}

@media (hover: none) and (pointer: coarse) {
  .wallet-landing__grid {
    transform: none !important;
    transition: none;
  }

  .wallet-landing__cards > .wallet-landing__card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-landing__aurora,
  .wallet-landing__btn,
  .wallet-landing__cards > .wallet-landing__card,
  .wallet-landing::before {
    animation: none !important;
    transition: none !important;
  }

  .wallet-landing::after {
    display: none;
  }

  .wallet-landing__grid {
    transform: none !important;
  }
}
