:root {
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .07);
  --text: #e8e6e1;
  --text-muted: rgba(232, 230, 225, .5);
  --accent: #a78bfa;
  --accent-warm: #f0abfc;
  --accent-glow: rgba(167, 139, 250, .15);
  --grad-1: #7c3aed;
  --grad-2: #a78bfa;
  --grad-3: #f0abfc;
  --radius: 16px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Ambient background ── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(124, 58, 237, .18), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(240, 171, 252, .1), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 58, 237, .08), transparent);
}

/* ── Floating orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -5%;
  background: var(--grad-1);
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: -5%;
  background: var(--grad-3);
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  background: var(--grad-2);
  animation-delay: -12s;
  animation-duration: 18s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(.95); }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 2rem;
}

.card {
  max-width: 520px;
  width: 100%;
  background: rgba(16, 16, 24, .7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  margin-top: auto;
  margin-bottom: auto;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.invite-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  animation: fadeUp .8s .15s cubic-bezier(.22, 1, .36, 1) both;
}

.invite-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ── Typography ── */
.headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  animation: fadeUp .8s .25s cubic-bezier(.22, 1, .36, 1) both;
}

.headline .inviter {
  background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 700;
}

.subline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  animation: fadeUp .8s .35s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Feature pills ── */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  animation: fadeUp .8s .45s cubic-bezier(.22, 1, .36, 1) both;
}

.pill {
  font-size: .78rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--text-muted);
  transition: all .25s ease;
}

.pill:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: rgba(255, 255, 255, .1);
}

/* ── CTA ── */
.cta-area {
  animation: fadeUp .8s .55s cubic-bezier(.22, 1, .36, 1) both;
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  background-size: 200% 200%;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0), 0 4px 24px rgba(0, 0, 0, .4);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(167, 139, 250, .25), 0 8px 32px rgba(0, 0, 0, .5);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.scarcity {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  opacity: .7;
}

.scarcity strong {
  color: var(--accent-warm);
  font-weight: 600;
}

/* ── Pricing note ── */
.pricing-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  animation: fadeUp .8s .65s cubic-bezier(.22, 1, .36, 1) both;
}

.pricing-note strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  animation: fadeUp .8s .75s cubic-bezier(.22, 1, .36, 1) both;
}

.footer a {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}

.footer a:hover {
  color: var(--accent);
}

.footer svg {
  width: 14px;
  height: 14px;
  opacity: .5;
}

/* ── Mobile tweaks ── */
@media (max-width: 540px) {
  .card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  .page {
    padding: 2rem 1rem 1.5rem;
  }
}