/* landing.css — shared stylesheet for the five Night Protocol community
   landing domains. Aesthetic continuity with night-protocol.com: black
   CRT field, neon pink, IBM Plex Mono body (uppercase), Press Start 2P
   wordmark. Mobile-first responsive — these are the social-launch entry
   points and most first-testers arrive on a phone. */

:root {
  --bg: #0a0a0f;
  --pink: #ff3d7f;
  --pink-dim: #ff3d7f55;
  --fg: #f3eef2;
  --fg-dim: #b9aeb6;
  --fg-faint: #6f6670;
  --line: #ffffff1a;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Press Start 2P', 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  /* faint scanline texture */
  background-image: repeating-linear-gradient(0deg, #ffffff05 0 1px, transparent 1px 3px);
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: #ff6c9c; }

/* Corner readouts */
.corner {
  position: fixed; font-size: 9px; letter-spacing: 0.18em; color: var(--fg-faint);
  padding: 14px 16px; z-index: 5; line-height: 1.5;
}
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; text-align: right; }
.corner.bl { bottom: 0; left: 0; max-width: 70vw; }
.corner.br { bottom: 0; right: 0; text-align: right; }

/* Stage + wordmark */
.stage {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 64px 20px 80px;
}
.wordmark { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; }
/* Animated moon — matches the corp site (slow turn + glow breathe) so the
   brand logomark is alive on every branded domain, not static. */
.wordmark .moon {
  width: 22px; height: 22px;
  transform-origin: 50% 50%;
  animation: lp-moon-turn 32s linear infinite, lp-moon-glow 6s ease-in-out infinite;
}
@keyframes lp-moon-turn { to { transform: rotate(360deg); } }
@keyframes lp-moon-glow {
  0%, 100% { filter: drop-shadow(0 0 3px var(--pink-dim)); }
  50%      { filter: drop-shadow(0 0 7px var(--pink)); }
}
.wordmark-text { font-size: 10px; letter-spacing: 0.22em; color: var(--fg); }
.wordmark-text .dot { color: var(--fg-faint); }
.wm-code { color: var(--pink-dim); }

/* Center column */
.col { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.glyph {
  margin-bottom: 22px;
  filter: drop-shadow(0 0 12px var(--pink-dim));
  /* Rise in once, then breathe forever. The glyph differs per community,
     so this gives each brand its own animated mark. */
  animation: lp-rise 760ms var(--ease) 120ms both,
             lp-glyph-breathe 5s ease-in-out 1000ms infinite;
}
@keyframes lp-glyph-breathe {
  0%, 100% { filter: drop-shadow(0 0 8px var(--pink-dim)); }
  50%      { filter: drop-shadow(0 0 20px var(--pink)); }
}
.headline {
  font-family: var(--display); font-size: 18px; line-height: 1.5; font-weight: 400;
  color: var(--fg); margin: 0 0 22px; text-shadow: 0 0 18px var(--pink-dim);
}
.bullets { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; }
.bullets li {
  font-size: 12px; letter-spacing: 0.06em; color: var(--fg-dim); text-transform: lowercase; line-height: 1.5;
}
.bullets li::before { content: '> '; color: var(--pink); }

.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--pink-dim), transparent); margin: 26px 0; }

/* Auth surface */
.auth { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth label { font-size: 9px; letter-spacing: 0.18em; color: var(--fg-faint); align-self: flex-start; }
.auth input, .auth select {
  width: 100%; background: #000; border: 1px solid var(--line); color: var(--fg);
  font-family: var(--mono); font-size: 14px; padding: 12px 14px; border-radius: 0;
  text-transform: none; letter-spacing: 0; outline: none;
}
.auth input:focus, .auth select:focus { border-color: var(--pink); }
.auth .roles { display: flex; flex-wrap: wrap; gap: 8px; }
.auth .role-pill {
  flex: 1 1 auto; min-width: 96px; padding: 11px 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--fg-dim);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.auth .role-pill.active { border-color: var(--pink); color: var(--pink); background: var(--pink) 10; background: #ff3d7f14; }
.auth .submit {
  margin-top: 6px; padding: 14px; cursor: pointer; border: none;
  background: var(--pink); color: #000; font-family: var(--mono); font-weight: 600;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 0 20px -4px var(--pink);
}
.auth .submit:disabled { background: #2a2530; color: var(--fg-faint); box-shadow: none; cursor: default; }
.auth .toggle { background: none; border: none; color: var(--fg-dim); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; cursor: pointer; padding: 4px; text-transform: lowercase; }
.auth .toggle:hover { color: var(--pink); }

.auth-msg { margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--fg-dim);
  text-transform: none; letter-spacing: 0; max-width: 480px; text-align: center; }
.auth-msg.error { color: #ff8a96; }
.auth-msg.ok { color: #6ad19a; }

/* Cinematic entrance — the key elements rise + fade in, staggered, so the
   page assembles itself the way the corp title card does. */
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.wordmark { animation: lp-rise 760ms var(--ease) both; }
.headline { animation: lp-rise 760ms var(--ease) 260ms both; }
.bullets  { animation: lp-rise 760ms var(--ease) 360ms both; }
.divider  { animation: lp-rise 760ms var(--ease) 440ms both; }
.auth     { animation: lp-rise 760ms var(--ease) 520ms both; }

/* Respect reduced-motion: hold everything in its final state. */
@media (prefers-reduced-motion: reduce) {
  .wordmark, .wordmark .moon, .glyph, .headline, .bullets, .divider, .auth {
    animation: none !important;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .stage { padding: 52px 16px 76px; }
  .headline { font-size: 15px; }
  .corner { font-size: 8px; padding: 10px 12px; }
  .corner.bl { max-width: 60vw; }
  .auth .role-pill { min-width: 0; flex: 1 1 40%; }
}
