/* ═══════════════════════════════════════════════════════════════════
   THE WATCHMAN CODEX — SACRED LANDING SCREEN
   ═══════════════════════════════════════════════════════════════════ */

/* ── Main Overlay ─────────────────────────────────────────────────── */
#watchman-landing {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #06060f;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 64px;
    animation: wl-screen-in 1.0s ease both;
}

/* Gold nebula — top-left */
#watchman-landing .wl-nebula-gold {
    position: fixed;
    top: -260px;
    left: -260px;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.13) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

/* Purple nebula — bottom-right */
#watchman-landing .wl-nebula-purple {
    position: fixed;
    bottom: -260px;
    right: -260px;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.11) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

/* Central light pillar */
#watchman-landing .wl-pillar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(212,175,55,0.25) 0%,
        rgba(212,175,55,0.08) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}
#watchman-landing .wl-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 280px;
    background: radial-gradient(ellipse at top, rgba(212,175,55,0.12) 0%, transparent 70%);
}

/* ── Center Column ────────────────────────────────────────────────── */
.wl-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Divine Name Block ────────────────────────────────────────────── */
.wl-divine-wrap {
    margin-bottom: 10px;
    animation: wl-rise 0.9s 0.3s both;
}
.wl-paleo {
    display: block;
    font-size: clamp(3.8rem, 11vw, 6.4rem);
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 6px;
    animation: wl-glow-pulse 3s ease-in-out infinite;
    text-shadow:
        0 0 24px rgba(212,175,55,0.7),
        0 0 56px rgba(212,175,55,0.4),
        0 0 100px rgba(212,175,55,0.2);
}
.wl-translit {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 8px;
    color: rgba(212,175,55,0.6);
    text-transform: uppercase;
    display: block;
}

/* ── Gold Rule ────────────────────────────────────────────────────── */
.wl-rule {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 40%, #D4AF37 60%, transparent 100%);
    margin: 20px auto 20px;
    animation: wl-rise 0.6s 0.6s both;
    position: relative;
}
.wl-rule::before, .wl-rule::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.45rem;
    color: #D4AF37;
}
.wl-rule::before { left: -14px; }
.wl-rule::after  { right: -14px; }

/* ── App Title ────────────────────────────────────────────────────── */
.wl-app-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.65rem, 5.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    margin: 0 0 6px;
    text-transform: uppercase;
    animation: wl-rise 0.8s 0.85s both;
    line-height: 1.15;
}
.wl-app-sub {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(212,175,55,0.7);
    text-transform: uppercase;
    margin: 0 0 28px;
    animation: wl-rise 0.7s 1.05s both;
}

/* ── Scripture Banner ─────────────────────────────────────────────── */
.wl-scripture {
    width: 100%;
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 22px;
    animation: wl-rise 0.8s 1.25s both;
}
.wl-scripture em {
    display: block;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.88);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 8px;
}
.wl-scripture em strong {
    color: #FCD97A;
    font-style: normal;
}
.wl-scripture-ref {
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(212,175,55,0.55);
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

/* ── Welcome Message ──────────────────────────────────────────────── */
.wl-message {
    width: 100%;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 26px;
    animation: wl-rise 0.8s 1.55s both;
    text-align: left;
}
.wl-message p {
    font-size: 0.87rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.74);
    margin: 0 0 10px;
}
.wl-message p:last-child { margin: 0; }
.wl-message strong { color: #FCD97A; }
.wl-message em { color: rgba(167,139,250,0.9); font-style: normal; }

/* ── Section Labels ───────────────────────────────────────────────── */
.wl-section-lbl {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 4px;
    color: rgba(212,175,55,0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: wl-rise 0.6s 1.85s both;
}

/* ── Category Grid ────────────────────────────────────────────────── */
.wl-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    width: 100%;
    margin-bottom: 26px;
}
.wl-cat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 12px;
    padding: 13px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.3s, background 0.3s;
}
.wl-cat:hover {
    background: rgba(212,175,55,0.07);
    border-color: rgba(212,175,55,0.35);
}
.wl-cat i {
    font-size: 1.15rem;
    color: #D4AF37;
}
.wl-cat strong {
    font-family: 'Cinzel', serif;
    font-size: 0.57rem;
    letter-spacing: 1.5px;
    color: #D4AF37;
    text-transform: uppercase;
    display: block;
}
.wl-cat small {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.45;
    text-align: center;
}

/* stagger category cards */
.wl-cat:nth-child(1) { animation: wl-rise 0.5s 1.95s both; }
.wl-cat:nth-child(2) { animation: wl-rise 0.5s 2.08s both; }
.wl-cat:nth-child(3) { animation: wl-rise 0.5s 2.21s both; }
.wl-cat:nth-child(4) { animation: wl-rise 0.5s 2.34s both; }
.wl-cat:nth-child(5) { animation: wl-rise 0.5s 2.47s both; }
.wl-cat:nth-child(6) { animation: wl-rise 0.5s 2.60s both; }

