/* ---------- Design tokens ---------- */
:root {
  --c-grad-1: #6b46c1;
  --c-grad-2: #ec4899;
  --c-grad-3: #f97316;

  --c-text: #ffffff;
  --c-text-muted: rgba(255, 255, 255, 0.72);
  --c-accent: #fcd34d;

  --c-glass: rgba(255, 255, 255, 0.14);
  --c-glass-border: rgba(255, 255, 255, 0.28);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --inset: clamp(1rem, 3vw, 2rem);
  --stack-gap: clamp(1rem, 3vh, 2.5rem);
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--c-text);
  background: linear-gradient(
    135deg,
    var(--c-grad-1),
    var(--c-grad-2),
    var(--c-grad-3),
    var(--c-grad-2),
    var(--c-grad-1)
  );
  background-size: 240% 240%;
  animation: gradient-shift 18s ease-in-out infinite;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- Page layout ---------- */
.site-header {
  position: fixed;
  top: var(--inset);
  left: var(--inset);
  z-index: 3;
}

.monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--c-text);
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--inset) * 3) var(--inset);
  text-align: center;
  gap: var(--stack-gap);
}

.site-footer {
  position: fixed;
  bottom: var(--inset);
  right: var(--inset);
  z-index: 3;
  color: var(--c-text-muted);
  font-size: 0.8rem;
}

/* ---------- Typography ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--c-text-muted);
  max-width: 28ch;
}

/* ---------- Contrast vignette ---------- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

/* ---------- Floating shapes ---------- */
.shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
  opacity: 0.18;
  color: #ffffff;
  animation: float 18s ease-in-out infinite;
  will-change: transform;
}

.shape--circle {
  width: 14vmin;
  height: 14vmin;
  border-radius: 50%;
  background: #ffffff;
  top: 12%;
  left: 8%;
  animation-duration: 22s;
}

.shape--triangle {
  width: 0;
  height: 0;
  border-left: 7vmin solid transparent;
  border-right: 7vmin solid transparent;
  border-bottom: 12vmin solid #ffffff;
  top: 18%;
  right: 10%;
  animation-duration: 16s;
  animation-delay: -4s;
}

.shape--square {
  width: 10vmin;
  height: 10vmin;
  background: #ffffff;
  bottom: 14%;
  left: 14%;
  transform: rotate(12deg);
  animation-duration: 20s;
  animation-delay: -8s;
}

.shape--star {
  font-size: 12vmin;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.28;
  top: 60%;
  right: 16%;
  animation-duration: 24s;
  animation-delay: -2s;
}

.shape--blob {
  width: 18vmin;
  height: 18vmin;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: #ffffff;
  bottom: 8%;
  right: 6%;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-24px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* ---------- Status badge ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
}

.status__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.7);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.status__loader {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.15rem;
}

.status__loader span {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: pulse-loader 1.2s ease-in-out infinite;
}

.status__loader span:nth-child(1) {
  animation-delay: 0s;
}
.status__loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.status__loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.6;
  }
}

@keyframes pulse-loader {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ---------- Entrance animation ---------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wordmark,
.tagline,
.status {
  opacity: 0;
  animation: rise-in 0.6s ease-out forwards;
}

.wordmark {
  animation-delay: 0.1s;
}
.tagline {
  animation-delay: 0.25s;
}
.status {
  animation-delay: 0.4s;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background-position: 0% 50%;
  }

  .shape,
  .status__dot,
  .status__loader span {
    animation: none;
  }

  .wordmark,
  .tagline,
  .status {
    animation-duration: 0.001s;
    animation-delay: 0s;
    opacity: 1;
    transform: none;
  }
}
