:root {
  --bg: #07070b;
  --fg: #ecebf5;
  --a1: #7c5cff;
  --a2: #22d3ee;
  --a3: #f472b6;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Background ---------- */

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.glow {
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 30% 20%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(35vmax 25vmax at 75% 35%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(30vmax 25vmax at 55% 80%, rgba(244, 114, 182, 0.10), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg); }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

/* The wordmark */

.wordmark {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.12em;
  font-size: clamp(4.2rem, 17vw, 14rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.digits {
  position: relative;
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--a1) 0%, var(--a2) 25%, #fff 45%, var(--a3) 65%, var(--a1) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 0 40px rgba(124, 92, 255, 0.35));
}

/* Chromatic echo behind the digits */
.digits::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34, 211, 238, 0.35);
  transform: translate(0.04em, 0.04em);
  animation: echo 6s ease-in-out infinite;
}

@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes echo {
  0%, 100% { transform: translate(0.04em, 0.04em); opacity: 0.8; }
  50% { transform: translate(-0.03em, 0.05em); opacity: 0.4; }
}

.labs {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(0.15em);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
}
.is-ready .labs { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .labs { opacity: 1; transform: none; filter: none; }
}
