:root {
  color-scheme: dark;
  --bg: #071017;
  --card: rgba(16, 26, 37, 0.78);
  --card-strong: rgba(20, 32, 45, 0.92);
  --line: rgba(139, 166, 190, 0.34);
  --line-soft: rgba(139, 166, 190, 0.18);
  --text: #f6fbff;
  --muted: #b9c7d3;
  --cyan: #4feaff;
  --green: #35e579;
  --green-deep: #16bd58;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7, 14, 21, 0.06), rgba(7, 14, 21, 0.62)),
    image-set(
      url("images/redirect-fintech-background.webp") type("image/webp")
    );
  background-position: center;
  background-size: cover;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 37%, rgba(45, 228, 133, 0.15), transparent 20rem),
    radial-gradient(circle at 50% 56%, rgba(66, 227, 255, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(4, 10, 15, 0.25), transparent 26%, transparent 74%, rgba(4, 10, 15, 0.25));
  pointer-events: none;
}

.redirect-page {
  width: min(100%, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 74px) 22px 30px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 20px;
}

.redirect-card {
  width: min(640px, 100%);
  padding: clamp(30px, 4.5vw, 50px) clamp(24px, 4vw, 56px) 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(33, 48, 64, 0.78), rgba(8, 18, 28, 0.84)),
    var(--card);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 48px rgba(39, 225, 125, 0.08);
  backdrop-filter: blur(16px);
}

.hero-icon {
  width: clamp(142px, 19vw, 212px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  position: relative;
}

.hero-icon::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 999px;
  background: rgba(54, 233, 130, 0.18);
  filter: blur(22px);
  z-index: -1;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(32px, 4.1vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.status-glow {
  width: 146px;
  height: 16px;
  margin: 18px auto 10px;
  background: radial-gradient(ellipse at center, rgba(62, 255, 152, 0.95), rgba(62, 255, 152, 0.28) 34%, transparent 72%);
  filter: blur(1px);
}

.message-list {
  margin-top: 8px;
}

.message-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 94px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.message-row:first-child {
  border-top: 0;
}

.message-row p {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.26;
  font-weight: 600;
}

.row-icon {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.join-button {
  position: relative;
  width: 100%;
  min-height: 78px;
  margin: 22px 0 18px;
  border: 1px solid rgba(167, 255, 195, 0.62);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(83, 240, 128, 0.98), rgba(27, 190, 85, 0.98)),
    var(--green-deep);
  box-shadow:
    0 12px 28px rgba(26, 216, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  overflow: hidden;
  isolation: isolate;
  animation: join-button-pulse 2.4s ease-in-out infinite;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.join-button::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -45%;
  z-index: -1;
  width: 36%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  animation: join-button-shine 2.8s ease-in-out infinite;
}

.join-button::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(80, 255, 151, 0.42);
  animation: join-button-ring 2.4s ease-out infinite;
}

.join-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(26, 216, 102, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter: saturate(1.08);
}

.join-button:focus-visible {
  outline: 3px solid rgba(79, 234, 255, 0.92);
  outline-offset: 4px;
}

.join-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@keyframes join-button-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 28px rgba(26, 216, 102, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.36);
  }

  50% {
    transform: translateY(-1px) scale(1.012);
    box-shadow:
      0 18px 42px rgba(26, 216, 102, 0.46),
      0 0 34px rgba(79, 234, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

@keyframes join-button-shine {
  0% {
    left: -45%;
    opacity: 0;
  }

  18%,
  58% {
    opacity: 1;
  }

  72%,
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes join-button-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(80, 255, 151, 0.38);
  }

  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(80, 255, 151, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-button,
  .join-button::before,
  .join-button::after {
    animation: none;
  }
}

.fallback-note {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.fallback-note img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.fallback-note p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.27;
  font-weight: 500;
}

.page-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(218, 228, 236, 0.82);
  font-size: clamp(16px, 1.5vw, 23px);
  line-height: 1.3;
  text-align: center;
}

.page-note img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

@media (max-width: 720px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(7, 14, 21, 0.08), rgba(7, 14, 21, 0.72)),
      image-set(
        url("images/redirect-fintech-background-960.webp") type("image/webp")
      );
  }

  .redirect-page {
    padding: 24px 16px 22px;
    align-items: center;
  }

  .redirect-card {
    border-radius: 22px;
    padding: 28px 20px 24px;
  }

  .message-row {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    min-height: 82px;
  }

  .row-icon {
    width: 52px;
    height: 52px;
  }

  .join-button {
    min-height: 68px;
    gap: 12px;
  }

  .join-button img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .redirect-page {
    padding-inline: 12px;
  }

  .redirect-card {
    padding: 24px 16px 22px;
    border-radius: 18px;
  }

  .hero-icon {
    margin-bottom: 20px;
  }

  .message-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 13px 0;
  }

  .row-icon {
    width: 44px;
    height: 44px;
  }

  .join-button {
    min-height: 62px;
    border-radius: 10px;
  }

  .fallback-note {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .fallback-note img,
  .page-note img {
    width: 32px;
    height: 32px;
  }
}
