:root {
  --bg: #060e0b;
  --wood: #6a4a31;
  --panel: #433d39;
  --panel-shadow: #0b0b0b;
  --control: #121b24;
  --control-accent: #253647;
  --text: #f4efe8;
  --muted: #b7ada3;
  --glow: #f0d9a7;
  --border: rgba(255, 255, 255, 0.1);
  --danger: #f2b8a6;
  --success: #d8c39a;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 323deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  font-family: "Urbanist", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("./bg.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1rem;
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 0.45px,
    transparent 0.45px
  );
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
  opacity: 0.1;
  pointer-events: none;
}

.hero {
  flex: 1;
  display: grid;
  place-items: start center;
}

.hero__content {
  --brand-slot-height: 13.5rem;
  --card-top: 12.9rem;
  width: min(90%, 35rem);
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.brand {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--brand-slot-height);
  padding-block: 1rem;
}

.brand__logo {
  position: relative;
  z-index: 1;
  width: min(7.2rem, 28vw);
  height: auto;
  filter: drop-shadow(0 1.25rem 2.25rem rgba(0, 0, 0, 0.5));
}

.waitlist-card {
  --card-radius: 2rem;
  --beam-speed: 18s;
  --beam-opacity: 0.88;
  --beam-thickness: 1px;
  position: absolute;
  top: var(--card-top);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: var(--beam-thickness);
  border-radius: var(--card-radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    0 1.75rem 5rem rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition:
    box-shadow 220ms ease,
    background 220ms ease;
}

.waitlist-card:is(:hover, :focus-within) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow:
    0 2rem 5.5rem rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.waitlist-card__beam {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--beam-opacity);
  transition: opacity 220ms ease;
}

.waitlist-card:is(:hover, :focus-within) .waitlist-card__beam {
  opacity: 1;
}

.waitlist-card__fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.06) 40%,
    rgba(0, 0, 0, 0.05) 62%,
    rgba(0, 0, 0, 1) 100%
  );
}

.waitlist-card--success .waitlist-card__fade {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 52%,
    rgba(0, 0, 0, 0.04) 68%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.waitlist-card__beam::before,
.waitlist-card__beam::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--beam-thickness) solid transparent;
  border-radius: inherit;
  background:
    linear-gradient(rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.98)) padding-box,
    conic-gradient(
        from var(--beam-angle),
        transparent 0deg,
        transparent 304deg,
        rgba(54, 74, 96, 0.08) 324deg,
        rgba(70, 95, 123, 0.22) 338deg,
        rgba(240, 217, 167, 0.96) 349deg,
        rgba(240, 217, 167, 0.7) 355deg,
        rgba(97, 73, 47, 0.28) 359deg,
        transparent 360deg
      )
      border-box;
  animation: wonderkeep-border-beam var(--beam-speed) linear infinite;
}

.waitlist-card__beam::before {
  inset: -0.5px;
  opacity: 0.28;
  filter: blur(12px);
}

.waitlist-card__beam::after {
  opacity: 0.9;
}

.waitlist-card__backlight {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  left: 0px;
  top: 0px;
}
.waitlist-card__surface {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: clamp(31rem, 72svh, 39rem);
  padding: 1.9rem 2rem clamp(10rem, 24svh, 25rem);
  border-radius: calc(var(--card-radius) - var(--beam-thickness));
  background: linear-gradient(
    180deg,
    rgba(75, 69, 64, 0.96) 0%,
    rgba(46, 41, 38, 0.92) 65%,
    rgba(12, 11, 11, 0.96) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  transition:
    box-shadow 220ms ease,
    background 220ms ease;
}

.waitlist-card__surface::before,
.waitlist-card__surface::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.waitlist-card__surface::before {
  top: -3.75rem;
  left: 50%;
  width: 84%;
  height: 15rem;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 217, 167, 0.18) 0%,
    rgba(240, 217, 167, 0.11) 28%,
    rgba(118, 101, 83, 0.07) 48%,
    transparent 74%
  );
  opacity: 0.88;
  transform: translateX(-50%);
  filter: blur(16px);
}

.waitlist-card__surface::after {
  right: -16%;
  bottom: -52%;
  width: 82%;
  height: 12rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle, rgba(0, 0, 0, 0.62), transparent 70%);
  opacity: 0.95;
}

.waitlist-card:is(:hover, :focus-within) .waitlist-card__surface {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.waitlist-card__copy,
.waitlist-card__form-area {
  position: relative;
  z-index: 1;
}

.waitlist-card__copy {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 232, 0.96);
}
#waitlist-subheading {
  margin: 2rem 0 3rem;
}

.waitlist-card__copy span {
  display: block;
}

.waitlist-form {
  display: grid;
  gap: 0.7rem;
}

.waitlist-form__row {
  display: grid;
  gap: 0.72rem;
}

.waitlist-form__input,
.waitlist-form__button {
  min-height: 3.55rem;
  border-radius: 1.15rem;
  font: inherit;
}

