/* ============================================================================
   NIGHTHUB WEB — landing page (index.html). Builds on the tokens and .btn /
   .wordmark / .eyebrow from style.css; everything here is prefixed lp-.
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.landing { font-size: 15px; overflow-x: hidden; background: transparent; }
body.landing a { color: inherit; text-decoration: none; }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* --- header -------------------------------------------------------------- */
.lp-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 14, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.lp-head-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand img { border-radius: 8px; }
.lp-brand .wordmark { font-size: 24px; line-height: 1; }
.lp-nav { display: flex; gap: 24px; font-size: 13.5px; color: var(--muted); }
.lp-nav a { transition: color .15s; }
.lp-nav a:hover { color: var(--cream); }
.lp-head-cta { margin-left: auto; display: flex; gap: 10px; }

/* --- hero ---------------------------------------------------------------- */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.lp-hero-art { position: absolute; inset: 0; z-index: -1; }
.lp-hero-art img {
  position: absolute; right: 0; top: 0; height: 100%; width: 52%;
  object-fit: cover; object-position: 88% center;
  /* Fade the banner out with a mask, not a solid overlay, so the starfield
     behind the page still shows through on the text side. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 62%),
                      linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 62%),
              linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}
.lp-hero-in { padding: 104px 28px 88px; }
.lp-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 92px); line-height: .96;
  letter-spacing: .015em; text-transform: uppercase;
  transform: skewX(-6deg); margin: 16px 0 22px;
  text-shadow: 0 0 34px rgba(127, 195, 255, .28);
}
.lp-title span { display: block; }
.lp-title .b { color: var(--blue-2); }
.lp-lede { max-width: 520px; color: var(--cream-2); font-size: 16.5px; line-height: 1.65; margin: 0 0 30px; }
.lp-lede b { color: var(--cream); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.lp-big { padding: 12px 20px; font-size: 14px; border-radius: 10px; }
.btn-discord.lp-big { width: auto; }

.lp-stats {
  display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 48px 0 0;
  padding-top: 26px; border-top: 1px solid var(--hairline); max-width: 620px;
}
.lp-stats dt {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.lp-stats dd {
  margin: 6px 0 0; font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--cream);
}

/* --- sections ------------------------------------------------------------ */
.lp-sec { padding: 88px 0 8px; }
.lp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.lp-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-soft); margin-bottom: 10px;
}
.lp-kicker.light { color: rgba(255,255,255,.75); }
.lp-h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; line-height: 1.1; }

.lp-search {
  display: flex; align-items: center; gap: 10px; width: 300px; max-width: 100%;
  padding: 0 12px; height: 44px; border-radius: 12px; color: var(--muted);
  background: rgba(10, 17, 38, .7); border: 1px solid var(--hairline);
  transition: border-color .15s;
}
.lp-search:focus-within { border-color: var(--blue); }
.lp-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--cream); font: inherit; font-size: 14px;
}
.lp-search input::-webkit-search-cancel-button { display: none; }
.lp-search kbd {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--hairline-2);
}

/* --- game grid ----------------------------------------------------------- */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.lp-card { display: block; border-radius: 16px; padding: 10px 10px 12px; transition: background .16s; }
.lp-card:hover { background: rgba(46, 134, 255, .07); }
.lp-thumb {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(145deg, var(--navy-2), var(--void-2));
  box-shadow: var(--ring); margin-bottom: 12px;
}
.lp-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.lp-card:hover .lp-thumb img { transform: scale(1.05); }
.lp-thumb-fb {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 54px; color: var(--hairline-2);
}
.lp-tag {
  position: absolute; left: 9px; top: 9px; z-index: 1;
  padding: 3px 9px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.lp-card-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.lp-card-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.lp-live { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.lp-empty { color: var(--muted); padding: 28px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.dot.on { background: var(--good); box-shadow: 0 0 8px rgba(53, 211, 154, .7); }

/* loading skeleton */
.lp-card.sk .lp-thumb, .sk-l {
  background: linear-gradient(90deg, rgba(126,168,255,.06), rgba(126,168,255,.13), rgba(126,168,255,.06));
  background-size: 200% 100%; animation: lp-sheen 1.3s linear infinite;
}
.sk-l { height: 12px; border-radius: 6px; width: 78%; }
.sk-l.s { width: 46%; margin-top: 8px; }
@keyframes lp-sheen { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* --- night manager -------------------------------------------------------- */
.lp-mgr {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center;
}
.lp-mgr-lede { color: var(--cream-2); font-size: 16px; line-height: 1.65; margin: 14px 0 22px; max-width: 480px; }
.lp-mgr-feats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.lp-mgr-feats li { position: relative; padding-left: 26px; line-height: 1.5; }
.lp-mgr-feats li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(46, 134, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc3ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.lp-mgr-feats b { display: block; font-size: 14.5px; }
.lp-mgr-feats span { color: var(--muted); font-size: 13.5px; }
.lp-mgr .btn svg { flex: none; }
.lp-mgr-meta { margin: 14px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.lp-mgr-shot { margin: 0; position: relative; }
.lp-mgr-shot::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(46, 134, 255, .32), transparent);
  filter: blur(30px);
}
.lp-mgr-shot img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--hairline-2), 0 30px 70px rgba(0, 0, 0, .55);
}
.lp-mgr-tips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px;
}
.lp-mgr-tips > div { padding: 20px 22px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--ring); }
.lp-mgr-tips h3 { font-size: 15px; margin: 0 0 6px; }
.lp-mgr-tips p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13.5px; }
.lp-mgr-tips p b { color: var(--cream-2); }
body.landing .lp-mgr-tips a { color: var(--blue-soft); white-space: nowrap; }
body.landing .lp-mgr-tips a:hover { color: var(--glow); }

