:root {
  --bg: #ffffff;
  --text: #111113;
  --muted: #6d6d74;
  --line: rgba(16, 16, 18, .08);
  --panel: rgba(255,255,255,.76);
  --shadow: 0 20px 60px rgba(20, 20, 24, .08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  color: var(--text);
  background:
    radial-gradient(70% 42% at 50% 108%, rgba(255, 101, 190, .22), transparent 62%),
    radial-gradient(48% 32% at 62% 104%, rgba(120, 94, 255, .20), transparent 66%),
    radial-gradient(45% 28% at 38% 104%, rgba(95, 193, 255, .13), transparent 70%),
    #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(90px);
  opacity: .26;
  z-index: -1;
  border-radius: 999px;
}

.ambient-a {
  width: 420px;
  height: 220px;
  left: 12%;
  bottom: -120px;
  background: #ef76ff;
}

.ambient-b {
  width: 460px;
  height: 250px;
  right: 8%;
  bottom: -140px;
  background: #ff9cc5;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: calc(100% - 32px);
  max-width: 1480px;
  margin: 16px auto 0;
  min-height: 66px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 34px rgba(20,20,24,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 100%; height: 100%; }

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.beta-pill,
.nav-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.beta-pill {
  color: #55565d;
  background: #f5f5f7;
}

.nav-link {
  border: 1px solid var(--line);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20,20,24,.07);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 74vh;
  padding: 140px 0 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  font-weight: 700;
  color: #74757c;
}

.hero h1 {
  max-width: 860px;
  margin: 22px auto 0;
  font-size: clamp(50px, 7.7vw, 104px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 650;
}

.hero-copy {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  letter-spacing: -.02em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: white;
  background: #111113;
  box-shadow: 0 10px 26px rgba(17,17,19,.14);
}

.button-primary:hover {
  background: #252529;
  box-shadow: 0 14px 30px rgba(17,17,19,.18);
}

.button-secondary {
  color: #171719;
  background: rgba(255,255,255,.86);
  border-color: var(--line);
}

.build-note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #85858d;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,.10);
}

.join-section {
  padding: 40px 0 110px;
}

.join-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.join-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
}

.join-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.join-form {
  display: grid;
  gap: 14px;
}

.join-form label {
  display: grid;
  gap: 8px;
}

.join-form label > span {
  font-size: 12px;
  font-weight: 650;
  color: #505158;
}

input, select, textarea {
  width: 100%;
  color: #171719;
  background: rgba(248,248,250,.88);
  border: 1px solid rgba(18,18,20,.08);
  border-radius: 14px;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input, select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding: 13px 14px;
}

input:focus, select:focus, textarea:focus {
  background: white;
  border-color: rgba(17,17,19,.24);
  box-shadow: 0 0 0 4px rgba(17,17,19,.04);
}

.submit-button { width: 100%; margin-top: 4px; }

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 12px;
  color: #65666d;
}

.form-status.success { color: #187a36; }
.form-status.error { color: #b42318; }

.footer {
  width: min(1120px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #85858d;
  font-size: 12px;
}

@media (max-width: 760px) {
  .topbar {
    top: 8px;
    margin-top: 8px;
    width: calc(100% - 16px);
    border-radius: 18px;
  }

  .beta-pill { display: none; }

  .hero {
    min-height: 68vh;
    padding: 110px 0 80px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button { width: 100%; }

  .join-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 26px;
    border-radius: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }
}