/* ── Commission Block ─────────────────────────────────────────────── */
.wl-commission {
    width: 100%;
    background: linear-gradient(135deg, rgba(139,92,246,0.07) 0%, rgba(212,175,55,0.07) 100%);
    border: 1px solid rgba(139,92,246,0.22);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 22px;
    animation: wl-rise 0.8s 2.75s both;
    text-align: left;
}
.wl-commission-title {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: rgba(167,139,250,0.8);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.wl-commission-title i { color: #A78BFA; font-size: 0.75rem; }
.wl-commission p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.72);
    margin: 0;
}
.wl-commission strong { color: #A78BFA; }

/* ── How To Navigate ──────────────────────────────────────────────── */
.wl-howto {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 30px;
    animation: wl-rise 0.7s 3.0s both;
    text-align: left;
}
.wl-howto-title {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(212,175,55,0.5);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.wl-howto-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wl-howto-row:last-child { border: none; padding-bottom: 0; }
.wl-howto-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.wl-howto-icon i { font-size: 0.72rem; color: #D4AF37; }
.wl-howto-row span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
}
.wl-howto-row span strong { color: rgba(255,255,255,0.88); }

/* ── Enter Button ─────────────────────────────────────────────────── */
.wl-enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #06060f;
    border: none;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    animation: wl-rise 0.8s 3.3s both, wl-btn-pulse 2.8s 4.2s ease-in-out infinite;
    box-shadow: 0 0 28px rgba(212,175,55,0.4), 0 0 56px rgba(212,175,55,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
.wl-enter-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.wl-enter-btn:hover::before {
    left: 130%;
}
.wl-enter-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 44px rgba(212,175,55,0.58), 0 0 88px rgba(212,175,55,0.28);
}
.wl-enter-btn:active { transform: scale(0.97); }
.wl-enter-btn i { font-size: 1rem; }

/* ── Bottom Seal ──────────────────────────────────────────────────── */
.wl-seal-text {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(212,175,55,0.28);
    text-transform: uppercase;
    animation: wl-rise 0.6s 3.7s both;
}

/* ── Exit Animation ───────────────────────────────────────────────── */
#watchman-landing.wl-exiting {
    animation: wl-screen-out 0.7s ease both !important;
    pointer-events: none;
}

/* ── Keyframes ────────────────────────────────────────────────────── */
@keyframes wl-screen-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wl-screen-out {
    0%   { opacity: 1; transform: scale(1);    filter: brightness(1); }
    60%  { opacity: 1; transform: scale(1.02); filter: brightness(1.3); }
    100% { opacity: 0; transform: scale(1.06); filter: brightness(2); }
}
@keyframes wl-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes wl-glow-pulse {
    0%,100% {
        text-shadow:
            0 0 24px rgba(212,175,55,0.65),
            0 0 56px rgba(212,175,55,0.35),
            0 0 100px rgba(212,175,55,0.18);
    }
    50% {
        text-shadow:
            0 0 40px rgba(212,175,55,0.95),
            0 0 90px rgba(212,175,55,0.55),
            0 0 160px rgba(212,175,55,0.28);
    }
}
@keyframes wl-btn-pulse {
    0%,100% { box-shadow: 0 0 28px rgba(212,175,55,0.4),  0 0 56px rgba(212,175,55,0.18); }
    50%      { box-shadow: 0 0 50px rgba(212,175,55,0.65), 0 0 100px rgba(212,175,55,0.32); }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .wl-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .wl-enter-btn { padding: 15px 30px; letter-spacing: 2px; }
    #watchman-landing { padding: 32px 16px 56px; }
}
@media (max-width: 360px) {
    .wl-cat-grid { grid-template-columns: 1fr; }
}

/* ── Free Book card (web edition) ───────────────────────────── */
.wl-freebook {
    display: flex; gap: 18px; align-items: center;
    margin: 22px 0 18px; padding: 16px;
    border: 1px solid rgba(212,175,55,0.45); border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(212,175,55,0.03));
    text-align: left;
}
.wl-freebook-cover { width: 96px; flex-shrink: 0; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
.wl-freebook-tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #d4af37; margin-bottom: 4px; }
.wl-freebook-title { font-family: 'Playfair Display', serif; font-size: 1rem; line-height: 1.3; color: #f5f0e1; margin-bottom: 6px; }
.wl-freebook p { font-size: 0.76rem; line-height: 1.55; color: rgba(245,240,225,0.72); margin: 0 0 10px; }
.wl-freebook-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 16px; border-radius: 999px; border: none;
    background: linear-gradient(135deg, #d4af37, #b8912a); color: #111;
    font-weight: 700; font-size: 0.8rem; font-family: Inter, sans-serif;
}
.wl-freebook-btn:hover { filter: brightness(1.1); }
@media (max-width: 480px) {
    .wl-freebook { flex-direction: column; text-align: center; }
    .wl-freebook-cover { width: 120px; }
}
