:root {
  --bg-0: #060b14;
  --bg-1: #0c1626;
  --fg: #e7edf5;
  --muted: #7e8ba3;
  --accent: #57c7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, var(--bg-1), var(--bg-0) 70%);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow: hidden;
  position: relative;
}

.bg-waves {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(87, 199, 255, 0.10), transparent 60%),
    radial-gradient(35% 25% at 80% 70%, rgba(120, 87, 255, 0.10), transparent 60%),
    radial-gradient(30% 30% at 60% 15%, rgba(87, 255, 200, 0.06), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate;
  filter: blur(20px);
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  width: min(900px, 92vw);
}

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.6s ease;
}

h1#title {
  margin: 0.25rem 0 1.5rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-shadow: 0 0 30px rgba(87, 199, 255, 0.25);
  transition: opacity 0.6s ease;
}

.percent-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 0.5rem 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.percent {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.6s ease, text-shadow 0.6s ease;
  filter: url(#watery);
}

.percent .char {
  display: inline-block;
  will-change: transform;
}

.subtle {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 40ch;
  word-break: break-word;
  transition: opacity 0.6s ease;
}
