:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #07131f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(0, 119, 181, 0.18), transparent 45%),
    #07131f;
}

.page-shell {
  width: min(100% - 36px, 560px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.join-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
  padding: 48px 48px 42px;
  border: 1px solid #294052;
  border-radius: 28px;
  background: linear-gradient(180deg, #102638, #0d1d29);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.join-card::before {
  position: absolute;
  z-index: -1;
  inset: -110px -80px auto;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 181, 0.26), transparent 70%);
  content: "";
}

.join-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #0d1d29;
  border-radius: 50%;
  background: linear-gradient(145deg, #176b81, #0077b5);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.06em;
  box-shadow: 0 0 0 2px #6288a0, 0 10px 22px rgba(0, 0, 0, 0.25);
}

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

.join-kicker {
  margin: 30px 0 10px;
  color: #8bc7e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.join-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.description {
  max-width: 370px;
  margin: 18px 0 0;
  color: #b5c6d1;
  font-size: 16px;
  line-height: 1.6;
}

.member-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 25px 0 0;
  color: #b5c6d1;
  font-size: 15px;
  line-height: 1.4;
}

.member-count svg { width: 19px; height: 19px; margin-right: 2px; flex: none; }
.member-count strong { color: #4ade80; font-weight: 700; }
.rolling-count { --count-roll-duration: 3.25s; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.rolling-digit { height: 1em; overflow: hidden; line-height: 1; text-align: center; }
.rolling-digit-track { display: block; transform: translateY(-10em); animation: roll-digit var(--count-roll-duration) cubic-bezier(0.18, 0.72, 0.25, 1) both; }
.rolling-digit-track span { display: block; height: 1em; line-height: 1; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes roll-digit {
  from { transform: translateY(0); }
  to { transform: translateY(-10em); }
}

.primary-cta {
  --cta-ripple-duration: 1.6s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 32px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: #0077b5;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 58%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.22);
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.primary-cta::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: cta-ripple var(--cta-ripple-duration) ease-out infinite;
}

.primary-cta svg { width: 21px; height: 21px; flex: none; }

.primary-cta:hover {
  background: #00699f;
  box-shadow: 0 10px 24px rgba(0, 119, 181, 0.28);
  transform: translateY(-2px);
}
.primary-cta:active { transform: translateY(0); }
.primary-cta:focus-visible { outline: 3px solid #d8ae64; outline-offset: 4px; }
.primary-cta:hover::before,
.primary-cta:focus-visible::before { animation: none; opacity: 0; }

@keyframes cta-ripple {
  0%, 12% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  22% { opacity: 0.7; }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.5); }
}

.advertising-contact {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-top: 1px solid rgba(139, 199, 229, 0.22);
}

.advertising-contact[hidden] { display: none; }
.advertising-contact p { margin: 0; color: #aabdc9; font-size: 13px; line-height: 1.5; }
.advertising-contact strong { color: #d7e7ef; font-weight: 600; }
.advertising-handle strong { color: #8bc7e5; white-space: nowrap; }

.disclaimer {
  width: 100%;
  padding: 22px 4px 0;
  border-top: 1px solid rgba(139, 199, 229, 0.22);
  text-align: center;
}
.disclaimer p { margin: 0; color: #91a6b4; font-size: 12px; line-height: 1.5; }

@media (max-width: 600px) {
  .main-content { padding: 32px 0; }
  .join-card { padding: 38px 24px 34px; border-radius: 24px; }
  .advertising-contact { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rolling-digit-track { animation: none; }
  .primary-cta { transition: none; }
  .primary-cta::before { animation: none; opacity: 0; }
  .primary-cta:hover { transform: none; }
}
