* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  font-family: "Quicksand", sans-serif;
  /* Adjust this to change the size of Explore, Stories, and Privacy links. */
  --header-link-size: clamp(13.5px, 1.3vw, 16.7px);
  /* Adjust this to change the spacing between Explore, Stories, and Privacy. */
  --header-link-gap: clamp(12px, 2.96vw, 43px);
  --hover-transition: 0.08s;
  --hover-transition-long: 0.12s;
  --hover-transition-fast: 0s;
  --hover-transition-long-fast: 0s;
  --hover-easing: cubic-bezier(0.3, 0.9, 0.3, 1);
  --hover-easing-fast: linear;
}

html,
body {
  width: 100%;
  height: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1b1214 url("matebg.png") center/cover no-repeat fixed;
  color: #ffffff;
}

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

.landing {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1214 url("matebg.png") center/cover no-repeat;
  overflow: hidden;
}

.landing__overlay {
  --overlay-padding-top: clamp(22px, 2.4vw, 27px);
  --overlay-padding-bottom: clamp(22px, 2.4vw, 26px);
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  padding: calc(var(--overlay-padding-top) + env(safe-area-inset-top))
    clamp(24px, 10vw, 160px)
    calc(var(--overlay-padding-bottom) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.18);
  min-height: clamp(44px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.header__brand {
  justify-self: start;
}

.header__links {
  display: flex;
  align-items: center;
  /* Use --header-link-gap in :root to adjust the distance between these links. */
  gap: var(--header-link-gap);
  justify-self: center;
  align-self: center;
  padding-top: clamp(2px, 0.3vw, 4px);
}

.header__link,
.header__login {
  text-decoration: none;
  color: inherit;
  font-size: var(--header-link-size);
}

.header__brand { /* the mate text at the top */
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  font-family: "Playfair Display";
  font-size: clamp(31px, 4.3vw, 40px);
  font-weight: 410;
  color: rgba(255, 255, 255, 0.99);
  line-height: 0.985;
  letter-spacing: -0.01em;
  text-shadow: 1.15px 1.15px 6px rgba(237, 237, 237, 0.4);
}

.header__logo {
  width: auto;
  height: 0.8em;
  max-width: clamp(34px, 3.8vw, 44px);
  object-fit: contain;
  display: block;
  transform: translateY(0.12em);
}

.header__link {
  display: inline-flex;
  align-items: center;
  font-family: "Quicksand";
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  transition: color var(--hover-transition-fast) var(--hover-easing-fast);
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: -4px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--hover-transition-fast) var(--hover-easing-fast);
  will-change: transform;
}

.header__login {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  font-family: "Quicksand";
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(85, 85, 85, 0.975);
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 246, 246, 0.92) 55%, rgba(232, 232, 232, 0.98) 100%),
    radial-gradient(140% 160% at 50% 12%, rgba(255, 255, 255, 0.96) 0%, rgba(248, 248, 248, 0.32) 55%, rgba(225, 225, 225, 0.18) 100%);
  background-clip: padding-box;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.12),
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 18px rgba(255, 255, 255, 0.1);
  transition: transform var(--hover-transition-fast) var(--hover-easing-fast),
    color var(--hover-transition-fast) var(--hover-easing-fast),
    box-shadow var(--hover-transition-long-fast) var(--hover-easing-fast),
    filter var(--hover-transition-long-fast) var(--hover-easing-fast),
    background var(--hover-transition-long-fast) var(--hover-easing-fast);
  will-change: transform, box-shadow, filter;
}

.landing__girl-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: calc(
    100% -
      (var(--overlay-padding-top) + env(safe-area-inset-top) +
        clamp(44px, 5vw, 60px) + 12px)
  );
  max-width: min(70vw, 460px);
  width: min(70vw, 460px);
  z-index: 1;
  pointer-events: none;
}

.landing__girl-wrap::before {
  content: "";
  position: absolute;
  inset: -6% 2% -2%;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(175, 175, 175, 0.62),
    rgba(165, 165, 165, 0.38) 38%,
    rgba(155, 155, 155, 0) 72%
  );
  filter: blur(24px);
  opacity: 0.9;
  z-index: 0;
}

.landing__girl {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Adjust this to change the vertical gap between the hero text and button. */
  gap: clamp(13.4px, 2vw, 18.5px);
  padding-bottom: clamp(17px, 3.7vw, 41.6px);
  padding-top: clamp(18px, 1.4vw, 22px);
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12% -8% -14%;
  background: radial-gradient(
    circle at 50% 49%,
    rgba(220, 220, 220, 0.42),
    rgba(220, 220, 220, 0) 76%
  );
  filter: blur(20px);
  opacity: 0.48;
  z-index: 0;
}

