:root {
  --bg: #000d1a;
  --surface: #07182a;
  --line: #1c3350;
  --text: #eaf2fa;
  --muted: #8fa3b8;
  --brand: #2d2df1;
  --brand-2: #5b5bff;
  --sky: #a5dbfb;
  --mint: #3dffb0;
}

/* Nunito (SIL OFL 1.1), self-hosted: no third-party requests */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Algorand-style dot grid, fading out from the centre */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(165, 219, 251, 0.14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Electric glow behind the wordmark */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 42%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 91, 255, 0.28) 0%, rgba(45, 45, 241, 0.1) 35%, transparent 65%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 20px;
}

.wordmark {
  width: min(440px, 78vw);
  height: auto;
  color: var(--text);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 40px rgba(91, 91, 255, 0.35));
}

/* The eyes: mint pupils that look up at the chart, and glance around */
.wordmark .pupils {
  fill: var(--mint);
  animation: look 9s ease-in-out infinite;
}

@keyframes look {
  0%, 38%, 100% { transform: translate(0, 0); }
  44%, 60% { transform: translate(-14px, 6px); }
  66%, 80% { transform: translate(0, 0); }
  84%, 92% { transform: translate(2px, 8px); }
}


h1 {
  text-wrap: balance;
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.lead {
  text-wrap: balance;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
}

.soon {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 24, 42, 0.7);
  color: var(--sky);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(61, 255, 176, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 176, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(61, 255, 176, 0); }
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  body::after, .dot, .wordmark .pupils { animation: none; }
}
