:root {
  --bg: #0e1220;
  --bg-accent: #1a2138;
  --text: #e8ebf4;
  --muted: #9aa3b8;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.15);
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at 50% -20%, var(--bg-accent), var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  text-align: center;
  padding: 2rem;
}

main {
  max-width: 40rem;
  animation: fade-in 0.9s ease-out both;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 .cor {
  color: #d1edff;
}

h1 .vitas {
  color: #86e7e2;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

p[lang="fr"] {
  /* font-style: italic; */
  /* color: #7f8aa3; */
  margin-bottom: 2.5rem;
}

.gear {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: spin 32s linear infinite;
}

.progress {
  width: min(20rem, 100%);
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8fb3ff);
  border-radius: 999px;
  animation: slide 4.4s ease-in-out infinite;
}

.contact {
  margin-top: 2.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact a:hover,
.contact a:focus {
  border-bottom-color: var(--accent);
}

footer {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .gear, .progress-bar, main { animation: none; }
}