.hero__title {
  text-align: center;
  font-family: "Playfair Display";
  font-size: clamp(45px, 7.7vw, 74.3px);
  letter-spacing: -0.027em;
  word-spacing: -0.034em;
  font-weight: 410;
  /* Adjust this to change the spacing between the two hero text lines. */
  line-height: 1.04;
  color: rgba(255, 255, 255, 0.99);
  position: relative;
  z-index: 1;
}

.hero__line {
  display: block;
}

.hero__line--nowrap {
  white-space: nowrap;
}

.hero__cta {
  border: none;
  margin-top: -1px;
  border-radius: 23px;
  padding: clamp(16px, 2.4vw, 22px) clamp(20px, 3vw, 32px);
  font-family: "Playfair Display";
  font-size: clamp(14px, 2.2vw, 20px);
  letter-spacing: -0.027em;
  font-weight: 410;
  line-height: 0.95;
  color: rgba(77, 77, 77, 0.99);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 246, 246, 0.92) 55%, rgba(232, 232, 232, 0.98) 100%),
    radial-gradient(140% 160% at 50% 12%, rgba(255, 255, 255, 0.96) 0%, rgba(248, 248, 248, 0.32) 55%, rgba(225, 225, 225, 0.18) 100%);
  background-clip: padding-box;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.1),
    0 0 12px rgba(255, 255, 255, 0.75),
    0 0 22px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform var(--hover-transition) var(--hover-easing),
    box-shadow var(--hover-transition-long) var(--hover-easing),
    filter var(--hover-transition-long) var(--hover-easing),
    background var(--hover-transition-long) var(--hover-easing);
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 1;
  will-change: transform, box-shadow, filter;
}

.header__link:hover {
  color: inherit;
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__login:hover {
  color: rgba(85, 85, 85, 0.99);
  background: linear-gradient(90deg, #e6e6e6 0%, #f5f5f5 45%, #ffffff 100%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.14),
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 22px rgba(255, 255, 255, 0.5);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.hero__cta:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.98) 55%, rgba(238, 238, 238, 1) 100%),
    radial-gradient(140% 160% at 50% 12%, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.4) 55%, rgba(225, 225, 225, 0.2) 100%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.14),
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 22px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.waitlist {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  contain: layout paint style;
  content-visibility: hidden;
}

.waitlist--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  content-visibility: visible;
}

.waitlist__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.waitlist__card {
  position: relative;
  width: min(92vw, 560px);
  padding: clamp(26px, 4vw, 40px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(236, 236, 236, 0.78) 45%, rgba(219, 219, 219, 0.82) 100%),
    radial-gradient(130% 160% at 50% 5%, rgba(255, 255, 255, 0.86) 0%, rgba(238, 238, 238, 0.2) 55%, rgba(215, 215, 215, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7),
    inset 0 -6px 14px rgba(0, 0, 0, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 255, 255, 0.35);
  color: rgba(96, 96, 96, 0.92);
  text-align: left;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  will-change: transform, opacity;
}

.waitlist--open .waitlist__backdrop {
  opacity: 1;
}

.waitlist--open .waitlist__card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.12s;
}

.waitlist__close {
  position: absolute;
  top: clamp(16px, 3vw, 20px);
  right: clamp(16px, 3vw, 20px);
  border: none;
  background: transparent;
  color: rgba(96, 96, 96, 0.8);
  font-size: 28px;
  cursor: pointer;
}

.waitlist__title {
  font-family: "Playfair Display";
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(92, 92, 92, 0.95);
  margin-bottom: 12px;
}