.waitlist-form__input {
  --input-shadow-rest:
    inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0.8rem 2.4rem rgba(0, 0, 0, 0.24);
  --input-shadow-focus:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(240, 217, 167, 0.12), 0 1rem 2.8rem rgba(0, 0, 0, 0.28);
  --input-shadow-error:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(242, 184, 166, 0.11), 0 1rem 2.8rem rgba(0, 0, 0, 0.28);
  width: 100%;
  border: 1px solid rgba(122, 139, 156, 0.18);
  background: var(--bg);
  /* background: linear-gradient(
    180deg,
    rgba(22, 33, 45, 0.98),
    rgba(17, 26, 35, 0.98)
  ); */
  color: var(--text);
  padding: 0 1.1rem;
  font-size: 1rem;
  font-weight: 400;
  box-shadow: var(--input-shadow-rest);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.waitlist-form__input::placeholder {
  color: rgba(183, 173, 163, 0.8);
}

.waitlist-form__input:hover {
  border-color: rgba(240, 217, 167, 0.16);
}

.waitlist-form__input:focus-visible {
  border-color: rgba(240, 217, 167, 0.32);
  box-shadow: var(--input-shadow-focus);
}

.waitlist-form__input[aria-invalid="true"] {
  border-color: rgba(242, 184, 166, 0.6);
  box-shadow: var(--input-shadow-error);
}

.waitlist-form__input:-webkit-autofill,
.waitlist-form__input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-rest);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-rest);
}

.waitlist-form__input:autofill,
.waitlist-form__input:autofill:hover {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-rest);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-rest);
}

.waitlist-form__input:-webkit-autofill:focus-visible {
  border-color: rgba(240, 217, 167, 0.32);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-focus);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-focus);
}

.waitlist-form__input:autofill:focus-visible {
  border-color: rgba(240, 217, 167, 0.32);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-focus);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-focus);
}

.waitlist-form__input[aria-invalid="true"]:-webkit-autofill {
  border-color: rgba(242, 184, 166, 0.6);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-error);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-error);
}

.waitlist-form__input[aria-invalid="true"]:autofill {
  border-color: rgba(242, 184, 166, 0.6);
  -webkit-box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-error);
  box-shadow:
    inset 0 0 0 1000px var(--bg),
    var(--input-shadow-error);
}

.waitlist-form__button {
  position: relative;
  border: 1px solid rgba(141, 164, 188, 0.12);
  background: #131d24;
  color: rgba(244, 239, 232, 0.96);
  padding: 0 1.35rem;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.waitlist-form__button:hover,
.waitlist-form__button:focus-visible {
  border-color: rgba(240, 217, 167, 0.18);
  background: linear-gradient(
    135deg,
    rgba(58, 79, 104, 0.98),
    rgba(38, 57, 78, 0.98)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1.1rem 2.75rem rgba(0, 0, 0, 0.32);
}

.waitlist-form__button:active {
  transform: translateY(1px);
}

.waitlist-form__button:disabled {
  cursor: progress;
  opacity: 0.88;
}

.waitlist-form__feedback {
  min-height: 1.25rem;
  margin: 0;
  padding-left: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.waitlist-form__feedback[data-state="error"] {
  color: var(--danger);
}

.waitlist-form__feedback[data-state="success"] {
  color: var(--success);
}

.waitlist-success {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0 4.5rem;
  text-align: center;
  outline: none;
}

.waitlist-success::before {
  content: "";
  position: absolute;
  inset: -2.75rem -2rem -5.5rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 217, 167, 0.18) 0%,
    rgba(240, 217, 167, 0.1) 22%,
    rgba(118, 101, 83, 0.12) 44%,
    rgba(75, 69, 64, 0.04) 62%,
    transparent 82%
  );
}

.waitlist-success__eyebrow {
  margin: 0;
  color: var(--glow);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.waitlist-success__title {
  margin: 0;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.waitlist-success__text {
  max-width: 24rem;
  margin: 0 auto;
  color: rgba(244, 239, 232, 0.82);
  font-size: 1rem;
  line-height: 1.5;
}

.footer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 239, 232, 0.78);
  font-size: 0.98rem;
  font-weight: 500;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.footer__link--email {
  flex-direction: column;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text);
}

.footer__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

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

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
}

html.js.is-ready [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 1900ms var(--ease-out);
}

html.js.is-ready [data-reveal="card"] {
  transition-delay: 1200ms;
}

@keyframes wonderkeep-border-beam {
  from {
    --beam-angle: 323deg;
  }

  to {
    --beam-angle: 683deg;
  }
}

@media (min-width: 40rem) {
  .page {
    padding: 1.75rem 1.5rem 1.25rem;
  }

  .hero__content {
    --brand-slot-height: 17rem;
    --card-top: 16.2rem;
    width: min(100%, 33rem);
    gap: 0.75rem;
  }

  .brand {
    padding-block: 1.25rem;
  }

  .brand__logo {
    width: min(6.8rem, 16.8vw);
  }

  .waitlist-card {
    --card-radius: 2.35rem;
  }

  .waitlist-card__surface {
    min-height: clamp(36rem, 78svh, 47rem);
    padding: 2.1rem 2rem clamp(13rem, 28svh, 19rem);
  }

  .waitlist-card__copy {
    margin-bottom: 1.7rem;
    font-size: 18px;
  }

  .waitlist-form__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .waitlist-form__button {
    min-width: 10.8rem;
  }

  .footer {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.25rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

@media (min-width: 64rem) {
  .page {
    padding: 2rem 1.75rem 1.25rem;
  }

  .hero__content {
    --card-top: 16.6rem;
    width: min(90%, 39rem);
  }

  .waitlist-card {
    --card-radius: 2.35rem;
  }

  .waitlist-card__surface {
    min-height: clamp(39rem, 82svh, 51rem);
    padding: 2.45rem 2.3rem clamp(15rem, 31svh, 21rem);
  }

  .waitlist-card__copy {
    margin-bottom: 2rem;
  }

  .footer {
    left: 1.75rem;
    right: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  html.js [data-reveal],
  html.js.is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
