/* ============================================================
   Avluence — "Waiting mode" landing page
   Brand tokens from Brand Style Guide v1.1
   ============================================================ */

:root {
  /* Brand */
  --av-violet: #212145;
  --av-pink: #eb8a87;
  --av-grey: #e3e3e3;

  /* Dark theme derived surfaces */
  --av-bg: #0d0d1e;
  --av-bg-2: #212145;
  --av-fg: #f2f2f5;
  --av-fg-muted: rgba(227, 227, 227, 0.62);
  --av-line: rgba(227, 227, 227, 0.16);

  --av-font: "Maven Pro", "Helvetica Neue", Arial, sans-serif;
  --av-track-wide: 0.42em;
}

* {
  box-sizing: border-box;
}

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

body.av-body {
  background: var(--av-bg);
  color: var(--av-fg);
  font-family: var(--av-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Stage ---------- */

.av-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 1.5rem;
  isolation: isolate;
  text-align: center;
}

/* Background canvas (vector-style animation) */
.av-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Cinematic gradient + vignette layers */
.av-stage::before,
.av-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.av-stage::before {
  background:
    radial-gradient(
      120% 90% at 50% 18%,
      color-mix(in oklab, var(--av-bg-2) 78%, transparent) 0%,
      transparent 62%
    ),
    radial-gradient(
      60% 55% at 50% 108%,
      color-mix(in oklab, var(--av-pink) 22%, transparent) 0%,
      transparent 70%
    );
}

.av-stage::after {
  background: radial-gradient(
    100% 80% at 50% 50%,
    transparent 32%,
    rgba(5, 5, 14, 0.72) 100%
  );
}

.av-content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

/* ---------- Logo ---------- */

.av-logo {
  width: clamp(9rem, 22vw, 15rem);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) both,
    av-breathe 9s ease-in-out 1.6s infinite;
}

/* ---------- Type ---------- */

.av-eyebrow {
  margin: 0;
  font-size: clamp(0.6rem, 1.6vw, 0.72rem);
  font-weight: 500;
  letter-spacing: var(--av-track-wide);
  text-transform: uppercase;
  color: var(--av-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.av-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--av-pink);
  animation: av-pulse 2.4s ease-in-out infinite;
}

.av-headline {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.av-headline strong {
  font-weight: 900;
}

.av-headline em {
  font-style: normal;
  color: var(--av-pink);
}

.av-copy {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 2.1vw, 1.125rem);
  line-height: 1.65;
  color: var(--av-fg-muted);
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

/* ---------- CTA ---------- */

.av-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both;
}

.av-btn {
  --btn-fg: var(--av-violet);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--av-pink);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--av-pink) 70%, transparent);
}

.av-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -14px color-mix(in oklab, var(--av-pink) 85%, transparent);
}

.av-btn:focus-visible {
  outline: 2px solid var(--av-grey);
  outline-offset: 3px;
}

.av-btn--ghost {
  background: transparent;
  color: var(--av-fg);
  border-color: var(--av-line);
  box-shadow: none;
}

.av-btn--ghost:hover {
  border-color: color-mix(in oklab, var(--av-grey) 45%, transparent);
  background: rgba(227, 227, 227, 0.06);
  box-shadow: none;
}

.av-btn .av-ge {
  font-weight: 900;
  letter-spacing: 0;
}

/* ---------- Footer ---------- */

.av-footer {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(227, 227, 227, 0.38);
  animation: av-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.av-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.av-footer a:hover {
  color: var(--av-fg);
}

/* ---------- Motion ---------- */

@keyframes av-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes av-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.015);
  }
}

@keyframes av-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-logo,
  .av-eyebrow,
  .av-headline,
  .av-copy,
  .av-actions,
  .av-footer,
  .av-dot {
    animation: none !important;
  }
}
