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

:root {
  --bg-1: #0b1220;
  --bg-2: #11203a;
  --text: #dce6f2;
  --text-soft: rgba(220, 230, 242, 0.62);
  --text-faint: rgba(220, 230, 242, 0.38);
  --accent: #8fb8d8;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2), #0d1a2e, var(--bg-1));
  background-size: 300% 300%;
  animation: drift 30s ease-in-out infinite;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@keyframes drift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

/* ---------- canvas particelle ---------- */
#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- aurore morbide ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; filter: blur(90px); pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: float 24s ease-in-out infinite;
}

.blob-1 {
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, rgba(78, 132, 196, 0.5), transparent 70%);
  top: -12%; left: -8%;
}

.blob-2 {
  width: 38vmax; height: 38vmax;
  background: radial-gradient(circle, rgba(120, 96, 180, 0.4), transparent 70%);
  bottom: -15%; right: -5%;
  animation-delay: -8s;
  animation-duration: 30s;
}

.blob-3 {
  width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, rgba(70, 160, 170, 0.35), transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -16s;
  animation-duration: 36s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(4vmax, -3vmax) scale(1.08); }
  66%      { transform: translate(-3vmax, 3vmax) scale(0.95); }
}

/* ---------- contenuto ---------- */
.content { position: relative; z-index: 1; padding: 0 1.5rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-top: 1.2rem;
  animation: breathe 7s ease-in-out infinite;
}

/* respiro lento del titolo */
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.015); }
}

.divider {
  width: 64px;
  height: 1px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.subtitle {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 200;
  line-height: 2;
  color: var(--text-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

.status {
  margin-top: 2.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 0 0 rgba(143, 184, 216, 0.4); }
  50%      { opacity: 1;   box-shadow: 0 0 12px 2px rgba(143, 184, 216, 0.25); }
}

/* ---------- footer ---------- */
.footer {
  position: fixed;
  bottom: 1.6rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ---------- comparsa graduale ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 2.2s ease forwards;
  animation-delay: var(--d, 0s);
}

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

/* il titolo ha due animazioni: comparsa + respiro */
.title.reveal {
  animation: reveal 2.2s ease forwards, breathe 7s ease-in-out 2.8s infinite;
}

/* ---------- accessibilità ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
