:root {
  color-scheme: dark;
  --bg: #060912;
  --card: #0c1322;
  --card-line: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #97a0b0;
  --gold: #d4a544;
  --gold-glow: rgba(212, 165, 68, 0.55);
  --tg: #2f9eff;
  --tg-2: #6ec3ff;
  --tg-glow: rgba(47, 158, 255, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 32px 16px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--card-line);
  border-radius: 24px;
  background: var(--card);
  padding: 36px 26px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-glow), transparent 62%);
  filter: blur(6px);
  z-index: 0;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(212, 165, 68, 0.6);
}

.name {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.kicker {
  margin: 6px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.bullets {
  display: grid;
  gap: 16px;
  margin: 0 auto 26px;
  padding: 0;
  width: fit-content;
  list-style: none;
}

.bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #f1f3f7;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Animated CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tg-2), var(--tg));
  color: #0a1a2c;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 18px 40px var(--tg-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: ctaBreathe 2.6s ease-in-out infinite;
  transition: transform 0.18s ease;
}

.cta-label {
  position: relative;
  z-index: 2;
}

/* Sheen — diagonal light sweep across the button */
.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: rotate(8deg);
  z-index: 1;
  pointer-events: none;
  animation: ctaSheen 3.4s ease-in-out infinite;
}

/* Outer ripple ring */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(110, 195, 255, 0.55);
  z-index: 0;
  pointer-events: none;
  animation: ctaRipple 2.6s ease-out infinite;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

@keyframes ctaBreathe {
  0%,
  100% {
    box-shadow:
      0 18px 40px var(--tg-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow:
      0 22px 56px rgba(47, 158, 255, 0.85),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

@keyframes ctaSheen {
  0% {
    left: -60%;
  }
  60%,
  100% {
    left: 130%;
  }
}

@keyframes ctaRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 195, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(110, 195, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 195, 255, 0);
  }
}

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

/* ---------- End CTA ---------- */

.invite {
  margin-top: 22px;
  padding: 18px 18px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.invite strong {
  color: #e5e9f1;
  font-weight: 700;
}

.legal {
  margin-top: 18px;
  text-align: center;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.legal-links a {
  color: #b8c0cc;
  text-decoration: none;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-links span {
  color: #4a5263;
}

.legal p {
  margin: 0;
  color: #6f7787;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .card {
    padding: 30px 20px 24px;
  }

  .avatar-wrap {
    width: 116px;
    height: 116px;
  }

  .bullets li {
    font-size: 16px;
  }

  .cta {
    font-size: 18px;
    min-height: 54px;
  }
}
