@font-face {
  font-family: "Perfectly Nineties";
  src: url("./fonts/PerfectlyNineties-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Perfectly Nineties Italic";
  src: url("./fonts/PerfectlyNineties-RegularItalic.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

:root {
  --page-bg: #f8f6f2;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.5);
  --card-bg: rgba(255, 255, 255, 0.25);
  --card-border: rgba(0, 0, 0, 0.1);
  --input-bg: #ffffff;
  --button-bg: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.top-section {
  width: 100%;
  max-width: 1280px;
  padding-top: 64px;
}

.brand {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  font-family: "Perfectly Nineties", "Times New Roman", Georgia, serif;
  font-size: 32px;
  line-height: 1;
  white-space: pre-line;
}

.hero-title {
  margin: 0 auto;
  width: 608px;
  text-align: center;
  font-family: "Perfectly Nineties", "Times New Roman", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
}

.hero-title em {
  font-family: "Perfectly Nineties Italic", "Perfectly Nineties", "Times New Roman", Georgia, serif;
  font-style: normal;
}

.waitlist-card {
  margin: 28px auto 0;
  width: 360px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  background: var(--card-bg);
}

.waitlist-default {
  width: 100%;
}

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

.waitlist-input {
  height: 46px;
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 8px 16px;
  background: var(--input-bg);
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.waitlist-card.is-active .waitlist-input {
  border-color: rgba(0, 0, 0, 0.25);
  color: #000000;
}

.waitlist-button {
  height: 44px;
  width: 100%;
  border: none;
  border-radius: 32px;
  background: var(--button-bg);
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
}

.waitlist-card.is-ready .waitlist-button {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.waitlist-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.joined {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.joined-avatars {
  width: 144px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joined-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--page-bg);
}

.joined-avatar + .joined-avatar {
  margin-left: -8px;
}

.joined-text {
  margin: 0;
  font-size: 14px;
  line-height: 1;
}

.waitlist-success {
  width: 100%;
  min-height: 180px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.waitlist-card.is-success .waitlist-default {
  display: none;
}

.waitlist-card.is-success .waitlist-success {
  display: flex;
}

.success-icon {
  position: relative;
  width: 64px;
  height: 69px;
}

.success-icon-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 34.49px;
  height: 50.79px;
}

.success-icon-front {
  position: absolute;
  top: 31.08px;
  left: 18.56px;
  width: 45.44px;
  height: 37.48px;
}

.success-text {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #000000;
}

.bottom-art {
  width: 100%;
  max-width: 1280px;
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.makers-image-wrap {
  width: min(1280px, 100%);
  height: 332px;
  overflow: hidden;
}

.makers-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.launching {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .hero-title {
    width: min(92vw, 608px);
    font-size: clamp(44px, 7vw, 64px);
    line-height: 1;
  }

  .waitlist-card {
    width: min(92vw, 360px);
  }

  .makers-image-wrap {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .top-section {
    padding-top: 120px;
  }

  .brand {
    font-size: 26px;
    line-height: 0.95;
  }

  .hero-title {
    width: min(90vw, 420px);
    font-size: clamp(34px, 11vw, 50px);
  }

  .waitlist-card {
    margin-top: 22px;
    border-radius: 28px;
  }

  .waitlist-input,
  .waitlist-button {
    font-size: 16px;
  }

  .makers-image-wrap {
    height: 230px;
  }

  .launching {
    margin-top: 16px;
  }
}
