/*
    Landing page only. Everything is scoped under .lp so the footer (which
    sits outside it) keeps the site-wide look from style.css untouched.

    Palette: quiet slate neutrals + a muted steel blue for small accents,
    and ONE loud colour (--lp-loud) reserved for the buttons that matter -
    Get started / Create account / Join Server. Don't use it for anything
    else or it stops standing out.
*/
.lp {
    --lp-bg: #0e1014;
    --lp-surface: #14171c;
    --lp-surface-2: #191d23;
    --lp-line: rgba(255, 255, 255, 0.07);
    --lp-line-strong: rgba(255, 255, 255, 0.14);
    --lp-text: #e6e8ec;
    --lp-soft: #b4b9c3;
    --lp-muted: #868c98;
    --lp-quiet: #7d97b8;
    --lp-loud: #ff6a2b;
    --lp-loud-hover: #ff814b;
    --lp-loud-ink: #170a03;
    --lp-loud-glow: rgba(255, 106, 43, 0.35);

    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.lp h1, .lp h2, .lp h3, .lp h4 { color: var(--lp-text); letter-spacing: -0.01em; }
.lp a:hover { text-decoration: none; }

/* ---- Buttons ---- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .1s ease;
}
.lp-btn:active { transform: scale(.97); }
.lp-btn:focus-visible { outline: 2px solid var(--lp-text); outline-offset: 3px; }
.lp-btn-sm { padding: 8px 16px; font-size: 13.5px; }
.lp-btn-lg { padding: 15px 28px; font-size: 16px; }

.lp-btn-loud {
    background: var(--lp-loud);
    color: var(--lp-loud-ink);
    box-shadow: 0 6px 24px -6px var(--lp-loud-glow);
}
.lp-btn-loud:hover {
    background: var(--lp-loud-hover);
    color: var(--lp-loud-ink);
    box-shadow: 0 10px 32px -6px var(--lp-loud-glow);
}
.lp-btn-loud span { transition: transform .15s ease; }
.lp-btn-loud:hover span { transform: translateX(3px); }

.lp-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--lp-line-strong);
    color: var(--lp-text);
}
.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: var(--lp-text); }

.lp-link { color: var(--lp-quiet); font-weight: 600; font-size: 14px; }
.lp-link:hover { color: var(--lp-text); }

/* ---- Nav ---- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    background: rgba(14, 16, 20, 0.72);
    border-bottom: 1px solid var(--lp-line);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.lp-logo-link { display: block; line-height: 0; }
.lp-logo { height: 52px; width: auto; display: block; }
.lp-nav-links { display: flex; gap: 6px; align-items: center; }
.lp-nav-link {
    color: var(--lp-soft);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
}
.lp-nav-link:hover { color: var(--lp-text); background: rgba(255, 255, 255, 0.05); }
.lp-nav-links .lp-btn { margin-left: 4px; }

/* ---- Hero ---- */
.lp-hero {
    /* banner.png has the logo baked in at its centre, so the banner is drawn
       full-width from the top and the content starts just under the logo
       (~64% down the image) instead of being laid over it. */
    --lp-hero-scale: 1;
    --lp-hero-img-h: calc(56.25vw * var(--lp-hero-scale));
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: calc(var(--lp-hero-img-h) * 0.645) 24px 72px;
    background:
        linear-gradient(180deg, rgba(14,16,20,0) 0%, rgba(14,16,20,0) calc(var(--lp-hero-img-h) * 0.6), var(--lp-bg) calc(var(--lp-hero-img-h) * 0.98)),
        url('/brand/banner.png') center top / calc(100% * var(--lp-hero-scale)) auto no-repeat,
        var(--lp-bg);
}
.lp-hero-inner { max-width: 680px; display: flex; flex-direction: column; align-items: center; }

.lp-status {
    background: rgba(14, 16, 20, 0.6);
    border-color: var(--lp-line-strong);
    color: var(--lp-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: absolute;
    top: clamp(20px, 6vw, 72px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}
.lp-hero-lede {
    margin: 0 0 28px;
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--lp-soft);
    max-width: 520px;
}
.lp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.lp-facts {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: var(--lp-muted);
}
.lp-facts li { display: flex; align-items: center; gap: 8px; }
.lp-facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lp-quiet); }

/* ---- Section scaffolding ---- */
.lp-section { padding: 96px 0; border-top: 1px solid var(--lp-line); }
.lp-section-alt { background: var(--lp-surface); }
.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.lp-eyebrow {
    margin: 0 0 12px;
    color: var(--lp-quiet);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.lp-heading { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; font-weight: 700; margin: 0 0 14px; max-width: 640px; }
.lp-lede { color: var(--lp-muted); font-size: 16px; max-width: 560px; margin: 0; }
.lp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(125, 151, 184, 0.1);
    border: 1px solid rgba(125, 151, 184, 0.22);
    color: var(--lp-quiet);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---- Why ---- */
.lp-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.lp-why-item {
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
    border: 1px solid var(--lp-line);
}
.lp-why-item h3 { font-size: 21px; margin: 18px 0 10px; }
.lp-why-item p { margin: 0; color: var(--lp-muted); }

.lp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: var(--lp-line); border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; }
.lp-tile { background: var(--lp-bg); padding: 22px 24px; transition: background-color .2s ease; }
.lp-tile:hover { background: var(--lp-surface); }
.lp-tile h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.lp-tile p { margin: 0; color: var(--lp-muted); font-size: 14px; }

