html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body.landing-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    background: #050505;
    color: #e7e0d4;
}

a { color: inherit; text-decoration: none; }

.landing-shell { min-height: 100vh; background: #050505; }

.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}

.landing-navbar.is-scrolled,
.landing-menu-open .landing-navbar { background: rgba(0, 0, 0, .9); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(14px); }

.landing-navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 150vh; height: 56px; margin: 0 auto; padding: 0 1rem; gap: 1rem; }
.landing-brand { display: flex; align-items: center; gap: .6rem; color: #dbcdcc; font-weight: 800; text-transform: uppercase; }
.landing-brand img { width: 70px; max-height: 70px; object-fit: contain; }
.landing-nav-menu { display: flex; align-items: center; gap: .5rem; }
.landing-nav-link { display: flex; align-items: center; gap: .4rem; padding: .35rem .55rem; color: #dbcdcc; font-size: .85rem; font-weight: 600; text-transform: uppercase; transition: color .15s ease, text-shadow .15s ease; }
.landing-nav-link:hover { color: #ffcb58; text-shadow: 0 0 2px #ffcb58; }
.landing-nav-link img { height: 16px; width: auto; }
.landing-auth-links { display: flex; align-items: center; gap: .55rem; }
.landing-auth-links a, .landing-auth-links button { color: #dbcdcc; background: transparent; border: 0; font: inherit; font-size: .83rem; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.landing-auth-links__primary { padding: .45rem .8rem; color: #111 !important; background: linear-gradient(90deg, #facc15, #f97316); border-radius: 999px; }
.landing-nav-toggle { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; }
.landing-nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

.landing-main { min-height: calc(100vh - 92px); }
.landing-hero { min-height: 50vh; margin: 0; border: 0; border-radius: 0; }
.landing-hero--small { min-height: 40vh; }
.landing-hero h1 { background: linear-gradient(to bottom, #fff 0%, var(--app-color, #fbbf24) 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.landing-timer { position: relative; display: inline-flex; flex-direction: column; gap: .35rem; margin: 1rem auto 1.5rem; padding: .75rem 1.6rem; border: 1px solid rgba(251, 191, 36, .3); border-radius: 999px; background: rgba(0, 0, 0, .55); box-shadow: 0 0 45px rgba(251, 191, 36, .22); }
.landing-timer span { color: #f6d487; font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.landing-timer strong { color: #fff; }
.landing-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; }
.landing-bg-section { position: relative; padding: 2rem 1rem 4rem; background-image: linear-gradient(rgba(0,0,0,.48), rgba(0,0,0,.82)), var(--section-bg, linear-gradient(135deg, #09090b, #18181b)); background-size: cover; background-position: center; background-attachment: fixed; }
.landing-wide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 9fr) minmax(280px, 3fr); gap: 1.5rem; width: min(1600px, 100%); margin: 0 auto; }
.landing-news-panel, .landing-event-panel, .landing-widget { border: 1px solid rgba(245,168,95,.2); border-radius: 28px; background: rgba(0,0,0,.68); box-shadow: 0 0 45px rgba(245,168,95,.14); backdrop-filter: blur(16px); }
.landing-news-panel, .landing-event-panel { padding: 1.5rem; }
.landing-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.landing-widget { padding: 1rem; }
.landing-widget-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.08); color: #b8b0a7; }
.landing-widget-row strong { color: #fff; }
.text-green { color: #22c55e !important; }
.text-red { color: #ef4444 !important; }
.landing-featured-news, .landing-mini-news { overflow: hidden; border: 1px solid rgba(245,168,95,.18); border-radius: 24px; background: rgba(0,0,0,.75); }
.landing-featured-news { display: grid; grid-template-columns: minmax(280px, .9fr) 1fr; margin-bottom: 1.5rem; }
.landing-featured-news img, .landing-mini-news img { width: 100%; height: 100%; object-fit: cover; }
.landing-featured-news div, .landing-mini-news div { padding: 1.25rem; }
.landing-featured-news span, .landing-mini-news span { display: inline-flex; margin-bottom: .7rem; padding: .25rem .65rem; color: #111; background: #f5a85f; border-radius: 999px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.landing-featured-news h3, .landing-mini-news h3 { margin: 0 0 .7rem; color: #fff; }
.landing-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.landing-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-filter { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0 auto 2rem; }
.landing-filter button, .landing-pagination button { min-width: 96px; padding: .65rem 1rem; color: #e5e5e5; background: rgba(0,0,0,.72); border: 1px solid rgba(245,168,95,.28); border-radius: 999px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.landing-filter button.is-active, .landing-pagination button:not(:disabled):hover { color: #111; background: linear-gradient(90deg, #facc15, #f97316); }
.landing-news-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; width: min(1280px, 100%); margin: 0 auto; }
.landing-news-grid .landing-news-card { display: flex; flex-direction: column; grid-template-columns: none; background: rgba(24,24,27,.82); border-color: rgba(255,255,255,.12); }
.landing-news-grid .landing-news-card__image { min-height: 0; aspect-ratio: 16 / 9; }
.landing-pagination { gap: 1rem; align-items: center; color: #c8c0b7; }
.landing-footer { background: rgba(0,0,0,.76); border-top: 1px solid rgba(255,255,255,.08); }
.landing-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1200px, 100%); margin: 0 auto; padding: .75rem 1rem; }
.landing-footer img { height: 80px; width: auto; object-fit: contain; }
.landing-footer__links { display: flex; gap: 1rem; }
.landing-discord { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.landing-discord__panel { width: min(360px, calc(100vw - 2rem)); overflow: hidden; border: 1px solid rgba(129,140,248,.35); border-radius: 24px; background: #111827; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.landing-discord__head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; color: #fff; background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.landing-discord__head button, .landing-discord__button { border: 0; cursor: pointer; }
.landing-discord__button { width: 64px; height: 64px; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7, #db2777); border-radius: 50%; font-weight: 900; box-shadow: 0 18px 40px rgba(99,102,241,.35); }

@media (max-width: 900px) {
    .landing-nav-toggle { display: flex; }
    .landing-nav-menu { position: fixed; top: 56px; left: 0; bottom: 0; width: min(320px, 82vw); flex-direction: column; align-items: stretch; padding: 1rem; background: rgba(0,0,0,.94); transform: translateX(-100%); transition: transform .2s ease; }
    .landing-nav-menu.is-open { transform: translateX(0); }
    .landing-auth-links { margin-left: auto; }
    .landing-wide-grid, .landing-featured-news, .landing-news-grid { grid-template-columns: 1fr; }
    .landing-card-grid, .landing-card-grid--two { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .landing-auth-links a:not(.landing-auth-links__primary), .landing-auth-links form { display: none; }
    .landing-footer__inner { flex-direction: column; text-align: center; }
}

.landing-body {
    background: #07080d;
    color: #eadfc9;
}

.landing-shell,
.landing-content-wrapper {
    background: radial-gradient(circle at top, rgba(104, 61, 24, .22), transparent 34%), linear-gradient(180deg, #080910 0%, #11101a 48%, #08080c 100%);
}

.landing-navbar {
    background: rgba(7, 8, 13, .84) !important;
    border-bottom: 1px solid rgba(218, 163, 76, .28);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
}

.landing-navbar .navbar-brand,
.landing-navbar .nav-link {
    color: #f7e9c6 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.landing-navbar .nav-link:hover {
    color: #d9a348 !important;
}

.landing-container {
    max-width: 1180px;
}

.landing-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1rem -15px 2rem;
    padding: 6rem 1.5rem;
    overflow: hidden;
    text-align: center;
    background-image: linear-gradient(rgba(5, 6, 11, .46), rgba(5, 6, 11, .86)), var(--hero-bg, radial-gradient(circle at 50% 18%, rgba(216, 145, 46, .35), transparent 28%), linear-gradient(135deg, #18101c, #071019 58%, #140b0d));
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(218, 163, 76, .2);
    border-radius: 0 0 34px 34px;
    box-shadow: inset 0 -80px 120px rgba(0, 0, 0, .78), 0 30px 80px rgba(0, 0, 0, .35);
}

.landing-hero:before,
.landing-hero:after {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 56%;
    background: radial-gradient(ellipse at center, rgba(218, 163, 76, .25), transparent 62%);
    animation: landingGlow 5s ease-in-out infinite alternate;
}

.landing-hero:after {
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 34%, transparent 66%, rgba(0, 0, 0, .72));
    animation: none;
}

.landing-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.landing-logo {
    width: min(72vw, 300px);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7));
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.7rem);
    font-weight: 900;
    line-height: .92;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(217, 163, 72, .45), 0 10px 30px rgba(0, 0, 0, .88);
}

.landing-kicker {
    margin: 0 0 .75rem;
    color: #d9a348;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.landing-lead {
    max-width: 650px;
    margin: 1.4rem auto 2rem;
    color: #eadfc9;
    font-size: 1.2rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
}

.landing-btn {
    min-width: 180px;
    padding: .9rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-btn--primary {
    color: #1b1006;
    background: linear-gradient(180deg, #ffd778, #c47c20);
    border: 1px solid #ffe0a0;
    box-shadow: 0 12px 36px rgba(217, 163, 72, .34);
}

.landing-btn--ghost {
    color: #f9e7bc;
    background: rgba(12, 13, 20, .72);
    border: 1px solid rgba(217, 163, 72, .55);
}

.landing-stats,
.landing-features,
.landing-grid {
    display: grid;
    gap: 1rem;
}

.landing-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 3rem;
}

.landing-stat,
.landing-feature,
.landing-panel {
    background: linear-gradient(180deg, rgba(31, 27, 34, .94), rgba(10, 12, 19, .94));
    border: 1px solid rgba(217, 163, 72, .28);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.landing-stat {
    padding: 1.25rem;
    text-align: center;
}

.landing-stat i,
.landing-feature i {
    color: #d9a348;
    font-size: 1.8rem;
    margin-bottom: .7rem;
}

.landing-stat span,
.landing-muted {
    display: block;
    color: #a89b86;
}

.landing-stat strong {
    display: block;
    color: #fff5db;
    font-size: 1.55rem;
}

.landing-section {
    margin: 3rem 0;
}

.landing-section__heading,
.landing-panel__head {
    margin-bottom: 1.15rem;
}

.landing-section h2,
.landing-panel h2 {
    color: #fff5db;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature {
    padding: 1.6rem;
}

.landing-feature h3,
.landing-news h3,
.landing-rank strong {
    color: #fff3d1;
}

.landing-feature p,
.landing-news p {
    color: #b9ad96;
}

.landing-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    margin-bottom: 2rem;
}

.landing-panel {
    padding: 1.4rem;
}

.landing-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-panel__head a,
.landing-news a {
    color: #d9a348;
}

.landing-news {
    padding: 1rem 0;
    border-top: 1px solid rgba(217, 163, 72, .18);
}

.landing-news span {
    color: #07080d;
    background: #d9a348;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-rank {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: .8rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(217, 163, 72, .16);
}

.landing-rank span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #1b1006;
    background: #d9a348;
    border-radius: 50%;
    font-weight: 900;
}

.landing-rank em {
    color: #d8c49a;
    font-style: normal;
}

.landing-footer {
    color: #9d907b;
    background: #05060a;
    border-top: 1px solid rgba(217, 163, 72, .22);
}

.landing-page-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    margin: -1rem -15px 2rem;
    padding: 5rem 1.5rem;
    overflow: hidden;
    text-align: center;
    background-image: linear-gradient(rgba(5, 6, 11, .42), rgba(5, 6, 11, .88)), var(--page-bg, radial-gradient(circle at 50% 15%, rgba(217, 163, 72, .3), transparent 28%), linear-gradient(135deg, #150d18, #071019 58%, #160c0d));
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(217, 163, 72, .22);
    border-radius: 0 0 30px 30px;
    box-shadow: inset 0 -80px 120px rgba(0, 0, 0, .75), 0 24px 70px rgba(0, 0, 0, .32);
}

.landing-page-hero--compact {
    min-height: 300px;
}

.landing-page-hero h1 {
    max-width: 960px;
    margin: 0 auto;
    color: #fff3d1;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(217, 163, 72, .38), 0 10px 26px rgba(0, 0, 0, .86);
}

.landing-page-hero p:not(.landing-kicker) {
    max-width: 700px;
    margin: 1rem auto 0;
    color: #d8cdb6;
    font-size: 1.08rem;
}

.landing-download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 2rem;
}

.landing-download-card,
.landing-news-card,
.landing-article {
    background: linear-gradient(180deg, rgba(31, 27, 34, .94), rgba(10, 12, 19, .96));
    border: 1px solid rgba(217, 163, 72, .28);
    border-radius: 20px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.landing-download-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.35rem;
}

.landing-download-card__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 1.1rem;
    color: #1b1006;
    background: linear-gradient(180deg, #ffd778, #c47c20);
    border-radius: 18px;
    font-size: 1.65rem;
    box-shadow: 0 12px 30px rgba(217, 163, 72, .24);
}

.landing-download-card__body {
    flex: 1;
}

.landing-download-card h2,
.landing-news-card h2 {
    color: #fff3d1;
    font-weight: 900;
}

.landing-download-card p,
.landing-news-card p {
    color: #b9ad96;
}

.landing-file-meta {
    display: inline-flex;
    align-items: center;
    margin-top: .4rem;
    padding: .3rem .75rem;
    color: #f7e9c6;
    background: rgba(217, 163, 72, .12);
    border: 1px solid rgba(217, 163, 72, .22);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.landing-download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.35rem;
}

.landing-news-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.landing-news-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
}

.landing-news-card__image {
    min-height: 210px;
    background: rgba(217, 163, 72, .08);
}

.landing-news-card__image img,
.landing-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-news-card__content {
    padding: 1.35rem;
}

.landing-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-bottom: .75rem;
    color: #a89b86;
    font-size: .84rem;
}

.landing-news-meta--center {
    justify-content: center;
    margin: 1rem 0 0;
}

.landing-news-meta span {
    color: #07080d;
    background: #d9a348;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-news-card h2 a,
.landing-read-more,
.landing-back-link {
    color: #d9a348;
}

.landing-read-more,
.landing-back-link {
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.landing-empty {
    padding: 2rem;
    color: #b9ad96;
    background: rgba(15, 17, 25, .84);
    border: 1px solid rgba(217, 163, 72, .22);
    border-radius: 18px;
    text-align: center;
}

.landing-pagination {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.landing-article-wrap {
    max-width: 920px;
    margin: 0 auto 2rem;
}

.landing-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.landing-article {
    overflow: hidden;
}

.landing-article__image {
    max-height: 520px;
}

.landing-article__content {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    color: #d8cdb6;
    line-height: 1.8;
}

.landing-article__content h1,
.landing-article__content h2,
.landing-article__content h3,
.landing-article__content strong {
    color: #fff3d1;
}

.landing-article__content a {
    color: #d9a348;
}

.landing-article__content img {
    max-width: 100%;
    border-radius: 14px;
}

.landing-content-wrapper .card {
    color: #eadfc9;
    background: rgba(15, 17, 25, .96);
    border: 1px solid rgba(217, 163, 72, .24);
}

.landing-content-wrapper .card-header,
.landing-content-wrapper .card-footer {
    background: rgba(217, 163, 72, .08);
    border-color: rgba(217, 163, 72, .18);
}

.landing-content-wrapper .table,
.landing-content-wrapper .text-muted {
    color: #b9ad96 !important;
}

@keyframes landingGlow {
    from { opacity: .45; transform: scale(.96); }
    to { opacity: .85; transform: scale(1.04); }
}

@media (max-width: 991.98px) {
    .landing-stats,
    .landing-features,
    .landing-grid,
    .landing-download-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-panel--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .landing-hero {
        min-height: 560px;
        padding: 4.5rem 1rem;
    }

    .landing-stats,
    .landing-features,
    .landing-grid,
    .landing-download-grid,
    .landing-news-card {
        grid-template-columns: 1fr;
    }

    .landing-news-card__image {
        min-height: 190px;
    }

    .landing-actions,
    .landing-btn {
        width: 100%;
    }

    .landing-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }
}
