/* ============================================================
   THE MAI EXPERIENCE — Coming Soon
   Tokens mirrored from the approved brand identity guide (§15/§16)
   via the main site's src/app/globals.css — editorial luxe, warm
   ivory ground, ink typography, Creative Plum authority on a dark
   stage. Built standalone for this isolated preview project.
   ============================================================ */

:root {
  --plum: #a5228f;
  --chartreuse: #c6c22e;
  --teal: #13ac96;
  --coastal: #4c81a4;
  --orchid: #e643ca;

  --ivory: #faf7f2;
  --ink: #191722;
  --stage: #141218;
  --stage-raise: #1e1b24;
  --stage-line: #322e3b;
  --on-stage: #faf7f2;
  --on-stage-soft: #b9b4c2;
  --on-stage-faint: #847f91;

  --accent-on-dark: #e05ec7;
  --focus: #6bc4ff;
  --error: #ff8d84;
  --success: #5fe0c4;

  --font-display: "Bodoni Moda", "Didot", "Playfair Display", serif;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;

  --track-caps: 0.22em;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stage);
  color: var(--on-stage);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-on-dark);
}

::selection {
  background: var(--plum);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ atmosphere ============ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38rem 32rem at 12% 8%, rgb(165 34 143 / 0.42), transparent 62%),
    radial-gradient(34rem 30rem at 88% 18%, rgb(230 67 202 / 0.28), transparent 60%),
    radial-gradient(42rem 36rem at 50% 102%, rgb(19 172 150 / 0.22), transparent 58%);
  filter: blur(2px);
  animation: drift 26s var(--ease-out) infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.ticks {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.ticks i {
  width: 1.6rem;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

.ticks i:nth-child(1) { background: var(--plum); }
.ticks i:nth-child(2) { background: var(--chartreuse); }
.ticks i:nth-child(3) { background: var(--teal); }
.ticks i:nth-child(4) { background: var(--coastal); }
.ticks i:nth-child(5) { background: var(--orchid); }

/* ============ layout ============ */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem) clamp(5rem, 10vw, 7rem);
  text-align: center;
}

.mark {
  width: clamp(3.2rem, 7vw, 4.5rem);
  height: auto;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  opacity: 0;
  animation: rise 900ms var(--ease-out) 120ms forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--on-stage-soft);
  opacity: 0;
  animation: rise 900ms var(--ease-out) 260ms forwards;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--stage-line);
}

h1 {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 2vw + 4rem, 5.75rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  max-width: 20ch;
  text-wrap: balance;
  opacity: 0;
  animation: rise 1000ms var(--ease-out) 380ms forwards;
}

h1 em {
  font-style: italic;
  color: var(--accent-on-dark);
}

.lede {
  margin: 0 auto clamp(2.25rem, 5vw, 3rem);
  max-width: 38rem;
  font-size: clamp(1.02rem, 0.4vw + 1rem, 1.2rem);
  color: var(--on-stage-soft);
  opacity: 0;
  animation: rise 1000ms var(--ease-out) 520ms forwards;
}

.lede strong {
  color: var(--on-stage);
  font-weight: 600;
}

/* ============ notify form ============ */

.notify {
  width: 100%;
  max-width: 30rem;
  opacity: 0;
  animation: rise 1000ms var(--ease-out) 660ms forwards;
}

.notify-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem;
  background: var(--stage-raise);
  border: 1px solid var(--stage-line);
  border-radius: 999px;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.notify-form:has(input:focus-visible) {
  border-color: var(--accent-on-dark);
  box-shadow: 0 0 0 4px rgb(224 94 199 / 0.16);
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--on-stage);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 0.5rem 0.85rem 1.1rem;
}

.notify-form input[type="email"]::placeholder {
  color: var(--on-stage-faint);
}

.notify-form input[aria-invalid="true"] {
  color: var(--error);
}

.notify-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--plum);
  color: var(--ivory);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.notify-form button:hover {
  background: var(--orchid);
}

.notify-form button:active {
  transform: scale(0.97);
}

.notify-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notify-form button .spin {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid rgb(250 247 242 / 0.35);
  border-top-color: var(--ivory);
  animation: spin 650ms linear infinite;
  display: none;
}

.notify-form button[data-loading="true"] .spin {
  display: inline-block;
}

.notify-form button[data-loading="true"] .label {
  display: none;
}

.notify-status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--on-stage-soft);
}

.notify-status[data-tone="success"] { color: var(--success); }
.notify-status[data-tone="error"] { color: var(--error); }

.notify-fine {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--on-stage-faint);
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ footer ============ */

.foot {
  position: relative;
  z-index: 1;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--on-stage-faint);
}

.foot a {
  color: var(--on-stage-soft);
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent-on-dark);
}

@media (max-width: 30rem) {
  .notify-form {
    flex-direction: column;
    border-radius: 1.25rem;
    gap: 0.5rem;
  }
  .notify-form input[type="email"] {
    padding: 0.7rem 0.9rem;
    text-align: center;
  }
  .notify-form button {
    justify-content: center;
    padding: 0.85rem;
  }
}
