@font-face {
  font-family: "Apex Logo";
  src: url("fonts/apex-logo.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Apex UI";
  src: url("fonts/apex-ui.otf") format("opentype");
  font-display: swap;
}

:root {
  --night: #050a11;
  --paper: #f4f7fa;
  --muted: #8e9aa8;
  --blue: #2675ef;
  --green: #25e89a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--night);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.launch {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(31, 86, 145, 0.16), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(18, 51, 84, 0.14), transparent 28rem),
    linear-gradient(145deg, #070d15, #03070c);
}

.launch::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 10, 17, 0.38), transparent 28%, transparent 72%, rgba(5, 10, 17, 0.38));
}

.topbar,
footer {
  position: relative;
  z-index: 5;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 88px;
}

.logo {
  width: fit-content;
  display: grid;
  color: inherit;
  line-height: 1;
  text-decoration: none;
  animation: reveal-down 700ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo span {
  font-family: "Apex Logo", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.logo i {
  width: 100%;
  height: 2px;
  margin-top: 6px;
  background: var(--blue);
  transform: skewX(-40deg);
}

.status {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(122, 145, 169, 0.12);
  border-radius: 999px;
  color: #8290a0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.66rem;
  animation: reveal-down 700ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.status i,
.signal-dot,
.eyebrow i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(37, 232, 154, 0.45);
}

.status i {
  margin-right: 0.45rem;
}

.signup {
  position: relative;
  z-index: 4;
  width: min(680px, calc(100% - 40px));
  margin: auto;
  padding: 2rem 0;
  isolation: isolate;
  text-align: center;
}

.signup::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(960px, 100vw);
  height: 560px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(5, 12, 20, 0.98) 0%, rgba(5, 12, 20, 0.9) 42%, transparent 73%);
  transform: translate(-50%, -50%);
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: #758495;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  animation: reveal-up 700ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow i {
  margin-right: 0.55rem;
}

h1 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.5rem, 5.6vw, 5.8rem);
  font-weight: 750;
  line-height: 0.88;
  letter-spacing: -0.065em;
  animation: reveal-up 850ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 span {
  color: #9ba8b6;
  font-weight: 700;
}

