:root {
  --marsala: #54101D;
  --marsala-deep: #3A0B14;
  --gold-light: #DDC7A2;
  --gold-medium: #C89F61;
  --gold-dark: #99704B;
  --cream: #F5EDE3;
}

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

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

body {
  font-family: "Montserrat", sans-serif;
  color: var(--cream);
  background: var(--marsala-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.backdrop__image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85) contrast(1.05);
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.backdrop__veil {
  position: absolute;
  inset: 0;
  background:
    /* halo sombre localisé, fait ressortir le logo doré juste au-dessus */
          radial-gradient(ellipse 55% 42% at 50% 28%, rgba(20, 4, 8, 0.55), transparent 72%),
          linear-gradient(180deg,
          color-mix(in srgb, var(--marsala) 38%, transparent) 0%,
          color-mix(in srgb, var(--marsala) 62%, transparent) 42%,
          color-mix(in srgb, var(--marsala-deep) 90%, transparent) 100%);
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(-1%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.brand,
.soon,
.waitlist,
.footer {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand { animation-delay: 0.15s; }
.soon { animation-delay: 0.85s; }
.waitlist { animation-delay: 1.15s; }
.footer { animation-delay: 1.4s; }

.brand__mark {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
}

.rule {
  width: 0;
  height: 1px;
  margin: 1.75rem auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold-medium), transparent);
  animation: draw 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes draw {
  to { width: min(180px, 40vw); }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.soon__label {
  margin-bottom: 1rem;
  color: var(--gold-light);
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.soon__headline {
  margin-bottom: 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

.soon__copy {
  max-width: 28rem;
  margin: 0 auto 2.25rem;
  color: rgba(245, 237, 227, 0.78);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
}

.waitlist {
  width: 100%;
  max-width: 26rem;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(200, 159, 97, 0.55);
  background: rgba(58, 11, 20, 0.55);
  color: var(--cream);
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  outline: none;
}

.waitlist__input::placeholder {
  color: rgba(245, 237, 227, 0.55);
}

.waitlist__input:focus {
  border-color: var(--gold-light);
  outline: 2px solid transparent;
}

.waitlist__btn {
  border: 0;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 40%, var(--gold-medium));
  color: var(--marsala-deep);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.waitlist__btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.waitlist__btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.waitlist__note,
.waitlist__feedback {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  line-height: 1.5;
}

.waitlist__note {
  color: rgba(245, 237, 227, 0.62);
}

.waitlist__feedback {
  min-height: 1.1rem;
  color: var(--gold-light);
}

.waitlist.is-done .waitlist__form {
  display: none;
}

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

.honeypot[hidden] {
  display: none !important;
}

.footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer__social a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__line {
  color: rgba(245, 237, 227, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 5rem) 0;
  line-height: 1.7;
}

.legal h1,
.legal h2 {
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.legal h1 {
  margin: 2rem 0 1.5rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.5rem;
}

.legal p {
  color: rgba(245, 237, 227, 0.82);
}

.legal__back {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 540px) {
  .waitlist__form {
    flex-direction: row;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__image,
  .brand,
  .rule,
  .soon,
  .waitlist,
  .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .rule {
    width: min(180px, 40vw);
  }
}
