:root {
  --bg: #0d0d12;
  --fg: #f4f3ef;
  --muted: rgba(244, 243, 239, 0.65);
  --c1: #3b2a6b;
  --c2: #0f4c5c;
  --c3: #6b2a4a;
  --duration: 28s;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- Fons amb degradat animat ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px) saturate(120%);
}

.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}

.blob--1 {
  background: radial-gradient(circle, var(--c1) 0%, transparent 65%);
  top: -25vmax; left: -20vmax;
  animation: drift-1 var(--duration) ease-in-out infinite alternate;
}
.blob--2 {
  background: radial-gradient(circle, var(--c2) 0%, transparent 65%);
  bottom: -30vmax; right: -20vmax;
  animation: drift-2 calc(var(--duration) * 1.2) ease-in-out infinite alternate;
}
.blob--3 {
  background: radial-gradient(circle, var(--c3) 0%, transparent 65%);
  top: 20%; left: 35%;
  opacity: 0.4;
  animation: drift-3 calc(var(--duration) * 0.9) ease-in-out infinite alternate;
}

@keyframes drift-1 {
  to { transform: translate(25vw, 20vh) scale(1.15); }
}
@keyframes drift-2 {
  to { transform: translate(-30vw, -15vh) scale(0.9); }
}
@keyframes drift-3 {
  to { transform: translate(-20vw, 15vh) scale(1.2); }
}

/* Gra subtil per evitar bandes de color */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Contingut ---------- */
.hero {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.logo { margin: 0; line-height: 0; }

.logo img {
  width: min(360px, 72vw);
  height: auto;
}

.contact {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact:hover,
.contact:focus-visible {
  color: var(--fg);
  border-color: currentColor;
  outline: none;
}

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