/* CAPi — page construction (autonome) */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-family: "Nunito", system-ui, sans-serif;
  color: #1f3a5f;
  overflow: hidden;
}

.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.logo {
  width: min(400px, 72vw);
  height: auto;
  animation: logoIn 1.1s ease-out both, logoFloat 3.2s ease-in-out 1.1s infinite;
  filter: drop-shadow(0 8px 20px rgba(31, 58, 95, 0.12));
}

.text {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f3a5f;
  animation: textIn 0.9s ease-out 0.45s both;
}

.dots {
  display: inline-block;
  width: 1.4em;
  text-align: left;
}

.dots::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
