:root {
  --pacto-purple: #5a2d82;
  --pacto-aqua: #39c0ba;
  --text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pacto-purple), var(--pacto-aqua));
  background-size: 200% 200%;
  animation: gradientShift 18s ease-in-out infinite;
}

/* Animated background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: float 22s ease-in-out infinite;
}

.blob.purple { background: #7a45bd; }
.blob.aqua { background: #49e0d8; }

.blob.one { width: 380px; height: 380px; left: -120px; top: -80px; animation-delay: 0s; }
.blob.two { width: 420px; height: 420px; right: -140px; bottom: -120px; animation-delay: 6s; }
.blob.three { width: 300px; height: 300px; left: 60%; top: 10%; animation-delay: 12s; }

.overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(680px, 92vw);
  padding: clamp(20px, 4vw, 40px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
  animation: fadeInUp 900ms ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

.logo {
  display: inline-grid;
  place-items: center;
  margin: 0 auto 18px;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 300ms ease;
}

.logo:hover {
  transform: translateY(-2px) scale(1.02);
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.logo-fallback {
  width: 58px;
  height: 58px;
  display: none;
}

.no-logo .logo-fallback {
  display: block;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

p.lead {
  margin: 0 auto 22px;
  max-width: 48ch;
  font-size: clamp(16px, 2.6vw, 18px);
  opacity: 0.95;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: #ffffff;
  color: var(--pacto-purple);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.links {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.9;
}

.links a {
  color: #fff;
  opacity: 0.85;
  text-underline-offset: 3px;
}

.links a:hover {
  opacity: 1;
}

footer {
  position: fixed;
  inset-inline: 0;
  bottom: 14px;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
  z-index: 2;
}

/* Keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.04); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
