:root {
  color-scheme: dark;
  --accent: #f5c518;
  --accent-hover: #ffd447;
  --accent-ink: #080808;
  --ivory: #f5f1e8;
  --ink: #080808;
  --muted: #b3b3b3;
  --panel: rgba(0, 0, 0, .78);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
}

a { color: inherit; }

.join-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow-x: hidden;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header,
.join-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.page-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,.02) 45%, rgba(0,0,0,.28)),
    linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.02) 35%, rgba(0,0,0,.58));
}

.site-header {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--accent);
  text-decoration: none;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -.075em;
  transform: scaleY(1.12);
  transform-origin: left center;
  text-shadow: 0 2px 18px rgba(245,197,24,.24);
}

.header-link {
  padding: 9px 18px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible,
.primary-action:hover,
.primary-action:focus-visible { background: var(--accent-hover); }

.join-main {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 0 72px;
}

.join-card {
  width: min(100%, 480px);
  padding: clamp(32px, 5vw, 54px);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,.08);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ivory);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  margin: 22px 0;
  color: #dedede;
  font-size: 1.06rem;
  line-height: 1.55;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.benefits span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #ddd;
  font-size: .75rem;
  font-weight: 700;
}

.primary-action {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.primary-action:hover { transform: translateY(-1px); }
.primary-action span { font-size: 1.65rem; line-height: 0; }

.signin-copy {
  margin: 24px 0 0;
  color: var(--muted);
}

.signin-copy a { color: var(--ivory); font-weight: 700; text-decoration: none; }
.signin-copy a:hover { text-decoration: underline; }

.fine-print {
  margin: 18px 0 0;
  color: #858585;
  font-size: .75rem;
  line-height: 1.45;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px;
  background: rgba(0,0,0,.82);
  color: #9b9b9b;
  font-size: .82rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .site-header { min-height: 72px; width: min(100% - 28px, 1240px); }
  .header-link { padding: 8px 13px; font-size: .85rem; }
  .join-main { align-items: flex-start; width: 100%; padding: 0; }
  .join-card {
    width: 100%;
    min-height: calc(100vh - 72px);
    border: 0;
    border-radius: 0;
    padding: 42px 24px 56px;
    margin: 12px;
    width: calc(100% - 24px);
    min-height: auto;
    border: 1px solid rgba(245,197,24,.2);
    border-radius: 8px;
    background: rgba(0,0,0,.68);
    backdrop-filter: blur(5px);
  }
  .page-backdrop { object-position: 34% center; }
  .site-footer { background: rgba(0,0,0,.78); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
