:root {
    --bg: #0a0a0a;
    --panel: #121214;
    --panel-2: #17171b;
    --line: rgb(255 255 255 / 9%);
    --text: #f4f2ff;
    --muted: #a09bb8;
    --accent: #b48bff;
    --accent-2: #6d4cf0;
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { background: rgb(255 255 255 / 8%); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
section.container { padding: 56px 0; }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgb(10 10 10 / 72%);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

.nav-menu { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-menu .nav-download { margin-left: auto; }

.nav-link, .dropdown-btn {
    color: #cfcbe3;
    font: inherit;
    font-size: 0.92rem;
    background: none;
    border: 0;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.nav-link:hover, .dropdown-btn:hover { color: #fff; background: rgb(255 255 255 / 6%); text-decoration: none; }

.dropdown { position: relative; }
.chev { display: inline-block; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg) scale(0.9); margin-left: 4px; transition: transform .2s; }
.dropdown:hover .chev, .dropdown:focus-within .chev { transform: translateY(1px) rotate(225deg) scale(0.9); }

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 8px;
    margin-top: 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 55%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s, transform .16s, visibility .16s;
}
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel a { display: block; padding: 9px 12px; border-radius: 9px; color: #dedaf0; font-size: 0.92rem; }
.dropdown-panel a:hover { background: rgb(180 139 255 / 14%); color: #fff; text-decoration: none; }

.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 12px;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-light { background: #fff; color: #0a0a0a; }
.btn-light:hover { box-shadow: 0 0 26px rgb(180 139 255 / 45%); }
.btn-ghost { background: rgb(255 255 255 / 5%); color: #fff; border-color: rgb(255 255 255 / 16%); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 40px; text-align: center; }

.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: 0.28; }
.glow-a { width: 520px; height: 520px; left: calc(50% - 560px); top: -120px; background: #5a35e8; }
.glow-b { width: 460px; height: 460px; left: calc(50% + 120px); top: -60px; background: #9b45d8; opacity: 0.2; }

.hero-inner { position: relative; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 22px; }
.grad { background: linear-gradient(90deg, #fff, #c9a8ff 60%, #8f6bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { max-width: 640px; margin: 0 auto 10px; color: #cbc6e2; font-size: clamp(1rem, 2vw, 1.15rem); }
.sub { margin: 0 0 30px; color: var(--muted); font-size: 0.9rem; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.avail { margin-top: 18px; color: var(--muted); font-size: 0.85rem; }
.avail strong { color: #e6defa; }

/* ---------- screenshot ---------- */
.shot { padding-top: 24px; }
.frame { margin: 0; border-radius: 18px; padding: 8px; background: linear-gradient(160deg, rgb(180 139 255 / 35%), rgb(255 255 255 / 4%) 40%, rgb(109 76 240 / 30%)); box-shadow: 0 30px 80px rgb(70 40 170 / 35%); }
.frame img { width: 100%; height: auto; border-radius: 12px; }
.caption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* ---------- sections ---------- */
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; text-align: center; margin: 0 0 32px; }
.section-title.left { text-align: left; margin-bottom: 14px; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid .big { grid-column: 1 / -1; }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgb(180 139 255 / 12%); border: 1px solid rgb(180 139 255 / 25%); color: #dccbff; font-size: 0.85rem; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.rel-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rel-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / 4%); font-size: 0.92rem; }
.rel-list li span:last-child { color: var(--muted); }
.link { font-size: 0.9rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(180deg, var(--accent-2), #4a31b8); box-shadow: 0 0 18px rgb(150 100 255 / 45%); }
.note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgb(250 204 21 / 8%); border: 1px solid rgb(250 204 21 / 28%); color: #f3e3a3; font-size: 0.9rem; }

.credits { text-align: center; }

.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.member { width: 190px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
a.member:hover { text-decoration: none; transform: translateY(-3px); border-color: rgb(180 139 255 / 45%); box-shadow: 0 10px 30px rgb(80 50 190 / 25%); }
.member strong { font-size: 1.05rem; margin-top: 10px; }
.member span { color: var(--muted); font-size: 0.85rem; }
.member.owner { border-color: rgb(180 139 255 / 40%); background: linear-gradient(180deg, rgb(109 76 240 / 14%), var(--panel)); }
.member.owner span { color: var(--accent); font-weight: 600; }
.avatar { box-shadow: 0 0 0 2px rgb(180 139 255 / 40%); width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 2rem; font-weight: 700; background: linear-gradient(180deg, var(--accent-2), #4a31b8); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.85rem; }
.foot-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        background: #0a0a0a;
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu .nav-download { margin: 8px 0 0; }
    .dropdown-btn { width: 100%; text-align: left; }
    .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; border: 0; padding: 0 0 6px 12px; margin: 0; }
    .grid, .grid.two, .split { grid-template-columns: 1fr; }
    .hero { padding-top: 64px; }
    .glow-a { left: -200px; }
    .glow-b { left: auto; right: -200px; }
}

.page-head { position: relative; text-align: center; padding: 72px 0 16px; overflow: hidden; }
.page-head .lead { margin-top: 12px; }

.team-cat { margin-bottom: 40px; }
.team-cat-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.team-cat-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(180 139 255 / 35%), transparent); }
.team-cat .team { justify-content: flex-start; }
#teamGrid { max-width: 880px; margin: 0 auto; }

/* ---------- pages: footer links, explore tiles, active nav ---------- */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.foot-links a { color: #cfcbe3; }
.foot-links a.current, .nav-link.current { color: #fff; }
.nav-link.current { background: rgb(255 255 255 / 8%); }

.grid.explore { grid-template-columns: repeat(4, 1fr); }
a.tile { display: block; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
a.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: rgb(180 139 255 / 45%); box-shadow: 0 10px 30px rgb(80 50 190 / 22%); }
a.tile p { margin-bottom: 0; }

/* ---------- plugins page ---------- */
.plugin-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
#pluginSearch { flex: 1 1 260px; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; outline: none; }
#pluginSearch:focus { border-color: rgb(180 139 255 / 60%); box-shadow: 0 0 0 3px rgb(150 100 255 / 18%); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 0.88rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: #cfcbe3; cursor: pointer; transition: background .15s, border-color .15s; }
.filter b { font-weight: 600; color: var(--muted); margin-left: 4px; }
.filter:hover { border-color: rgb(180 139 255 / 40%); }
.filter.active { background: rgb(109 76 240 / 28%); border-color: rgb(180 139 255 / 55%); color: #fff; }
.filter.active b { color: #dccbff; }

.plug-group { margin-top: 34px; }
.plug-group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -0.01em; }
.plug-count { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgb(180 139 255 / 14%); color: #dccbff; }
.plug-intro { margin: 0 0 16px; font-size: 0.9rem; }
.plug-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plug { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.plug h3 { margin: 0 0 6px; font-size: 1rem; }
.plug p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 980px) { .plug-grid { grid-template-columns: repeat(2, 1fr); } .grid.explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plug-grid, .grid.explore { grid-template-columns: 1fr; } }

/* ---------- themes page ---------- */
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.explore { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.theme-card .link { display: inline-block; margin-top: 4px; }
.theme-card.soon { border-style: dashed; border-color: rgb(180 139 255 / 35%); background: linear-gradient(180deg, rgb(109 76 240 / 10%), var(--panel)); }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgb(180 139 255 / 18%); color: #dccbff; border: 1px solid rgb(180 139 255 / 35%); }
@media (max-width: 820px) { .grid.three { grid-template-columns: 1fr; } }

/* icons inside dropdown items */
.dropdown-panel a:has(.dd-icon) { display: flex; align-items: center; gap: 10px; }
.dd-icon { width: 18px; height: 18px; flex: none; opacity: 0.9; }

/* ---------- download card ---------- */
.dl-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 30px; background: linear-gradient(180deg, rgb(109 76 240 / 16%), var(--panel)); border-color: rgb(180 139 255 / 35%); }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.dl-card p { margin: 0; }
.dl-card .btn { flex: none; }
@media (max-width: 620px) { .dl-card .btn { width: 100%; } }

/* ---------- plugin source picture (Vantacord / Equicord / Vencord) ---------- */
.plug-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.plug-head h3 { margin: 0; overflow-wrap: anywhere; }
.src-badge { width: 26px; height: 26px; flex: none; border-radius: 7px; object-fit: contain; }
.plugin-tools #pluginSearch { flex: 1 1 100%; }

.big-count { color: #fff; font-size: 1.15em; }

/* ---------- click-to-enlarge picture ---------- */
[data-zoom] { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
[data-zoom]:hover { transform: translateY(-2px); }
[data-zoom]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.no-scroll { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(5 4 12 / 94%); animation: lb-in .18s ease; }
.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-out; user-select: none; -webkit-user-select: none; }
.lightbox-stage img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 90px rgb(70 40 170 / 45%); transform-origin: center center; image-rendering: auto; cursor: zoom-in; -webkit-user-drag: none; }
.lightbox-stage.zoomed img { cursor: grab; }
.lightbox-stage.zoomed img:active { cursor: grabbing; }

.lightbox-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgb(20 18 32 / 88%); border: 1px solid rgb(255 255 255 / 14%); backdrop-filter: blur(8px); }
.lightbox-bar button { min-width: 38px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: rgb(255 255 255 / 8%); color: #fff; font: inherit; font-size: 1.1rem; cursor: pointer; }
.lightbox-bar button:hover { background: rgb(255 255 255 / 18%); }
.lightbox-zoom { min-width: 52px; text-align: center; font-size: 0.85rem; color: #cfcbe3; }
.lightbox-close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 25%); background: rgb(255 255 255 / 8%); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgb(255 255 255 / 16%); }
.lightbox-hint { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 7%); color: #cfcbe3; font-size: 0.82rem; pointer-events: none; white-space: nowrap; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }
@media (max-width: 620px) { .lightbox-hint { display: none; } }

.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-actions[hidden], .dl-actions .btn[hidden] { display: none; }
@media (max-width: 620px) { .dl-actions { width: 100%; } .dl-actions .btn { flex: 1 1 100%; } }
