:root {
  color-scheme: dark;
  --bg: #09090d;
  --ink: #f7f3ee;
  --muted: #a7a2a0;
  --line: rgba(255, 255, 255, 0.13);
  --red: #e51f33;
  --amber: #f0b35a;
  --button: #f3f0e8;
  --button-ink: #14110f;
  --link: #2a9fe8;
}

* {
  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:
    radial-gradient(circle at 50% 0%, rgba(229, 31, 51, 0.28), transparent 38rem),
    linear-gradient(135deg, rgba(240, 179, 90, 0.12) 0 1px, transparent 1px 42px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 56px),
    var(--bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 9, 13, 0.05), rgba(9, 9, 13, 0.86)),
    radial-gradient(circle at 15% 20%, rgba(240, 179, 90, 0.12), transparent 18rem),
    radial-gradient(circle at 85% 75%, rgba(229, 31, 51, 0.16), transparent 20rem);
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.invite {
  width: min(100%, 430px);
  padding: 34px 24px 30px;
  text-align: center;
  background: rgba(18, 18, 24, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 2px solid rgba(240, 179, 90, 0.38);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(229, 31, 51, 0.13),
    0 16px 40px rgba(0, 0, 0, 0.38);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.03;
  letter-spacing: 0;
}

.subscribers {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  max-width: 340px;
  margin: 0 auto 28px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.subtitle span {
  color: var(--link);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 270px);
  min-height: 58px;
  padding: 0 24px;
  color: var(--button-ink);
  background: var(--button);
  border: 0;
  border-radius: 8px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  touch-action: manipulation;
}

.cta:hover {
  background: #ffffff;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.cta:active,
.cta.is-loading {
  transform: translateY(1px) scale(0.99);
}

.cta.is-loading {
  pointer-events: none;
  opacity: 0.86;
}

@media (max-width: 420px) {
  .page {
    padding: 18px;
  }

  .invite {
    padding: 30px 18px 26px;
  }

  .brand-mark {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
  }

  .subscribers {
    font-size: 15px;
  }

  .subtitle {
    font-size: 17px;
  }

  .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