/* ---- Steps ---- */
.lp-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.lp-step { position: relative; padding: 26px; border-radius: 16px; border: 1px solid var(--lp-line); background: var(--lp-bg); }
.lp-step h3 { font-size: 18px; margin: 16px 0 8px; }
.lp-step p { margin: 0; color: var(--lp-muted); font-size: 14.5px; }
.lp-steps-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Tools ---- */
.lp-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.lp-tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--lp-line);
    background: var(--lp-surface);
    transition: border-color .2s ease, transform .2s ease;
}
.lp-tool:hover { border-color: var(--lp-line-strong); transform: translateY(-2px); }
.lp-tool img { padding: 9px; box-sizing: content-box; border-radius: 10px; background: rgba(255, 255, 255, 0.05); opacity: .85; }
.lp-tool h3 { font-size: 16px; margin: 16px 0 6px; }
.lp-tool p { margin: 0 0 14px; color: var(--lp-muted); font-size: 14px; }
.lp-tool .lp-link { margin-top: auto; }

/* ---- FAQ ---- */
.lp-faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.lp-faq { display: flex; flex-direction: column; border-top: 1px solid var(--lp-line); }
.lp-faq-item { border-bottom: 1px solid var(--lp-line); }
.lp-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color .15s ease;
}
.lp-faq-item summary:hover { color: #fff; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--lp-line-strong);
    color: var(--lp-soft);
    font-size: 18px;
    font-weight: 400;
    transition: transform .2s ease;
}
.lp-faq-item[open] summary::after { transform: rotate(45deg); }
.lp-faq-item p { margin: -4px 0 22px; color: var(--lp-muted); max-width: 600px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .lp-tools { grid-template-columns: repeat(2, 1fr); }
    .lp-tiles { grid-template-columns: repeat(2, 1fr); }
    .lp-faq-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
    .lp-nav { padding: 10px 16px; }
    .lp-logo { height: 40px; }
    .lp-nav-link { display: none; }
    .lp-section { padding: 64px 0; }
    .lp-wrap { padding: 0 16px; }
    .lp-why, .lp-steps { grid-template-columns: 1fr; }
    .lp-hero { --lp-hero-scale: 1.7; padding: calc(var(--lp-hero-img-h) * 0.68) 16px 56px; }
    .lp-facts { gap: 8px 16px; font-size: 12.5px; }
    .lp-why-item { padding: 24px; }
}
@media (max-width: 520px) {
    .lp-tools, .lp-tiles { grid-template-columns: 1fr; }
    .lp-nav-links .lp-btn { padding: 7px 12px; font-size: 13px; }
    .lp-hero-actions .lp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lp *, .lp *::after { transition: none !important; }
}

/*
    Shared public pages (partials/site-head.ejs: docs, commands, items, props,
    weapons, legal, transcripts). Same quiet palette as the landing page, done
    by remapping style.css's tokens on <body> so the page templates and their
    existing classes (.card, .hint, .items-tab, .ts-*) don't need touching.
*/
.site-page {
    --lp-bg: #0e1014;
    --lp-surface: #14171c;
    --lp-surface-2: #191d23;
    --lp-line: rgba(255, 255, 255, 0.07);
    --lp-line-strong: rgba(255, 255, 255, 0.14);
    --lp-text: #e6e8ec;
    --lp-soft: #b4b9c3;
    --lp-muted: #868c98;
    --lp-quiet: #7d97b8;
    --lp-loud: #ff6a2b;
    --lp-loud-hover: #ff814b;
    --lp-loud-ink: #170a03;
    --lp-loud-glow: rgba(255, 106, 43, 0.35);

    --bg: var(--lp-bg);
    --panel: rgba(255, 255, 255, 0.025);
    --panel-solid: var(--lp-surface);
    --header: var(--lp-surface-2);
    --border: var(--lp-line);
    --border-soft: rgba(255, 255, 255, 0.05);
    --text: var(--lp-text);
    --text-muted: var(--lp-muted);
    --accent: var(--lp-quiet);
    --accent-soft: rgba(125, 151, 184, 0.14);
    --forum-accent: var(--lp-quiet);
    --forum-accent-soft: rgba(125, 151, 184, 0.14);

    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}
.site-page h1, .site-page h2, .site-page h3 { color: var(--lp-text); letter-spacing: -0.01em; }
.site-page .landing-section { max-width: 1080px; padding-top: 48px; padding-bottom: 64px; }
.site-page .landing-section > h1:first-child,
.site-page .landing-section > .card > h1:first-child { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 8px; }
.site-page .card { border-radius: 14px; padding: 22px; }
.site-page .card-header { border-left-color: var(--lp-quiet); }
.site-page .btn { border-radius: 999px; border-color: var(--lp-line-strong); background: rgba(255, 255, 255, 0.04); }
.site-page .btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.site-page .btn-primary { background: var(--lp-quiet); border-color: var(--lp-quiet); color: #0e1014; }
.site-page .btn-primary:hover { background: #93abc9; border-color: #93abc9; }
.site-page input, .site-page select { border-radius: 10px; }
.site-page a:hover { text-decoration: none; }

.site-nav { flex-wrap: nowrap; }
.site-nav-menu { display: flex; gap: 2px; align-items: center; flex: 1; justify-content: center; min-width: 0; }
.lp-nav-link.active { color: var(--lp-text); background: rgba(255, 255, 255, 0.07); }
.site-page .forum-footer { background: var(--lp-surface); border-top-color: var(--lp-line); }

@media (max-width: 1100px) {
    .site-nav { flex-wrap: wrap; row-gap: 8px; }
    .site-nav-menu {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -8px;
    }
    .site-nav-menu::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
    .site-nav-menu .lp-nav-link { display: inline-flex; flex-shrink: 0; }
    .site-page .landing-section { padding: 32px 16px 48px; }
}
.site-page .landing-section > h1:first-child + .hint { font-size: 15px; color: var(--lp-muted); margin: 0 0 24px; }
