@font-face {
  font-family: Satoshi;
  src: url("assets/Satoshi-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d0d10;
  --silver-pearl: linear-gradient(180deg, #89a9d0, #b3c9e5 42%, #dbe6f6 54%, #94b3d8);
}

body {
  margin: 0;
  background: var(--background);
  font-family: Satoshi, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  display: grid;
  grid-template-rows: 0.8fr auto 1fr;
  justify-items: center;
  text-align: center;
}

.wordmark {
  grid-row: 2;
  position: relative;
  margin: 0;
  color: #d4e6fa;
  font-size: clamp(3rem, 24vw, 12rem);
  font-size: clamp(3rem, min(24vw, 27svh), 12rem);
  font-weight: 750;
  letter-spacing: -0.059em;
  line-height: 1;
}

.wordmark-final {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
}

.wordmark-intro {
  display: block;
  visibility: hidden;
}

.intro-dot {
  position: absolute;
  top: 0;
}

.below-wordmark {
  grid-row: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-form {
  width: min(100%, 23rem);
  margin: clamp(0.75rem, 2vw, 1.5rem) 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.waitlist-field {
  display: flex;
  overflow: hidden;
  border: 1px solid #666674;
  border-radius: 0.625rem;
  background: #17171d;
}

.waitlist-field:focus-within {
  outline: 2px solid #b3c9e5;
  outline-offset: 2px;
}

.waitlist-field input,
.waitlist-field button {
  min-height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
}

.waitlist-field input {
  flex: 1;
  min-width: 0;
  padding-inline: 0.875rem;
  outline: none;
  color: #d4e6fa;
}

.waitlist-field input::placeholder {
  color: #aaa9b3;
  opacity: 1;
}

.waitlist-field button {
  flex: 0 0 44px;
  padding: 0;
  border-inline-start: 1px solid #666674;
  color: #aaa9b3;
  font-size: 1.25rem;
}

.waitlist-form p,
#waitlist-notice {
  margin: 0.5rem 0 0;
  color: #aaa9b3;
  font-size: 0.875rem;
}

#waitlist-purpose {
  font-size: 0.8125rem;
}

.coming-soon-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#waitlist-notice {
  margin-top: 0;
}

#waitlist-notice a {
  color: #d4e6fa;
}

.waitlist-privacy {
  display: block;
  width: min(100%, 42rem);
  margin-inline: auto;
  padding: 2rem 1rem;
  text-align: start;
  line-height: 1.6;
  color: #e3e4ec;
}

.waitlist-privacy a {
  color: #b3c9e5;
}

#waitlist-feedback:empty {
  margin: 0;
}

#waitlist-feedback[data-error] {
  color: #ffb4b4;
}

#sound {
  min-height: 44px;
  padding-block: 0.5rem 0;
  padding-inline: 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #aaa9b3;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

#sound:hover,
#sound:focus-visible {
  color: #d4e6fa;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#sound:focus-visible {
  outline: 2px solid #b3c9e5;
}

.audio-status {
  max-width: 16rem;
  color: #aaa9b3;
  font-size: 0.8125rem;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark-final,
  .intro-letters,
  .intro-dot {
    background: var(--silver-pearl) 0 0 / 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  [data-reveal] .wordmark-intro {
    animation: reveal-intro 3s step-end both;
  }

  [data-reveal] .intro-letters {
    display: block;
    animation: reveal-letters 3s ease-in-out both;
  }

  [data-reveal] .intro-dot {
    animation: reveal-dot 3s ease-in-out both;
  }

  [data-reveal] .wordmark-final {
    animation: reveal-final 3s step-end both;
  }

  [data-reveal] .waitlist-form {
    animation: reveal-waitlist 0.9s ease-out 3.15s both;
  }

  @supports (background-clip: text) or (-webkit-background-clip: text) {
    [data-reveal] .wordmark-final {
      background-image:
        linear-gradient(
          110deg,
          transparent 28%,
          #d7eaffaa 39%,
          #f3f9fff2 44%,
          #fff 47% 55%,
          #eaf5ffda 61%,
          transparent 72%
        ),
        var(--silver-pearl);
      background-size: 180% 100%, 100% 100%;
      background-position: 150% 0, 0 0;
      animation: reveal-final 3s step-end both, logo-shimmer 6.5s linear 3s infinite;
    }
  }
}

@keyframes logo-shimmer {
  to { background-position: -50% 0, 0 0; }
}

@keyframes reveal-intro {
  from { visibility: visible; }
  to { visibility: hidden; }
}

@keyframes reveal-final {
  from { visibility: hidden; }
  to { visibility: visible; }
}

@keyframes reveal-letters {
  0%, 59% { opacity: 0; clip-path: inset(0 52% 0 0); }
  100% { opacity: 1; clip-path: inset(0); }
}

@keyframes reveal-dot {
  0%, 19%, 23%, 39%, 43%, 59% { left: 50%; transform: translateX(-50%) scale(1); }
  10%, 30%, 50% { left: 50%; transform: translateX(-50%) scale(1.19); }
  100% { left: 100%; transform: translateX(0) scale(1); }
}

@keyframes reveal-waitlist {
  from { visibility: hidden; opacity: 0; }
  to { visibility: visible; opacity: 1; }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  #sound {
    display: none;
  }
}

@media (forced-colors: active) {
  .wordmark-final {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }

  .waitlist-field:focus-within {
    outline-color: Highlight;
  }
}
