body.landing-open,
body.auth-open {
  overflow: hidden;
}

body.landing-open .app,
body.auth-open .app,
body:not(.hub-ready) .app {
  display: none !important;
}

/* Discord-style marketing landing */
.landing-root {
  position: fixed;
  inset: 0;
  z-index: 20000;
  overflow: auto;
  color: #fff;
  background: #07080c;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.landing-root.hidden {
  display: none !important;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  gap: 16px;
}

.landing-nav,
.landing-hero {
  position: relative;
  z-index: 2;
}

.landing-float-logos {
  z-index: 0;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.landing-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.landing-links {
  display: flex;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.landing-links span {
  opacity: 0.95;
  cursor: default;
}

.landing-open-nav {
  border: none;
  background: #fff;
  color: #23272a;
  border-radius: 40px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.landing-open-nav:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  background: #f2f3f5;
}

.landing-hero {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 24px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-copy p {
  margin: 22px 0 0;
  max-width: 460px;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.landing-btn {
  border: none;
  border-radius: 40px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.landing-btn.white {
  background: #fff;
  color: #23272a;
}

.landing-btn.white:hover {
  background: #f2f3f5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.landing-btn.blurple {
  background: #23272a;
  color: #fff;
}

.landing-btn.blurple:hover {
  background: #36393f;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.landing-art {
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-monitor {
  width: min(100%, 560px);
  aspect-ratio: 16 / 11;
  background: #1e1f22;
  border-radius: 18px 18px 8px 8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 10px #2b2d31;
  overflow: hidden;
  position: relative;
}

.landing-monitor img.preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.landing-badge-hero {
  position: absolute;
  width: 88px;
  height: 88px;
  right: 8%;
  bottom: 6%;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  animation: landing-bob 4.5s ease-in-out infinite;
}

@keyframes landing-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 860px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing-links {
    display: none;
  }
}

/* Heinsberg-style auth with floating logos */
.auth-root {
  position: fixed;
  inset: 0;
  z-index: 20010;
  background: #07080c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-root.hidden {
  display: none !important;
}

.auth-float-logos {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  filter: blur(0.2px);
}

.auth-float-logo {
  position: absolute;
  object-fit: contain;
  animation-name: auth-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  mix-blend-mode: screen;
}

@keyframes auth-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(var(--spin));
  }
}

.auth-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(600px 300px at 50% 40%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 32px));
  padding: 36px 32px 24px;
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.94) 0%, rgba(10, 11, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(255, 255, 255, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.65);
  color: #f2f3f5;
  backdrop-filter: blur(10px);
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo-wrap img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-card .auth-sub {
  margin: 8px 0 22px;
  text-align: center;
  color: #b5bac1;
  font-size: 14px;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #949ba4;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  background: #0a0b10;
  color: #f2f3f5;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.auth-field input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.auth-error {
  margin: 0 0 12px;
  color: #f23f43;
  font-size: 13px;
  text-align: center;
}

.auth-error.hidden {
  display: none;
}

.auth-submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 4px;
}

.auth-submit:hover {
  background: #e8e8e8;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: #949ba4;
}

.auth-switch a,
.auth-back {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch a:hover,
.auth-back:hover {
  text-decoration: underline;
}

.auth-back {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.settings-logout:hover {
  background: rgba(242, 63, 67, 0.1);
}
