:root {
  --bg: #070707;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --gold: #e8b423;
  --rose: #e2556d;
  --purple: #7b6cff;
  --purple-soft: #ece8ff;
  --pink: #f3a7b8;
  --pink-soft: #fde8ee;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-color: var(--bg);
  background-image: var(--page-bg-mobile, url("../images/bg-mobile.jpg"));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(2px);
  transform: scale(1.05);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.46) 40%, rgba(0, 0, 0, 0.68) 100%);
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero {
  padding: 45px 45px 5px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: normal;
  letter-spacing: 0;
  font-weight: 700;
  max-width: 14ch;
}

.hero__sub {
  margin: 0 0 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.access-form {
  display: grid;
  gap: 10px;
}

.access-form__field {
  position: relative;
}

.access-form__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
}

.access-form input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px 0 42px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.access-form input::placeholder {
  color: #9a9a9a;
}

.access-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.access-form__btn {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.access-form__btn:hover {
  background: #000;
}

.form-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: #d8f5c8;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #ffb4b4;
}

.waitlist-proof {
  margin-top: 12px;
}

.waitlist-proof__count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
}

.waitlist-proof__count svg {
  flex-shrink: 0;
}

.waitlist-proof__count strong {
  color: var(--gold);
  font-weight: 700;
}

.waitlist-proof__note {
  margin: 6px 0 0 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.choice-panel {
  margin-top: auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 22px 18px 20px;
  margin: 12px 12px 0;
}

.choice-panel__intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #2b2b2b;
}

.choice-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.choice-card--build,
.choice-card--join .choice-card__main {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 16px;
}

.choice-card--build {
  margin-bottom: 10px;
}

/* quiet resting border; the gradient only shows on hover */
.choice-card--build,
.choice-card--join .choice-card__main {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(#ececec, #ececec) border-box;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

@property --cc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes cc-border-spin {
  to {
    --cc-angle: 360deg;
  }
}

.choice-card--build:hover,
.choice-card--build:focus-visible,
.choice-card--join:hover .choice-card__main,
.choice-card--join:focus-visible .choice-card__main {
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
        from var(--cc-angle),
        #8fd4ff,
        #8b7cf6,
        #f3a6c8,
        #8fd4ff
      )
      border-box;
  animation: cc-border-spin 2.8s linear infinite;
  box-shadow: 0 8px 24px rgba(139, 124, 246, 0.16);
  transform: translateY(-2px);
}

.choice-card__go {
  transition: transform 0.28s ease;
}

.choice-card:hover .choice-card__go {
  transform: translateX(3px);
}

.choice-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.choice-card__icon--build {
  background: var(--purple-soft);
  color: var(--purple);
}

.choice-card__icon--join {
  background: var(--pink-soft);
  color: #e1738a;
}

.choice-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.choice-card__text {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 10.5px;
  font-weight: 600;
}

.info-dot {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
  color: #8a8a8a;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  place-items: center;
}

.choice-card__go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.network-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 6px;
}

.avatars {
  display: flex;
  flex-shrink: 0;
}

.avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #ddd;
}

.avatars img:first-child {
  margin-left: 0;
}

.avatars img:nth-child(6) {
  display: block;
}

.network-proof__text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #333;
}

.network-proof__text strong {
  color: var(--rose);
  font-weight: 700;
}

.signin-line {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
  display: none;
}

.signin-line a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signin-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}

.signin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.signin-dialog__form {
  padding: 24px;
}

.signin-dialog h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.signin-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.signin-dialog input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.signin-dialog__actions {
  display: grid;
  gap: 8px;
}

