/* CTA banner (markup in js/site.js ctaHTML). A dark card in both themes, so its colors are fixed
   here and this file is not part of tools/build-dark-theme.py. */

.cta {
  padding: 16px 0 72px;
}
.cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 32px 44px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: radial-gradient(70% 55% at 50% -10%, rgba(76, 120, 255, 0.42), transparent 70%),
    radial-gradient(45% 60% at 50% 125%, rgba(37, 99, 235, 0.5), transparent 70%),
    linear-gradient(180deg, #070c1f, #050817);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -40px rgba(10, 20, 60, 0.55);
}
/* fine grid that fades out from the middle */
.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 75% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 75% at 50% 35%, #000 20%, transparent 75%);
}
/* hairline gradient border */
.cta__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(160, 190, 255, 0.4), rgba(255, 255, 255, 0.04) 45%, rgba(96, 140, 255, 0.3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- decoration ---------- */
.cta__fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* horizon rings rising from below the card; a light travels along each */
.cta__orb {
  position: absolute;
  left: 50%;
  top: 100%;
  border-radius: 50%;
  border: 1px solid rgba(147, 180, 251, 0.16);
  animation: cta-spin 36s linear infinite;
}
.cta__orb::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #b9ccff;
  box-shadow:
    0 0 10px 2px rgba(120, 160, 255, 0.9),
    0 0 30px 6px rgba(80, 120, 255, 0.5);
}
.cta__orb--1 {
  width: 720px;
  height: 720px;
  margin: -260px 0 0 -360px;
}
.cta__orb--2 {
  width: 1040px;
  height: 1040px;
  margin: -400px 0 0 -520px;
  border-color: rgba(147, 180, 251, 0.11);
  animation-duration: 52s;
  animation-direction: reverse;
}
.cta__orb--3 {
  width: 1400px;
  height: 1400px;
  margin: -540px 0 0 -700px;
  border-color: rgba(147, 180, 251, 0.07);
  animation-duration: 70s;
}
.cta__orb--2::before {
  top: auto;
  bottom: 50%;
  left: -3px;
  margin: 0 0 -3px;
}
.cta__orb--3::before {
  left: auto;
  right: 14%;
  top: 13%;
}
@keyframes cta-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* floating token chips */
.cta__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font:
    400 12px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: nowrap;
  animation: cta-float 8s ease-in-out infinite;
}
.cta__chip i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  box-shadow: 0 0 12px currentColor;
}
.cta__chip b {
  font-weight: 400;
  color: rgba(219, 228, 255, 0.6);
}
.cta__chip em {
  font-style: normal;
  color: #fff;
}
.cta__chip--a {
  left: 3%;
  top: 16%;
  color: #2563eb;
}
.cta__chip--b {
  left: 5%;
  top: 68%;
  opacity: 0.6;
  transform: scale(0.9);
  animation-delay: -3s;
}
.cta__chip--c {
  right: 3%;
  top: 20%;
  animation-delay: -5s;
}
.cta__chip--d {
  right: 5%;
  top: 72%;
  color: #12b76a;
  opacity: 0.6;
  transform: scale(0.9);
  animation-delay: -1.5s;
}
@keyframes cta-float {
  50% {
    translate: 0 -8px;
  }
}

/* ---------- content ---------- */
.cta__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .cta__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: rgba(235, 240, 255, 0.9);
}
.cta__pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fa2ff;
  box-shadow: 0 0 0 3px rgba(127, 162, 255, 0.2);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
@keyframes cta-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(127, 162, 255, 0);
  }
}
.cta .cta__body h2 {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.cta__body h2 span {
  background: linear-gradient(90deg, #a9c1ff, #e6edff 55%, #9db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta .cta__text {
  max-width: 560px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(219, 228, 255, 0.72);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.cta .cta__primary {
  background: #fff;
  color: #0b1020;
  border-color: #fff;
  box-shadow: 0 10px 30px -10px rgba(120, 160, 255, 0.6);
}
.cta .cta__primary:hover {
  background: #eef2ff;
  box-shadow: 0 14px 34px -10px rgba(120, 160, 255, 0.8);
}
.cta .cta__ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.cta .cta__ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta .cta__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(219, 228, 255, 0.6);
}
.cta__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta__trust .ico {
  font-size: 14px;
  color: #7fa2ff;
  stroke-width: 2.5;
}

html[data-px-theme='dark'] .cta__card {
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1240px) {
  .cta__chip {
    display: none;
  }
}
@media (max-width: 800px) {
  .cta {
    padding: 8px 0 64px;
  }
  .cta__card {
    padding: 44px 20px 36px;
    border-radius: 22px;
  }
  .cta__chip {
    display: none;
  }
}
@media (max-width: 480px) {
  .cta__actions .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta__orb,
  .cta__chip,
  .cta__pill i {
    animation: none;
  }
}