/* --- steps --------------------------------------------------------------- */
.lp-steps {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.lp-steps li {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--panel); box-shadow: var(--ring);
}
.lp-step-n { font-family: var(--mono); font-size: 12px; color: var(--blue-soft); }
.lp-steps h3 { font-size: 18px; margin: 12px 0 8px; }
.lp-steps p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* --- discord ------------------------------------------------------------- */
.lp-discord {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 24px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(120deg, #4752c4 0%, #5865f2 55%, #6d78f7 100%);
  box-shadow: 0 24px 60px rgba(88, 101, 242, .28);
  color: #fff;
}
.lp-discord-icon {
  flex: none; width: 84px; height: 84px; border-radius: 22px;
  display: grid; place-items: center; background: rgba(255,255,255,.14);
}
.lp-discord-copy { flex: 1; min-width: 240px; }
.lp-discord-copy p { margin: 10px 0 16px; color: rgba(255,255,255,.85); line-height: 1.6; max-width: 520px; }
.lp-presence { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.85); }
.lp-presence span { display: inline-flex; align-items: center; gap: 7px; }
.lp-presence b { color: #fff; font-variant-numeric: tabular-nums; }
.lp-presence .dot { background: rgba(255,255,255,.55); }
.lp-presence .dot.on { background: #3ba55d; box-shadow: none; }
.btn.lp-discord-btn { background: #fff; color: #3c45a5; border-color: transparent; font-weight: 700; }
.btn.lp-discord-btn:hover { background: #eef0ff; }

/* --- footer -------------------------------------------------------------- */
.lp-foot { margin-top: 72px; border-top: 1px solid var(--hairline); background: rgba(4,6,14,.6); }
.lp-foot-in {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
}
.lp-foot .wordmark { font-size: 20px; }
.lp-foot-copy { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.lp-foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lp-foot-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); }
.lp-foot-links a:hover { color: var(--cream); }
.lp-disclaimer { margin: 0; color: var(--muted-2); font-size: 12px; }

/* --- starfield (assets/stars.js) ----------------------------------------- */
/* Fixed behind every section: above .cosmos (-2), below all content. */
.lp-stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* --- small screens ------------------------------------------------------- */
@media (max-width: 860px) {
  .lp-nav { display: none; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-mgr { grid-template-columns: 1fr; gap: 32px; }
  .lp-mgr-tips { grid-template-columns: 1fr; }
  .lp-hero-art img {
    width: 100%; opacity: .4;
    -webkit-mask-image: linear-gradient(0deg, transparent 4%, #000 60%);
    mask-image: linear-gradient(0deg, transparent 4%, #000 60%);
  }
}
@media (max-width: 560px) {
  .lp-wrap, .lp-hero-in { padding-left: 16px; padding-right: 16px; }
  .lp-head-in { gap: 12px; }
  .lp-brand .wordmark { font-size: 20px; }
  .lp-head-cta .btn { padding: 7px 11px; }
  .lp-hero-in { padding-top: 64px; padding-bottom: 56px; }
  .lp-stats { gap: 14px 28px; }
  .lp-stats dd { font-size: 22px; }
  .lp-sec { padding-top: 64px; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lp-card { padding: 6px 6px 10px; }
  .lp-discord { padding: 28px 22px; }
  .lp-discord-btn { width: 100%; justify-content: center; }
  .lp-mgr .lp-cta .btn { flex: 1 1 auto; justify-content: center; }
  .lp-foot-right { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-card.sk .lp-thumb, .sk-l { animation: none; }
}
