/* ===================================================================
   pepe.fail — landing page
   Standalone entry page: no sidebar, no topbar, no .app grid.
   Loaded after styles.css / glass.css / anim.css / modal.css.
   =================================================================== */

/* styles.css locks the app shell with overflow:hidden — the landing
   is a normal document and must be allowed to scroll. */
body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  background: var(--bg-900);
}

/* =========================== FALLING PROPS ===========================
   Background canvas for assets/js/fx-fall.js. Sits behind everything,
   never intercepts pointer events, and is skipped by the script under
   prefers-reduced-motion (the canvas then simply stays empty). */
.fx-fall {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* =========================== LAYOUT =========================== */
.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 72px 24px 28px;
  text-align: center;
  overflow: hidden;
}

/* Faint gold halo at the top of the page. Static, low opacity. */
.landing::before {
  content: "";
  position: absolute;
  top: -32vh;
  left: 50%;
  width: min(1100px, 150%);
  height: 78vh;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255, 200, 40, 0.10), rgba(255, 122, 0, 0.03) 48%, transparent 72%);
  pointer-events: none;
}

.landing__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 620px;
}

/* =========================== BRAND =========================== */
/* Raw transparent PNG: no frame, no radius, no shadow. */
.landing__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Same treatment as the in-app brand (.brand__name): tight display face,
   lowercase, ".fail" in the gold gradient — one logotype everywhere. */
.landing__wordmark {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 38px);
  letter-spacing: -0.04em;
  color: var(--text);
}
.landing__wordmark span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================== COPY =========================== */
.landing__eyebrow {
  margin-top: 54px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.landing__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.landing__title span { color: var(--gold); }

.landing__sub {
  margin-top: 18px;
  max-width: 47ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* =========================== ACTIONS =========================== */
.landing__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.landing__actions .btn { min-width: 168px; }

/* Zero-specificity fallback: any real .btn--glass rule in glass.css wins. */
:where(.landing .btn--glass) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.landing__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  transition: color 0.16s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.landing__social:hover { color: var(--text-dim); }
.landing__x { width: 14px; height: 14px; flex: none; }

/* =========================== FOOT =========================== */
.landing__foot {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: var(--text-mute);
  opacity: 0.72;
}

/* =========================== FOCUS =========================== */
.landing a:focus-visible,
.landing .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================== ENTRANCE =========================== */
@keyframes landingRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.landing [data-rise] {
  opacity: 0;
  animation: landingRise 220ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: var(--rise-delay, 0ms);
}

.landing__logo     { --rise-delay: 0ms; }
.landing__wordmark { --rise-delay: 50ms; }
.landing__eyebrow  { --rise-delay: 100ms; }
.landing__title    { --rise-delay: 150ms; }
.landing__sub      { --rise-delay: 200ms; }
.landing__actions  { --rise-delay: 250ms; }
.landing__social   { --rise-delay: 300ms; }
.landing__foot     { --rise-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .landing [data-rise] { opacity: 1; animation: none; }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 640px) {
  .landing { gap: 40px; padding: 56px 20px 24px; }
  .landing__logo { width: 104px; height: 104px; }
  .landing__eyebrow { margin-top: 44px; }
  .landing__sub { font-size: 14.5px; }
}

@media (max-width: 520px) {
  .landing__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .landing__actions .btn { width: 100%; }
}
