/* ── UNDERDARK landing (root /) — self-contained front door into /chat/ ── */
html, body { height: 100%; }
body.home-body {
  margin: 0;
  background: #070611;
  color: #ece8f8;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

.home {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  isolation: isolate;
}

/* Ambient backdrop — accent pulse + vignette (matches the chat stage). */
.home::before,
.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.home::before {
  background: radial-gradient(ellipse at 50% 42%, rgba(139, 92, 246, 0.11) 0%, transparent 58%);
  animation: home-pulse 7s ease-in-out infinite;
}
.home::after {
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
}
@keyframes home-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.home__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: translateY(14px);
  opacity: 0;
  animation: home-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}
@keyframes home-rise { to { opacity: 1; transform: none; } }

.home__rune {
  color: #8b5cf6;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.45));
  animation: home-breathe 6s ease-in-out infinite;
}
@keyframes home-breathe { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }

.home__wordmark {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: #ece8f8;
}

.home__tagline {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #c8bfe0;
}
.home__tagline em {
  font-style: normal;
  color: #a78bfa;
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.home__enter {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 36px;
  border: 1px solid #8b5cf6;
  border-radius: 999px;
  background: #8b5cf6;
  color: #0b0816;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.45), 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.home__enter:hover {
  transform: translateY(-2px);
  background: #9d6dff;
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.home__enter svg { transition: transform 0.16s; }
.home__enter:hover svg { transform: translateX(3px); }

/* Trust strip — backs the privacy claim with concrete, honest facts. */
.home__trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9990b2;
}
.home__trust-item { display: inline-flex; align-items: center; gap: 7px; }
.home__trust-item svg { color: #8b5cf6; opacity: 0.85; }
.home__trust-dot { color: #3d3858; }
.home__trust a { color: #a78bfa; text-decoration: none; border-bottom: 1px solid rgba(139, 92, 246, 0.3); }
.home__trust a:hover { color: #c4b5fd; }

.home__foot {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3d3858;
}
.home__foot a { color: #6f6690; text-decoration: none; }
.home__foot a:hover { color: #9990b2; }
.home__foot span { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .home::before, .home__rune { animation: none; }
  .home__inner { animation: none; opacity: 1; transform: none; }
}
