@font-face {
  font-family: "Alien Encounters";
  src: url("assets/font/alien_encounters/Alien-Encounters-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #f8f8f8;
  --accent: #f8f8f8;
  --muted: #2a2a2a;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
}

.page {
  width: min(640px, 100%);
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 32px;
}

.brand {
  width: 100%;
  text-align: center;
  font-family: "Alien Encounters", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


.cassette-wrap {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1365 / 768;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.cassette-open,
.cassette-closed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cassette-closed {
  opacity: 0;
  transition: opacity 90ms ease;
  pointer-events: none;
}

.cassette-closed.visible {
  opacity: 1;
}

.tagline {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 48px;
}

.tagline + .waitlist {
  margin-top: 50px;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 36px;
  margin-left: 4px;
  background: #d1b3cf;
  animation: blink-cursor 1s steps(2, start) infinite;
}

@keyframes blink-cursor {
  to {
    visibility: hidden;
  }
}

.waitlist {
  width: min(520px, 100%);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-height: 36px;
}

.waitlist .contact-link { order: 0; }
.waitlist input { order: 1; }
.waitlist .waitlist-btn { order: 2; }

.waitlist input {
  flex: 0 0 0;
  width: 0;
  max-width: 0;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  outline: none;
  transition: border-color 140ms ease, color 140ms ease, opacity 140ms ease, width 180ms ease, max-width 180ms ease;
  opacity: 0;
  visibility: hidden;
  min-width: 0;
  overflow: hidden;
}

.waitlist input:focus {
  border-bottom-color: #fff;
  color: #fff;
}

.waitlist.active input {
  flex: 1 1 180px;
  width: 180px;
  max-width: 260px;
  padding: 10px 8px;
  opacity: 1;
  visibility: visible;
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

.waitlist.shake input {
  animation: shake 320ms ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.waitlist button {
  flex: 0 0 auto;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.52);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease, text-decoration-color 140ms ease, transform 100ms ease;
}

.waitlist button:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.waitlist button:active {
  transform: translateY(1px);
  text-decoration-color: #cfcfcf;
}

.waitlist.active .waitlist-btn {
  text-decoration: none;
}

.contact-link {
  flex: 0 0 auto;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.52);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.contact-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.waitlist.active .contact-link {
  display: none;
}

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

@media (max-width: 600px) {
  .page {
    padding: 36px 18px 48px;
  }

  .brand {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 0.1em;
  }

  .waitlist {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}