.intro {
  margin: 1.55rem auto 2.35rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  animation: reveal-up 750ms 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.waitlist-form {
  width: min(100%, 610px);
  margin: 0 auto;
  animation: reveal-up 800ms 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.email-bar {
  min-height: 66px;
  padding: 6px 6px 6px 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid rgba(145, 166, 187, 0.2);
  border-radius: 999px;
  background: rgba(14, 23, 34, 0.78);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.email-bar:focus-within {
  border-color: rgba(65, 131, 231, 0.72);
  box-shadow:
    0 0 0 4px rgba(38, 117, 239, 0.08),
    0 20px 70px rgba(0, 0, 0, 0.4);
}

.signal-dot {
  margin-right: 0.85rem;
}

.email-bar input {
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 0.88rem;
  -webkit-text-fill-color: white;
  transition: color 180ms ease;
}

.email-bar input::placeholder {
  color: #718091;
  opacity: 1;
}

.email-bar input:disabled {
  color: #dce6f0;
  -webkit-text-fill-color: #dce6f0;
  opacity: 1;
  background: transparent;
}

.email-bar input:-webkit-autofill,
.email-bar input:-webkit-autofill:hover,
.email-bar input:-webkit-autofill:focus,
.email-bar input:-webkit-autofill:disabled {
  -webkit-text-fill-color: #dce6f0;
  box-shadow: 0 0 0 1000px #0e1722 inset;
  transition: background-color 9999s ease-out;
}

.email-bar button {
  align-self: stretch;
  min-width: 178px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 999px;
  background: #edf3fa;
  color: #07101a;
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.email-bar button:hover {
  background: white;
  transform: translateY(-1px);
}

.email-bar button:disabled {
  cursor: default;
  opacity: 1;
  transform: none;
}

.consent {
  width: fit-content;
  margin: 0.9rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #5f6d7d;
  cursor: pointer;
  font-size: 0.63rem;
  line-height: 1.5;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.privacy-link {
  margin: 0;
  padding: 0;
  border: 0;
  color: #91a0b0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #415366;
  text-underline-offset: 3px;
}

.form-message {
  min-height: 1em;
  margin: 0.7rem 0 0;
  color: var(--green);
  font-size: 0.65rem;
}

.waitlist-form.is-error .email-bar {
  border-color: rgba(239, 107, 126, 0.8);
}

.waitlist-form.is-error .form-message {
  color: #f48292;
}

.waitlist-form.is-success .email-bar {
  border-color: rgba(37, 232, 154, 0.36);
  background: rgba(11, 27, 28, 0.82);
  box-shadow:
    0 0 0 4px rgba(37, 232, 154, 0.045),
    0 20px 70px rgba(0, 0, 0, 0.38);
}

.waitlist-form.is-success .email-bar button {
  color: #042117;
  background: var(--green);
}

.waitlist-form.is-success .signal-dot {
  animation: success-pulse 1.8s ease-in-out infinite;
}

.waitlist-form.is-success .consent {
  opacity: 0.48;
}

.mockups {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.mockup {
  position: absolute;
  object-fit: contain;
  opacity: 0.46;
  filter: saturate(0.75) brightness(0.72) drop-shadow(0 24px 45px rgba(0, 0, 0, 0.56));
  user-select: none;
  will-change: transform, opacity;
}

.mockup-a {
  width: clamp(230px, 23vw, 370px);
  top: 12%;
  left: -5%;
  --mockup-transform: rotate(-11deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1.1s 120ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-a 12s 1.25s ease-in-out infinite;
}

.mockup-b {
  width: clamp(175px, 17vw, 280px);
  bottom: -7%;
  left: 14%;
  opacity: 0.29;
  --mockup-transform: rotate(9deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1s 440ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-b 14s 1.45s ease-in-out infinite;
}

.mockup-c {
  width: clamp(180px, 18vw, 300px);
  right: 3%;
  bottom: -8%;
  --mockup-transform: rotate(7deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1.1s 180ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-b 13s 1.3s ease-in-out infinite;
}

.mockup-d {
  width: clamp(150px, 14vw, 235px);
  top: -8%;
  left: 30%;
  opacity: 0.25;
  --mockup-transform: rotate(5deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1s 360ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-a 15s 1.35s ease-in-out infinite;
}

.mockup-e {
  width: clamp(160px, 15vw, 245px);
  right: 23%;
  bottom: -9%;
  opacity: 0.26;
  --mockup-transform: rotate(-6deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1s 500ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-a 13s 1.5s ease-in-out infinite;
}

.mockup-f {
  width: clamp(150px, 14vw, 230px);
  left: -2%;
  bottom: -5%;
  opacity: 0.34;
  --mockup-transform: rotate(13deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1s 560ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-b 16s 1.55s ease-in-out infinite;
}

.mockup-g {
  width: clamp(230px, 22vw, 360px);
  height: 70vh;
  top: 6%;
  right: 5%;
  opacity: 0.41;
  --mockup-transform: rotate(-4deg);
  transform: var(--mockup-transform);
  animation:
    mockup-enter 1.1s 300ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-a 14s 1.4s ease-in-out infinite;
}

.mockup-a,
.mockup-c,
.mockup-f {
  -webkit-mask-image: radial-gradient(circle, black 45%, transparent 74%);
  mask-image: radial-gradient(circle, black 45%, transparent 74%);
}

footer {
  min-height: 66px;
  color: #536170;
  font-size: 0.58rem;
}

footer b {
  font-weight: 400;
}

.footer-privacy {
  position: absolute;
  left: 50%;
  color: #6c7a89;
  font-size: inherit;
  transform: translateX(-50%);
}

footer {
  animation: reveal-up 700ms 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.privacy-panel {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.privacy-panel.is-open {
  visibility: visible;
  opacity: 1;
}

.privacy-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 4, 9, 0.78);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.privacy-card {
  position: relative;
  width: min(640px, calc(100% - 40px));
  max-height: min(720px, calc(100svh - 40px));
  padding: 2.2rem;
  overflow-y: auto;
  border: 1px solid rgba(145, 166, 187, 0.16);
  border-radius: 24px;
  background: #0b131d;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65);
}

.privacy-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-card-top p,
.effective {
  color: #697788;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(145, 166, 187, 0.16);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.privacy-card h2 {
  margin: 1.7rem 0 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.effective {
  margin: 0.75rem 0 2rem;
}

.privacy-copy {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(145, 166, 187, 0.14);
}

.privacy-copy h3 {
  margin: 1.7rem 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.privacy-copy p {
  margin: 1rem 0;
  color: #8997a6;
  font-size: 0.82rem;
  line-height: 1.75;
}

.privacy-copy a {
  color: white;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mockup-enter {
  from {
    opacity: 0;
    transform: var(--mockup-transform) scale(0.9);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: var(--mockup-transform) translate3d(0, 0, 0);
  }
  50% {
    transform: var(--mockup-transform) translate3d(0, -10px, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: var(--mockup-transform) translate3d(0, 0, 0);
  }
  50% {
    transform: var(--mockup-transform) translate3d(8px, 7px, 0);
  }
}

@keyframes success-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(37, 232, 154, 0.45);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 232, 154, 0.9);
  }
}

@media (max-width: 760px) {
  .topbar,
  footer {
    width: calc(100% - 38px);
  }

  .topbar {
    min-height: 70px;
  }

  .logo span {
    font-size: 1.05rem;
  }

  .status {
    font-size: 0.58rem;
  }

  .signup {
    width: min(100% - 36px, 520px);
    padding-bottom: 3rem;
  }

  .signup::before {
    width: 145vw;
    height: 500px;
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 4.5rem);
    line-height: 0.9;
  }

  .intro {
    max-width: 310px;
    margin: 1.35rem auto 1.8rem;
    font-size: 0.82rem;
  }

  .email-bar {
    min-height: 60px;
    padding: 5px 5px 5px 1rem;
  }

  .email-bar input {
    font-size: 0.82rem;
  }

  .email-bar button {
    min-width: 112px;
    padding: 0 1rem;
    font-size: 0.7rem;
  }

  .email-bar button span {
    display: none;
  }

  .consent {
    align-items: flex-start;
    padding-inline: 0.4rem;
    text-align: left;
  }

  .mockup {
    opacity: 0.27;
  }

  .mockup-a {
    width: 170px;
    top: 11%;
    left: -70px;
  }

  .mockup-b {
    width: 120px;
    bottom: 7%;
    left: 18%;
    opacity: 0.17;
  }

  .mockup-c {
    width: 135px;
    top: auto;
    right: -28px;
    bottom: -3%;
  }

  .mockup-d {
    width: 105px;
    top: -3%;
    left: 39%;
    opacity: 0.16;
  }

  .mockup-e {
    width: 115px;
    right: 20%;
    bottom: 5%;
    opacity: 0.17;
  }

  .mockup-f {
    width: 120px;
    left: -35px;
    bottom: 2%;
    opacity: 0.22;
  }

  .mockup-g {
    width: 168px;
    height: 390px;
    top: 10%;
    right: 2px;
    bottom: auto;
    opacity: 0.31;
  }

  footer span:first-child {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translateX(-50%);
  }
}

@media (max-width: 430px) {
  .email-bar {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 24px;
  }

  .email-bar button {
    grid-column: 1 / -1;
    min-height: 50px;
    margin: 0 0 0.1rem -0.65rem;
    justify-content: center;
  }
}

@media (max-height: 690px) and (min-width: 761px) {
  .signup {
    transform: scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
