:root {
  --bg: #07060d;
  --ink: #f4f1ff;
  --muted: #a49fc0;
  --cyan: #22f0ff;
  --magenta: #ff3df2;
  --violet: #7b5cff;
  --lime: #b6ff3b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-edge: rgba(255, 255, 255, 0.1);
  --sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono:
    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(
      ellipse 80% 45% at 50% 64%,
      rgba(123, 92, 255, 0.28),
      transparent 70%
    ),
    radial-gradient(
      ellipse 70% 40% at 50% 105%,
      rgba(255, 61, 242, 0.2),
      transparent 70%
    ),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 35%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}

/* Fill mode "both" applies the hidden start state only while the entrance is
   pending or playing. Where animations never run, content stays visible. */
.stage > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stage > :nth-child(1) {
  animation-delay: 0.05s;
}
.stage > :nth-child(2) {
  animation-delay: 0.15s;
}
.stage > :nth-child(3) {
  animation-delay: 0.3s;
}
.stage > :nth-child(4) {
  animation-delay: 0.42s;
}
.stage > :nth-child(5) {
  animation-delay: 0.55s;
}
.stage > :nth-child(6) {
  animation-delay: 0.68s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(182, 255, 59, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, 0.6);
  }
  70% {
    box-shadow: 0 0 0 0.6rem rgba(182, 255, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, 0);
  }
}

/* Blocky extruded wordmark: stacked hard shadows read as voxel depth. */
.logo {
  margin: 0;
  font-size: clamp(5rem, 22vw, 13.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow:
    0.012em 0.012em 0 #3b2c7c,
    0.024em 0.024em 0 #33266d,
    0.036em 0.036em 0 #2c205e,
    0.048em 0.048em 0 #251b50,
    0.06em 0.06em 0 #1e1642,
    0 0 0.35em rgba(123, 92, 255, 0.45);
}

.four {
  color: var(--cyan);
  text-shadow:
    0.012em 0.012em 0 #b02aa8,
    0.024em 0.024em 0 #96238f,
    0.036em 0.036em 0 #7c1d77,
    0.048em 0.048em 0 #62175e,
    0.06em 0.06em 0 #481146,
    0 0 0.3em rgba(34, 240, 255, 0.55);
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%,
  91%,
  94%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 0.55;
  }
  93% {
    opacity: 0.9;
  }
  93.5% {
    opacity: 0.4;
  }
}

.tagline {
  margin: 2.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  font-size: clamp(1rem, 3.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.32em;
}
.tagline .w1 {
  color: var(--cyan);
}
.tagline .w2 {
  color: var(--magenta);
}
.tagline .w3 {
  color: var(--lime);
}

.lede {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.6;
}

.countdown {
  margin-top: 2.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
}

.unit {
  min-width: clamp(4.4rem, 18vw, 7.5rem);
  padding: 1rem 0.5rem 0.8rem;
  border: 1px solid var(--panel-edge);
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px -24px rgba(123, 92, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.1rem, 8.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.num.tick {
  animation: tick 0.35s ease-out;
}

@keyframes tick {
  from {
    opacity: 0.35;
    transform: translateY(-14%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.label {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.sep {
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--mono);
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  font-weight: 700;
}

.status {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.countdown.done .num {
  color: var(--lime);
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 2;
  text-align: center;
  color: rgba(164, 159, 192, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

@media (max-width: 520px) {
  .countdown {
    gap: 0.45rem;
  }
  .sep {
    display: none;
  }
  .unit {
    padding: 0.8rem 0.25rem 0.65rem;
    border-radius: 0.8rem;
  }
  .label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
  .tagline {
    gap: 0.35rem 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage > *,
  .four,
  .pulse,
  .num.tick {
    animation: none;
    opacity: 1;
  }
}

/* Visitor counter, bottom left. Quiet on purpose: it is for the team to watch
   interest grow, not a headline for visitors. */
.visitors {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 6, 13, 0.55);
  color: rgba(164, 159, 192, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.visitors[hidden] {
  display: none;
}
.visitors-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #b6ff3b;
  box-shadow: 0 0 6px #b6ff3b;
}
#visitors-count {
  color: #f4f1ff;
  font-weight: 700;
}
/* On a phone the counter would sit on the centred footer; lift it clear. */
@media (max-width: 30rem) {
  .visitors {
    bottom: 2.6rem;
  }
}