.signin-dialog__cancel {
  height: 44px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

/* ── Desktop (matches mockup) ── */
@media (min-width: 980px) {
  html {
    font-size: 120%;
  }

  .page-bg::before {
    inset: 0;
    background-image: var(--page-bg-desktop, url("../images/bg-desktop.jpg"));
    background-size: cover;
    background-position: center;
    filter: none;
    transform: none;
  }

  .page-bg::after {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.38) 45%,
        rgba(0, 0, 0, 0.12) 100%
      );
  }

  .page {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 5vw, 88px);
    width: 100%;
    max-width: 1520px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(24px, 3.5vh, 48px) clamp(28px, 4.5vw, 72px);
  }

  /* Hero — left column */
  .hero {
    flex: 1 1 0;
    min-width: 0;
    max-width: clamp(420px, 46vw, 640px);
    padding: 0;
  }

  .hero h1 {
    margin: 0 0 clamp(16px, 2vh, 24px);
    font-size: 48px;
    line-height: normal;
    letter-spacing: -0.042em;
    font-weight: 700;
    max-width: 12.5ch;
  }

  .hero__sub {
    margin: 0 0 clamp(24px, 3vh, 36px);
    max-width: 38ch;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
  }

  .access-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: clamp(380px, 34vw, 520px);
  }

  .access-form__field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .access-form input {
    height: clamp(48px, 4.5vh, 56px);
    border-radius: 10px;
    padding: 0 16px 0 42px;
    font-size: clamp(14px, 1.1vw, 16.8px);
  }

  .access-form__btn {
    flex: 0 0 auto;
    height: clamp(48px, 4.5vh, 56px);
    padding: 0 clamp(18px, 1.8vw, 26px);
    border-radius: 10px;
    font-size: clamp(14px, 1.1vw, 16.8px);
    white-space: nowrap;
  }

  .form-status {
    font-size: 15.6px;
    margin-top: 10px;
  }

  .waitlist-proof {
    margin-top: clamp(18px, 2.5vh, 28px);
  }

  .waitlist-proof__count {
    font-size: clamp(14px, 1.15vw, 16.2px);
    gap: 10px;
  }

  .waitlist-proof__note {
    margin: 8px 0 0 28px;
    font-size: clamp(13px, 1vw, 15px);
  }

  /* Choice panel — right column */
  .choice-panel {
    flex: 0 0 auto;
    width: clamp(400px, 38vw, 540px);
    max-width: 540px;
    margin: 0;
    min-height: min(760px, calc(100dvh - 64px));
    border-radius: 25px;
    padding: clamp(32px, 3.5vw, 44px) clamp(28px, 2.8vw, 40px) clamp(28px, 3vh, 36px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }

  .choice-panel__intro {
    margin: 0 0 clamp(24px, 3vh, 36px);
    font-size: 18px;
    line-height: 1.45;
    color: #1f1f1f;
    font-weight: 400;
    max-width: 420px;
  }

  .choice-card--build,
  .choice-card--join .choice-card__main {
    grid-template-columns: auto auto auto;
    gap: clamp(14px, 1.5vw, 18px);
    align-items: start;
    padding: clamp(18px, 2vw, 24px) clamp(16px, 1.8vw, 22px);
    border-radius: 18px;
  }

  .choice-card--build {
    margin-bottom: clamp(14px, 1.8vh, 20px);
  }

  .choice-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .choice-card__icon svg {
    width: auto;
    height: 42px;
  }

  .choice-card__title {
    font-size: clamp(15px, 1.3vw, 18px);
    gap: 6px;
  }

  .choice-card__text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #5c5c5c;
  }

  .choice-card__go {
    width: 42px;
    height: 42px;
    align-self: center;
  }

  .choice-card--join {
    border: 1.5px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(#ececec, #ececec) border-box;
    border-radius: 18px;
    padding: 0 0 clamp(14px, 1.8vh, 20px);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
  }

  .choice-card--join .choice-card__main,
  .choice-card--join:hover .choice-card__main,
  .choice-card--join:focus-visible .choice-card__main {
    border: 0;
    background: none;
    animation: none;
    box-shadow: none;
    transform: none;
  }

  .choice-card--join:hover,
  .choice-card--join:focus-visible {
    background:
      linear-gradient(#fff, #fff) padding-box,
      conic-gradient(
          from var(--cc-angle),
          #8fd4ff,
          #8b7cf6,
          #f3a6c8,
          #8fd4ff
        )
        border-box;
    animation: cc-border-spin 2.8s linear infinite;
    box-shadow: 0 8px 24px rgba(139, 124, 246, 0.16);
    transform: translateY(-2px);
  }

  .network-proof {
    padding: 0 22px;
  }

  .avatars img {
    width: clamp(28px, 2.5vw, 34px);
    height: clamp(28px, 2.5vw, 34px);
    margin-left: -10px;
  }

  .network-proof__text {
    font-size: clamp(12.5px, 1.05vw, 15px);
    line-height: 1.45;
  }

  .signin-line {
    margin-top: auto;
    padding-top: clamp(24px, 3vh, 36px);
    font-size: clamp(13px, 1.1vw, 15.6px);
    color: #666;
    display: none;
  }

  .badge {
    display: none;
  }

  .info-dot {
    display: inline-grid;
  }

  .avatars img:nth-child(6) {
    display: none;
  }

  .signin-dialog h2 {
    font-size: 26.4px;
  }

  .signin-dialog p {
    font-size: 16.8px;
  }
}

/* Tighter layout for small desktop / laptop */
@media (min-width: 980px) and (max-width: 1199px) {
  .page {
    gap: 32px;
    padding: 24px 28px;
  }

  .choice-panel {
    width: clamp(360px, 42vw, 440px);
    min-height: min(680px, calc(100dvh - 48px));
    padding: 28px 24px 24px;
  }
}

/* Large desktop — match mockup proportions */
@media (min-width: 1440px) {
  .page {
    gap: 80px;
    padding: 40px 72px;
  }

  .hero {
    max-width: 640px;
  }

  .choice-panel {
    width: 540px;
    min-height: 0;
    padding: 90px 40px 75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg::before {
    filter: none;
  }

  .choice-card--build:hover,
  .choice-card--build:focus-visible,
  .choice-card--join:hover,
  .choice-card--join:focus-visible,
  .choice-card--join:hover .choice-card__main,
  .choice-card--join:focus-visible .choice-card__main {
    animation: none;
    transform: none;
  }

  .choice-card:hover .choice-card__go {
    transform: none;
  }
}
