/* Alternity — eerie, dystopian, space-meets-cyber.
   Deep-space page with a live canvas of light pulses travelling a network,
   distant stars behind, the glowing-A logo up top, and rounded pill links. */

:root {
  --bg: #05070d;
  --fg: #eef2f8;
  --muted: #8b94a8;
  --line: rgba(255, 255, 255, 0.16);
  --pill: rgba(255, 255, 255, 0.045);
  --pill-hover: rgba(255, 255, 255, 0.11);
  --glow: rgba(175, 205, 255, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg) url('images/milky-way.jpg') center / cover no-repeat fixed;
  color: var(--fg);
  font-family: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Dark veil over the photo so the circuit + text stay legible. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.6);
  z-index: 0;
  pointer-events: none;
}

/* Full-screen circuit canvas (transparent — floats over the photo). */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 20px 56px;
  width: min(100% - 32px, 30rem);
  margin: 0 auto;
  text-align: center;
}

.logo {
  width: min(58vw, 210px);
  height: min(58vw, 210px);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(150, 190, 255, 0.14), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.welcome {
  margin: 0;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em; /* balance the trailing letter-spacing */
  color: #fff;
  text-shadow: 0 0 18px rgba(180, 210, 255, 0.35);
}

/* Pill links */
.menu {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--pill);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.pill:hover,
.pill:focus-visible {
  background: var(--pill-hover);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(160, 200, 255, 0.2);
  outline: none;
}
.pill .glyph { opacity: 0.8; font-size: 0.9em; }

/* The future-message pill gets a touch more presence. */
.pill.feature {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

/* Footer nav (cross-page link) */
.nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover { color: var(--fg); }

@media (max-width: 540px) {
  .welcome { font-size: 1.25rem; letter-spacing: 0.28em; text-indent: 0.28em; }
}

/* Privacy policy link, deliberately quiet at the foot of the page. */
.legal {
  margin-top: 26px;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.legal a:hover { color: var(--fg); }