.waitlist__subtitle {
  font-size: clamp(14.5px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.5;
  color: rgba(110, 110, 110, 0.9);
  margin-bottom: 22px;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: rgba(120, 120, 120, 0.85);
  text-transform: lowercase;
}

.waitlist__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.waitlist__input {
  border-radius: 999px;
  border: 1px solid rgba(200, 200, 200, 0.7);
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(94, 94, 94, 0.95);
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.waitlist__input::placeholder {
  color: rgba(138, 138, 138, 0.85);
}

.waitlist__submit {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Playfair Display";
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: rgba(90, 90, 90, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(236, 236, 236, 0.9) 45%, #dbdbdb 100%),
    radial-gradient(140% 160% at 50% 12%, rgba(255, 255, 255, 0.9) 0%, rgba(238, 238, 238, 0.3) 55%, rgba(215, 215, 215, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -4px 10px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform var(--hover-transition) var(--hover-easing),
    box-shadow var(--hover-transition-long) var(--hover-easing),
    filter var(--hover-transition-long) var(--hover-easing),
    background var(--hover-transition-long) var(--hover-easing);
  transform: translateZ(0);
  will-change: transform, box-shadow, filter;
}

.waitlist__submit:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 245, 245, 0.96) 45%, #efefef 100%),
    radial-gradient(140% 160% at 50% 12%, rgba(255, 255, 255, 0.98) 0%, rgba(240, 240, 240, 0.38) 55%, rgba(224, 224, 224, 0.24) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -6px 12px rgba(0, 0, 0, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.waitlist__hint {
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: rgba(110, 110, 110, 0.85);
}

@media (pointer: coarse) {
  body {
    background-attachment: scroll;
  }

  .landing {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 768px) {
  body,
  .landing {
    background: #1b1214 url("phonebg.png") center/cover no-repeat;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .landing::after {
    background: transparent;
  }

  .landing__overlay {
    --overlay-padding-top: 28px;
    --overlay-padding-bottom: 40px;
    padding: calc(28px + env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      calc(40px + env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .header {
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    gap: 12px;
    text-align: left;
    margin-inline: -3px;
  }

  .header__links {
    display: none;
  }

  .header__login {
    display: none;
  }

  .header__brand {
    justify-self: center;
    text-align: center;
    grid-column: 2;
  }

  .header__brand {
    font-size: calc(clamp(26px, 4vw, 36px) * 1.3);
  }

  .header__brand span {
    display: none;
  }

  .header__logo {
    height: clamp(34px, 7vw, 48px);
    max-width: none;
  }

  .hero__title {
    font-size: calc(clamp(46px, 7.6vw, 80px) * 1.0);
    max-width: min(92vw, 560px);
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(4px, 2.4vw, 12px);
    text-wrap: balance;
    /* Mobile: adjust this to change the spacing between the two hero text lines. */
    line-height: 1.07;
  }

  .hero__line {
    width: 100%;
    text-align: center;
  }

  .hero__line--nowrap {
    white-space: normal;
  }

  .hero {
    /* Mobile: adjust this to change the gap between the hero text and button. */
    gap: clamp(18px, 3.5vw, 24px);
    padding-bottom: clamp(54px, 11vw, 100px);
  }

  .hero__cta {
    font-size: calc(clamp(17px, 2.4vw, 23.4px) * 1.02);
    padding: calc(clamp(16px, 2.4vw, 22px) * 1.11)
      calc(clamp(20px, 3vw, 32px) * 1.1);
    /* Mobile: adjust this to change the button width. */
    min-width: min(39.6vw, 204px);
    letter-spacing: -0.035em;
  }

  .landing__girl-wrap {
    height: calc(
      100% -
        (var(--overlay-padding-top) + env(safe-area-inset-top) + 70px)
    );
    max-width: min(85vw, 520px);
    width: min(85vw, 520px);
    bottom: 0;
  }

  .waitlist__card {
    width: min(84vw, 420px);
    max-height: 86svh;
    border-radius: 26px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .waitlist__controls {
    grid-template-columns: 1fr;
  }

  .waitlist__input {
    font-size: 16px;
  }

  .waitlist__submit {
    width: 100%;
  }

  .header__login,
  .hero__cta {
    transition: transform var(--hover-transition) var(--hover-easing),
      box-shadow var(--hover-transition-long) var(--hover-easing),
      filter var(--hover-transition-long) var(--hover-easing),
      background var(--hover-transition-long) var(--hover-easing),
      color var(--hover-transition) var(--hover-easing);
    transform: translateZ(0);
  }

  .header__login:active,
  .hero__cta:active {
    transform: scale(0.96);
  }
}

@media (hover: none) {
  html,
  body {
    overscroll-behavior: none;
    touch-action: none;
  }

  .header__link:hover,
  .header__login:hover {
    color: inherit;
  }

  .hero__cta:hover {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.12),
      0 0 10px rgba(255, 255, 255, 0.65),
      0 0 18px rgba(255, 255, 255, 0.4);
    filter: none;
  }

  .waitlist__submit:hover {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85),
      inset 0 -4px 10px rgba(0, 0, 0, 0.1),
      0 10px 20px rgba(0, 0, 0, 0.15);
    filter: none;
  }

  .header__link:active,
  .header__login:active {
    color: rgba(255, 255, 255, 0.95);
  }

  .hero__cta:active {
    background: linear-gradient(90deg, #d8d8d8 0%, #f0f0f0 45%, #ffffff 100%);
    box-shadow: inset 0.2px 0.2px 3px 0.2px rgba(255, 255, 255, 0.4),
      0 0 14px 4px rgba(255, 255, 255, 0.7);
    filter: brightness(1.03);
  }

  .waitlist__submit:active {
    background: linear-gradient(90deg, #e2e2e2 0%, #f3f3f3 45%, #ffffff 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7),
      0 0 12px rgba(255, 255, 255, 0.5);
    filter: brightness(1.02);
    transform: scale(0.98);
  }
}
