:root {
  font-family: "Courier New", Courier, monospace;
  color: #f2f2ea;
  background: #080808;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #080808;
}

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

site-header {
  display: block;
}

header,
main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 28px 0 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
}

nav a {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.site-logo {
  display: flex;
  flex: 0 0 auto;
}

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

.site-logo img {
  width: clamp(52px, 5vw, 72px);
  height: clamp(52px, 5vw, 72px);
}

main {
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  display: grid;
  align-items: center;
}

section {
  padding: clamp(64px, 9vw, 132px) 0;
}

p,
h1 {
  margin: 0;
}

p {
  margin-bottom: 18px;
  color: #8f8f86;
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: lowercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.4rem, 12vw, 13rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

#home-title {
  max-width: none;
  font-size: clamp(4.4rem, 11vw, 12.5rem);
  white-space: nowrap;
}

.wayoni-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 390px);
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}

.wayoni-copy {
  min-width: 0;
}

.wayoni-copy h1 {
  max-width: none;
  white-space: nowrap;
}

.wayoni-title-group {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 100%;
}

.wayoni-title-lock {
  display: grid;
  justify-items: start;
  width: max-content;
  max-width: 100%;
}

.wayoni-title-row {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.wayoni-title-row h1 {
  max-width: none;
}

.wayoni-status {
  position: absolute;
  right: calc(-1 * clamp(18px, 2.2vw, 30px));
  top: clamp(8px, 1.4vw, 18px);
  width: clamp(10px, 1.2vw, 16px);
  height: clamp(10px, 1.2vw, 16px);
  border-radius: 50%;
  background: #48ff7b;
  box-shadow:
    0 0 12px rgba(72, 255, 123, 0.88),
    0 0 28px rgba(72, 255, 123, 0.36);
}

.wayoni-stack {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  min-height: clamp(34px, 3.2vw, 48px);
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.wayoni-stack img {
  width: clamp(32px, 3vw, 46px);
  height: clamp(32px, 3vw, 46px);
  object-fit: contain;
}

.wayoni-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  justify-self: stretch;
  width: calc(100% - clamp(12px, 1.3vw, 18px));
  margin-top: clamp(24px, 4vw, 42px);
}

.wayoni-slogan {
  display: block;
  min-width: 0;
  width: 100%;
  color: #f2f2ea;
  font-size: clamp(1.02rem, 1.56vw, 1.45rem);
  font-weight: 900;
  line-height: 1;
  text-align: justify;
  text-align-last: justify;
  text-transform: lowercase;
  white-space: nowrap;
}

.wayoni-description-block {
  justify-self: start;
  width: calc(100% + clamp(32px, 7vw, 104px));
  margin-top: clamp(24px, 3vw, 40px);
}

.wayoni-description {
  max-width: none;
  margin: 0;
  color: #b8b8ad;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
}

.wayoni-description + .wayoni-description {
  margin-top: clamp(14px, 1.8vw, 22px);
}

.waitlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 214px;
  padding: 0 28px;
  border: 2px solid #ffb14a;
  border-radius: 8px;
  background: #ff7a1a;
  box-shadow:
    0 0 18px rgba(255, 122, 26, 0.75),
    0 0 42px rgba(255, 122, 26, 0.35);
  color: #080808;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.wayoni-side {
  display: grid;
  justify-items: end;
  justify-self: end;
  min-width: 0;
  width: 100%;
}

.waitlist-button:hover,
.waitlist-button:focus-visible {
  background: #ff9a2f;
  box-shadow:
    0 0 24px rgba(255, 154, 47, 0.9),
    0 0 58px rgba(255, 122, 26, 0.48);
}

.wayoni-mascot {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(44px, 5vw, 68px) 0 0;
}

.wayoni-mascot img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 540px);
  object-fit: contain;
}

.wayoni-mascot figcaption {
  position: absolute;
  left: 50%;
  top: clamp(16px, 2vw, 24px);
  color: #8f8f86;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.waitlist-modal:target {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.waitlist-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.waitlist-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: clamp(26px, 4vw, 40px);
  border: 2px solid rgba(255, 177, 74, 0.72);
  border-radius: 8px;
  background: #10100e;
  box-shadow:
    0 0 36px rgba(255, 122, 26, 0.38),
    0 24px 80px rgba(0, 0, 0, 0.6);
}

.waitlist-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #f2f2ea;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.waitlist-dialog h2 {
  margin: 0 0 24px;
  color: #f2f2ea;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.join-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
}

.join-copy h1 {
  max-width: none;
}

.join-form {
  justify-self: end;
  width: min(100%, 460px);
  padding: clamp(26px, 4vw, 40px);
  border: 2px solid rgba(255, 177, 74, 0.72);
  border-radius: 8px;
  background: #10100e;
  box-shadow:
    0 0 36px rgba(255, 122, 26, 0.38),
    0 24px 80px rgba(0, 0, 0, 0.6);
}

.application-form {
  display: grid;
  gap: 18px;
}

.application-form label {
  display: grid;
  gap: 8px;
  color: #8f8f86;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  border: 2px solid #2a2925;
  border-radius: 8px;
  background: #080808;
  color: #f2f2ea;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
  padding: 14px 16px;
}

.application-form select {
  appearance: none;
}

.application-form textarea {
  resize: vertical;
}

.application-form .consent-group {
  display: grid;
  gap: 8px;
}

.application-form .consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #f2f2ea;
  font-size: 0.86rem;
  line-height: 1.35;
  text-transform: none;
}

.application-form .consent-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  accent-color: #ff7a1a;
}

.field_errors {
  min-height: 1em;
  color: #ffb14a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.field-errors {
  display: block;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: #ffb14a;
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.32);
}

.application-form button {
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #ff7a1a;
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.48);
  color: #080808;
  cursor: default;
  font: inherit;
  font-weight: 900;
  text-transform: lowercase;
}

.waitlist-form button:hover,
.waitlist-form button:focus-visible {
  background: #ff9a2f;
  box-shadow:
    0 0 24px rgba(255, 154, 47, 0.9),
    0 0 58px rgba(255, 122, 26, 0.48);
}

@media (max-width: 860px) {
  header {
    align-items: flex-start;
    gap: 28px;
  }

  nav {
    max-width: 220px;
  }

  .wayoni-hero {
    grid-template-columns: minmax(0, 1fr) clamp(180px, 30vw, 260px);
    align-items: center;
  }

  .join-hero {
    grid-template-columns: 1fr;
  }

  .join-form {
    justify-self: start;
  }

  .waitlist-button {
    min-height: 50px;
    padding: 0 22px;
  }
}

@media (max-width: 560px) {
  header,
  main {
    width: min(100% - 32px, 1440px);
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 7rem);
  }

  #home-title {
    font-size: clamp(2.6rem, 13vw, 5.25rem);
  }

  .wayoni-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wayoni-actions {
    gap: 10px;
  }

  .wayoni-slogan {
    font-size: clamp(0.62rem, 2.4vw, 0.86rem);
  }

  .wayoni-description {
    max-width: 100%;
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
  }

  .wayoni-mascot {
    width: min(78vw, 320px);
    padding-top: 56px;
  }

  .wayoni-side {
    justify-items: center;
  }
}
