:root {
  --ink: #141115;
  --ink-2: #1e1a1f;
  --ink-3: #2a252c;
  --line-dark: #332d34;
  --white: #fbfbfb;
  --text-on-dark: #ede7ee;
  --text-muted: #9b9099;
  --blue: #3c9bde;
  --purple: #bc51cd;
  --lilac: #d9a8e4;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--ink);
}

/* ---------- Aurora mesh ---------- */
.aurora {
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: 0;
  pointer-events: none;
  /* Soft blur melts the blobs into one continuous aurora */
  filter: blur(60px) saturate(1.15);
  will-change: transform;
}

.glow {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  will-change: transform;
}

.glow--purple {
  width: 780px;
  height: 780px;
  left: -140px;
  top: -200px;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #bc51cd7a 0%,
    #bc51cd00 70%
  );
  animation: aurora-a 13s ease-in-out infinite;
}

.glow--blue {
  width: 880px;
  height: 880px;
  left: 58%;
  top: 36%;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #3c9bde70 0%,
    #3c9bde00 70%
  );
  animation: aurora-b 16s ease-in-out infinite;
}

.glow--lilac {
  width: 620px;
  height: 620px;
  left: 34%;
  top: 58%;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #d9a8e455 0%,
    #d9a8e400 70%
  );
  animation: aurora-c 11s ease-in-out infinite;
}

.glow--indigo {
  width: 700px;
  height: 700px;
  left: 8%;
  top: 44%;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #6a5acd4d 0%,
    #6a5acd00 70%
  );
  animation: aurora-d 18s ease-in-out infinite;
}

@keyframes aurora-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(260px, 150px) rotate(60deg) scale(1.35);
    opacity: 0.6;
  }
  66% {
    transform: translate(110px, 320px) rotate(-35deg) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes aurora-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.95;
  }
  33% {
    transform: translate(-300px, -130px) rotate(-50deg) scale(1.4);
    opacity: 1;
  }
  66% {
    transform: translate(-140px, 180px) rotate(45deg) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes aurora-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(200px, -230px) rotate(70deg) scale(1.5);
    opacity: 1;
  }
}

@keyframes aurora-d {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(240px, -160px) rotate(-60deg) scale(1.45);
    opacity: 1;
  }
}

/* Soft vignette to anchor the content and darken the edges */
.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 70% at 50% 42%,
    transparent 0%,
    #14111566 70%,
    #141115cc 100%
  );
}

/* Fine film grain for premium depth (SVG noise, no external asset) */
.bg-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 80px 64px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  top: 52px;
  left: 80px;
  right: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo__word {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.logo__letters {
  height: 20px;
  width: auto;
  display: block;
}

.logo__dot {
  position: absolute;
  left: 9%;
  top: 65%;
  width: 3.8px;
  height: 3.8px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.handle:hover {
  border-color: var(--purple);
  background-color: #ffffff08;
}

.handle__icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: #ffffff0a;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--lilac);
}

.eyebrow__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text-on-dark);
}

.headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 9vw, 78px);
  line-height: 1.12;
  color: var(--white);
  max-width: 100%;
  overflow-wrap: break-word;
}

.headline__line {
  display: block;
}

.headline__line--grad {
  background-image: linear-gradient(0deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Extra room so serif descenders (g, p) aren't clipped by background-clip */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.subhead {
  margin: 0;
  max-width: 620px;
  width: 100%;
  font-size: 18px;
  line-height: 1.56;
  color: var(--text-muted);
}

/* ---------- Signup ---------- */
.signup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  padding: 8px;
  background-color: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  transition: border-color 0.2s ease;
}

.form:focus-within {
  border-color: var(--purple);
}

.form__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  min-width: 0;
}

.form__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 15px;
}

.form__input::placeholder {
  color: var(--text-muted);
}

.cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  background-image: linear-gradient(0deg, var(--blue) 0%, var(--purple) 100%);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px #bc51cd99;
}

.cta:active {
  transform: translateY(0);
}

.cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.cta__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.note--error {
  color: #f0879a;
}

.note--success {
  color: var(--lilac);
}

/* ---------- Feature pills ---------- */
.pills {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #ffffff08;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.pill__icon {
  width: 15px;
  height: 15px;
  color: var(--lilac);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .content {
    padding: 120px 24px 56px;
    justify-content: flex-start;
    padding-top: 120px;
  }

  .topbar {
    top: 24px;
    left: 24px;
    right: 24px;
  }

  .hero {
    gap: 24px;
  }

  .subhead {
    font-size: 16px;
  }

  .form {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
  }

  .form__field {
    width: 100%;
    padding: 10px 14px;
  }

  .cta {
    width: 100%;
    padding: 14px;
  }

  .eyebrow__text {
    letter-spacing: 1.5px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .handle span {
    display: none;
  }

  .handle {
    padding: 9px;
  }
}

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

  .glow {
    animation: none;
  }

  .bg-grain {
    display: none;
  }
}
