:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #160e24;
  color: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: #160e24;
  cursor: default;

}
.topbar {
  position: relative;
  z-index: 1;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: #110b1c;
  border-bottom: 1px solid rgba(179, 137, 231, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}
.brand:focus-visible {
  outline: 2px solid #b58aee;
  outline-offset: 6px;
  border-radius: 2px;
}
.logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  transform: translateY(2px);
  transition: transform 300ms ease, filter 200ms ease;
}
main { position: relative; min-height: calc(100vh - 72px); }
@media (max-width: 600px) {
  .topbar { height: 64px; padding: 0 24px; }
  main { min-height: calc(100vh - 64px); }
}

.brand:hover,
.brand:focus-visible {
  color: #e0ccff;
  text-shadow: 0 0 16px rgba(181, 138, 238, 0.35);
}
.brand:hover .logo,
.brand:focus-visible .logo {
  transform: translateY(2px) rotate(60deg) scale(1.08);
  filter: drop-shadow(0 0 6px rgba(181, 138, 238, 0.65));
}
@media (prefers-reduced-motion: reduce) {
  .brand, .logo { transition: none; }
  .brand:hover .logo,
  .brand:focus-visible .logo { transform: translateY(2px); }
}

.grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.topbar { justify-content: space-between; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.topnav > a:not(.pill) { color: #b9a9cc; text-decoration: none; transition: color 150ms ease; }
.topnav > a:not(.pill):hover { color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 72px - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(640px, 92vw);
  height: min(440px, 70vw);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(130, 64, 197, .16), transparent 68%);
  pointer-events: none;
  animation: ambient-glow 7s ease-in-out infinite alternate;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -.035em;
  animation: arrive 700ms cubic-bezier(.2, .7, .2, 1) both;
}
.hero p {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #b9a9cc;
  animation: arrive 700ms 80ms cubic-bezier(.2, .7, .2, 1) both;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  animation: arrive 700ms 160ms cubic-bezier(.2, .7, .2, 1) both;
}
.fineprint { margin-top: 18px; font-size: 13px; color: #7f6f92; animation: arrive 700ms 220ms cubic-bezier(.2, .7, .2, 1) both; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.pill svg { width: 20px; height: 20px; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill:focus-visible { outline: 2px solid #dabaff; outline-offset: 4px; }
.pill-light { background: #fff; color: #1a1124; }
.pill-light:hover { color: #7b45c4; box-shadow: 0 8px 28px rgba(157, 104, 228, .35); }
.pill-dark { background: #23182f; color: #fff; }
.pill-dark:hover { background: #2e2040; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.pill-small { height: 38px; padding: 0 18px; font-size: 14px; }

.footer {
  position: relative;
  z-index: 1;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(179, 137, 231, .08);
  color: #7f6f92;
  font-size: 13px;
}
.footer span:first-child { font-weight: 650; color: #b9a9cc; letter-spacing: -.3px; font-size: 15px; }

@keyframes ambient-glow {
  from { opacity: .55; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.12); }
}
@keyframes arrive {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 20px; }
  .topnav > a:not(.pill) { display: none; }
  .hero { min-height: calc(100svh - 64px - 64px); }
  .hero p { font-size: 16px; }
  .actions { flex-direction: column; width: 100%; max-width: 340px; }
  .pill:not(.pill-small) { justify-content: center; }
  .footer { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero h1, .hero p, .actions, .fineprint { animation: none; }
  .pill { transition: none; }
  .pill:hover, .pill:active { transform: none; }
}

body[data-theme="halloween"]{background:#1b1009;color:#fff3e8}body[data-theme="halloween"] .topbar{background:#150c07;border-color:#f7a25224}body[data-theme="halloween"] .hero{background:radial-gradient(ellipse at top,#7c43192b,transparent 65%)}body[data-theme="halloween"] :is(.pill,.download-card){border-color:#f7a25255;color:#ffca98;background:transparent}body[data-theme="halloween"] .logo{filter:sepia(1) saturate(3) hue-rotate(335deg)}
body[data-theme="christmas"]{background:#0e1b16;color:#f3faf0}body[data-theme="christmas"] .topbar{background:#0b1511;border-color:#91d5aa24}body[data-theme="christmas"] .hero{background:radial-gradient(ellipse at top,#467c552b,transparent 65%)}body[data-theme="christmas"] :is(.pill,.download-card){border-color:#91d5aa55;color:#c7edd1;background:transparent}body[data-theme="christmas"] .logo{filter:sepia(1) saturate(2) hue-rotate(70deg)}
.season-toggle{position:fixed;bottom:14px;right:16px;z-index:5;color:inherit;border:1px solid #ffffff24;background:#0006;border-radius:20px;font:inherit;font-size:11px;padding:7px 12px;cursor:pointer}.season-toggle[aria-pressed="false"]{opacity:.55}

/* "Welcome everyone" banner, top of the landing and login pages. */
.nx-welcome-banner{position:relative;z-index:50;width:100%;padding:9px 16px;text-align:center;font:600 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.01em;color:#fff;background:linear-gradient(90deg,#7c4ad1,#9d68e4 45%,#b48cf0);box-shadow:0 1px 0 rgba(255,255,255,.08) inset}
