:root {
  --text: #f5f5f3;
  --muted: #ddd8d2;
  --panel: rgba(12, 12, 14, 0.45);
  --panel-border: rgba(255, 255, 255, 0.25);
  --field-bg: rgba(7, 7, 8, 0.5);
  --accent: #f7b267;
  --accent-dark: #2c1b10;
  --ok: #7ef5bc;
  --error: #ffb4a7;
  --hero-photo: url("./assets/Fashion Night Out Picture.jpg");
  --hero-photo-fallback: url("https://images.unsplash.com/photo-1521119989659-a83eee488004?auto=format&fit=crop&w=2200&q=80");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  color: var(--text);
  background: #0a0a0a;
  opacity: 0;
  animation: pageFadeIn 900ms ease-out forwards;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 1.25rem;
}

.photo-layer {
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo), var(--hero-photo-fallback);
  background-size: cover, cover;
  background-position: center center, center center;
}

.photo-base {
  filter: saturate(1.46) contrast(1.24) brightness(1.03);
  transform: scale(1.065);
  animation: settle 1.4s ease-out both;
}

.photo-red {
  mix-blend-mode: lighten;
  filter: blur(8px) saturate(1.8) contrast(1.24);
  opacity: 0.56;
  transform: translateX(18px) scale(1.075);
}

.photo-cyan {
  mix-blend-mode: lighten;
  filter: blur(8px) hue-rotate(160deg) saturate(1.8);
  opacity: 0.5;
  transform: translateX(-18px) scale(1.075);
}

.photo-green {
  mix-blend-mode: soft-light;
  filter: blur(13px) hue-rotate(80deg) saturate(1.95);
  opacity: 0.38;
  transform: translateY(10px) scale(1.1);
}

.prism-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(73, 194, 255, 0.52), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(255, 105, 180, 0.5), transparent 35%),
    radial-gradient(circle at 66% 84%, rgba(121, 255, 168, 0.4), transparent 30%),
    radial-gradient(circle at 38% 72%, rgba(255, 86, 225, 0.34), transparent 34%);
  mix-blend-mode: color-dodge;
  opacity: 0.96;
  filter: blur(5px);
}

.veil-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(4, 4, 5, 0.04), rgba(4, 4, 5, 0.46));
  backdrop-filter: blur(2px);
}

.grain-layer {
  position: absolute;
  inset: -200%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.14;
}

.content {
  position: relative;
  z-index: 2;
  width: min(860px, 94vw);
  padding: clamp(0.25rem, 1.4vw, 1rem);
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.8, 0.2, 1) both;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, auto);
  align-items: center;
  column-gap: clamp(3rem, 9vw, 7rem);
  row-gap: 1rem;
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  gap: 0.6rem;
}

.logo-mark {
  display: block;
  width: min(82px, 10vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.48));
}

.logo-word {
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.55rem);
  letter-spacing: 0.015em;
  color: #f5f5f3;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.58);
}

.title {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.55rem, 1.02rem + 1.65vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  font-weight: 600;
  color: #fbf8f3;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

.copy {
  margin: 0 0 1.15rem;
  max-width: 60ch;
  font-size: clamp(0.98rem, 0.84rem + 0.5vw, 1.1rem);
  line-height: 1.45;
  color: var(--muted);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.72);
}

.waitlist-form {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  max-width: 520px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(7, 7, 8, 0.42);
  color: var(--text);
  border-radius: 0.8rem;
  padding: 0.82rem 0.92rem;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(8px);
}

.waitlist-form input.is-typing {
  animation: whiteBorderPulse 1.2s ease-in-out infinite;
}

.waitlist-form input::placeholder {
  color: rgba(245, 245, 243, 0.7);
}

.waitlist-form input:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 255, 255, 0.2);
}

.waitlist-form button {
  position: relative;
  border: 0;
  padding: 0.82rem 1.02rem;
  border-radius: 0.8rem;
  background: transparent;
  color: #f7f1e8;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease, color 160ms ease, box-shadow 160ms ease;
  min-width: 8rem;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.waitlist-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6ed0ff, #ff77c4 50%, #7effb8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.waitlist-form button::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: calc(0.8rem - 1.5px);
  background: linear-gradient(135deg, #6ed0ff, #ff77c4 50%, #7effb8);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: -1;
  pointer-events: none;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
  color: #0d1016;
  box-shadow: 0 0 18px rgba(110, 208, 255, 0.25);
}

.waitlist-form button:hover::after {
  opacity: 1;
  transform: scale(1);
}

.waitlist-form button:active {
  transform: translateY(0);
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-status {
  min-height: 1.2rem;
  margin: 0.72rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--error);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes whiteBorderPulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 10px rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.13), 0 0 18px rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 640px) {
  .content {
    width: 100%;
    padding: 0.15rem;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
  }

  .brand-lockup {
    justify-self: start;
    gap: 0.5rem;
  }

  .logo-mark {
    width: min(68px, 22vw);
  }

  .logo-word {
    font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.35rem);
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    opacity: 1;
  }
}
