:root {
  --bg: #101a41;
  --text: #eef0fb;
  --muted: #7281df;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.logo-wrap {
  width: min(90%, 560px);
  animation: logo-float 6s ease-in-out 2.3s infinite;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin: 1.75rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  letter-spacing: .02em;
  opacity: 0;
  animation: tagline-in .6s ease-out 2.1s forwards;
}

.spark-icon {
  width: 1.1em;
  height: 1.1em;
  fill: #afb9f1;
  animation: spark-pulse 2.4s ease-in-out 2.7s infinite;
}

@keyframes tagline-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes spark-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.15); }
}

.site-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: .8rem;
  color: rgba(238, 240, 251, 0.5);
}

@media (max-width: 600px) {
  .hero {
    padding: 1rem .75rem;
  }

  .logo-wrap {
    width: min(100%, 480px);
  }

  .tagline {
    margin-top: 1.25rem;
  }

  .site-footer {
    padding: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap { animation: none; }
  .tagline { animation: none; opacity: 1; }
  .spark-icon { animation: none; }
}
