:root {
  /* Allineati al tema "Luci di sala" dell'app (new-cult-app/src/constants/theme.ts) */
  --color-bg: #050307;       /* Colors.background */
  --color-fg: #f6eef4;       /* Colors.ink */
  --color-fg-muted: #a595a3; /* Colors.muted */
  --color-border: rgba(246, 238, 244, 0.16); /* Colors.line */

  --grape: #6e2f9c;   /* Colors.accentDeep */
  --magenta: #ff2d95; /* Colors.accent */

  /* Solo decorativi, per il gradiente di sfondo: non sono token dell'app */
  --grape-deep: #34195c;
  --pink-light: #f2c9de;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--color-bg);
  color: var(--color-fg);
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--magenta);
  color: #000000;
}

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

.mesh__image {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-image: linear-gradient(
    125deg,
    var(--grape-deep) 0%,
    var(--grape) 38%,
    var(--magenta) 68%,
    var(--pink-light) 100%
  );
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: mesh-drift 26s ease-in-out infinite alternate;
}

.mesh__blobs {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  mix-blend-mode: screen;
  opacity: 1;
  background-image:
    radial-gradient(circle at 28% 32%, rgba(110, 47, 156, 0.85) 0%, transparent 36%),
    radial-gradient(circle at 72% 26%, rgba(255, 45, 149, 0.8) 0%, transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(52, 25, 92, 0.85) 0%, transparent 36%),
    radial-gradient(circle at 24% 72%, rgba(242, 201, 222, 0.55) 0%, transparent 34%);
}

.mesh__noise {
  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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.mesh__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 17, 0.6);
}

/* Each ripple is a clipped, filtered copy of the SAME gradient+blobs that
   make up the real background — so what's visible inside the growing
   circle is the actual New Cult gradient warping like liquid, not a new
   shape drawn on top. The window expands outward from the cursor and
   fades, like a ring rippling out from a stone dropped in water. */
.mesh__ripples {
  position: absolute;
  inset: 0;
}

.ripple-warp {
  position: absolute;
  inset: 0;
  filter: url("#liquid");
  clip-path: circle(6px at var(--x, 50%) var(--y, 50%));
  animation: ripple-warp-expand 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ripple-warp .mesh__image,
.ripple-warp .mesh__blobs {
  animation: none;
}

@keyframes ripple-warp-expand {
  0% {
    clip-path: circle(6px at var(--x, 50%) var(--y, 50%));
    opacity: 1;
  }
  100% {
    clip-path: circle(340px at var(--x, 50%) var(--y, 50%));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple-warp {
    display: none;
  }
}

.mesh__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 45%, var(--color-bg) 92%);
}

@keyframes mesh-drift {
  0% {
    transform: scale(1.08) translate3d(-1%, -1%, 0);
  }
  100% {
    transform: scale(1.18) translate3d(1.5%, 1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mesh__image {
    animation: none;
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Sized only to the headline, then centered on the viewport by its own
   box — the logo is an absolutely positioned child anchored above it, so
   it never shifts where that center point lands. */
.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: clamp(1rem, 3vw, 2.25rem);
  width: auto;
  height: clamp(52px, 9vw, 104px);
  color: var(--color-fg);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.5));
}

.headline {
  display: block;
  margin: 0;
  white-space: nowrap;
  font-family: "Anton", "Impact", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: 0.01em;
  font-size: clamp(5.5rem, 22vw, 17rem);
  text-shadow:
    0 0 34px rgba(255, 45, 149, 0.6),
    0 0 68px rgba(110, 47, 156, 0.45),
    0 2px 14px rgba(0, 0, 0, 0.6);
}

.label {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  z-index: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}

@media (max-width: 600px) {
  .legal {
    position: static;
    margin-top: 3rem;
  }
}
