:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --white: #f8fafc;
  --white-soft: rgba(248, 250, 252, 0.72);
  --white-faint: rgba(248, 250, 252, 0.42);
  --line: rgba(248, 250, 252, 0.18);
  --ok: #86efac;
  --danger: #fda4af;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: 4.5rem;
}

.center {
  width: min(100%, 36rem);
  text-align: center;
}

.title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--white);
  animation: rise 0.9s ease both;
}

.title-line {
  display: block;
}

.lede {
  margin: 1.35rem auto 1.85rem;
  max-width: 26rem;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--white-soft);
  animation: rise 0.9s ease 0.1s both;
}

.waitlist {
  animation: rise 0.9s ease 0.2s both;
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.field input {
  flex: 1 1 14rem;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.35);
  color: var(--white);
  border-radius: 0;
  padding: 0.95rem 1.05rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: var(--white-faint);
}

.field input:focus {
  border-color: rgba(248, 250, 252, 0.55);
  background: rgba(15, 23, 42, 0.55);
}

.field button {
  flex: 0 0 auto;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.field button:hover:not(:disabled) {
  background: transparent;
  color: var(--white);
}

.field button:active:not(:disabled) {
  transform: translateY(1px);
}

.field button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 1.35em;
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--white-soft);
}

.status.is-ok {
  color: var(--ok);
}

.status.is-error {
  color: var(--danger);
}

.status .code {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
}

.footer-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white-faint);
  animation: fade 0.9s ease 0.28s both;
}

.to-shop {
  position: fixed;
  top: 50%;
  right: clamp(0.75rem, 3vw, 2rem);
  z-index: 5;
  width: clamp(3.2rem, 8vw, 4.5rem);
  height: clamp(3.2rem, 8vw, 4.5rem);
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: fade 0.9s ease 0.35s both;
}

.to-shop svg {
  width: 100%;
  height: 100%;
}

.to-shop:hover {
  transform: translateY(-50%) translateX(4px);
  opacity: 0.88;
}

.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;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .field button {
    width: 100%;
  }
}
