/* Glock — website styles
 * Plum-black ground, Glock pink as the only accent, Discord blurple only on Discord links.
 * Signature: the outline of the Glock "G" drawn once around the Discord preview.
 */

:root {
    --ink: #120d14;
    --raised: #1b1520;
    --raised-2: #241c2a;
    --line: #2f2535;
    --text: #f4eef3;
    --muted: #a99aa7;
    --pink: #ff2d55;
    --pink-soft: #ff8fa6;
    --blurple: #5865f2;
    --radius-lg: 22px;
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1120px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent-link { color: var(--pink-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.accent-link:hover { color: #fff; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #ff4a6c; }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: #6d78f5; }
.btn-ghost { border-color: #4b3c52; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-donate { border-color: var(--line); color: var(--pink-soft); background: transparent; }
.btn-donate:hover { border-color: var(--pink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-unavailable { background: var(--raised-2); color: var(--muted); cursor: default; }
.btn-unavailable:hover { background: var(--raised-2); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 13, 20, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 18px/1 var(--font-display); letter-spacing: .02em; }
.logo-mark { width: 34px; height: 34px; color: var(--pink); }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav > a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav > a:not(.btn):hover { color: var(--text); }
.lang-switch { margin-left: 4px; border: 1px solid var(--line); font-size: 13px !important; font-weight: 600; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.live { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--pink-soft); font-weight: 600; }
.live[hidden] { display: none; }
.os-note { flex-basis: 100%; max-width: 460px; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Signature: the Glock "G" outline traced around the preview */
.stage { position: relative; padding: 34px 26px 30px 34px; }
.stage-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage-line path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s .2s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------- Discord preview ---------- */
.mock { position: relative; border-radius: 16px; background: #313338; border: 1px solid #3f4147; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); overflow: hidden; font: 14px/1.4 var(--font); color: #dbdee1; }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1e1f22; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3f4147; }
.mock-bar span { margin-left: 8px; color: #949ba4; font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 58px 1fr; min-height: 380px; }
.mock-rail { background: #1e1f22; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.srv { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: #313338; }
.srv-glock { border-radius: 12px; background: var(--pink); }
.mock-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #26272b; font-weight: 600; color: #f2f3f5; }
.chat-head small { color: #949ba4; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.c-pink { background: #c2185b; } .c-blue { background: #3b5bdb; } .c-green { background: #2b8a3e; } .c-gold { background: #b7791f; }
.name { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #f2f3f5; }
.name time { color: #949ba4; font-size: 11px; font-weight: 400; }
.badge-glock { width: 16px; height: 16px; border-radius: 4px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.spotify { margin-top: 8px; max-width: 340px; padding: 10px 12px; border-radius: 8px; background: #2b2d31; }
.spotify-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #b5bac1; margin-bottom: 8px; }
.spotify-dot { width: 12px; height: 12px; border-radius: 50%; background: #1db954; }
.spotify-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.cover { width: 52px; height: 52px; border-radius: 6px; background: conic-gradient(from 210deg, #2a1030, #ff2d55, #2a1030); }
.spotify b { display: block; color: #f2f3f5; font-size: 13px; }
.spotify small { display: block; color: #b5bac1; font-size: 12px; }
.bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 6px; font: 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #b5bac1; }
.bar i { height: 4px; border-radius: 2px; background: #f2f3f5; }
.chat-input { margin: 0 16px 14px; padding: 11px 14px; border-radius: 8px; background: #383a40; color: #6d6f78; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #232428; border-top: 1px solid #1e1f22; min-width: 0; }
.me .av { width: 32px; height: 32px; font-size: 13px; }
.me b { display: block; color: #f2f3f5; font-size: 13px; }
#mock-status { display: block; color: #b5bac1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
#mock-status.swap { opacity: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 34em; }

/* Features: three groups, each a column of plain rows */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.group h3 { font-size: 15px; color: var(--pink-soft); font-weight: 650; padding-bottom: 14px; border-bottom: 1px solid var(--pink); margin-bottom: 4px; }
.feature { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature h4 { margin: 0 0 6px; font: 650 17px/1.3 var(--font-display); }
.feature p { color: var(--muted); font-size: 15px; }

/* Install steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 24px 26px; border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; border: 2px solid var(--pink); color: var(--pink-soft); font: 750 16px/1 var(--font-display); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.donate-line { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.os-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta .accent-link { font-weight: 600; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-layout .section-head { display: block; margin: 0; }
.faq-layout .section-head p { margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 17px/1.4 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Closing call to action */
.closing { padding: 0 0 96px; border-top: 0; }
.closing-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 48px; border-radius: var(--radius-lg); border: 2px solid var(--pink); }
.closing-box p { color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Plugins page ---------- */
.page-head { padding: 64px 0 32px; }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.plugins-page { padding-bottom: 96px; }
.plugin-search { width: 100%; max-width: 520px; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font: 16px var(--font); }
.plugin-search::placeholder { color: var(--muted); }
.plugin-search:focus { outline: none; border-color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 32px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.plugin-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plugin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font: 650 16px/1.3 var(--font-display); }
.plugin-card p { color: var(--muted); font-size: 14px; }
.plugin-tag { padding: 2px 8px; border-radius: 999px; background: var(--raised-2); color: var(--pink-soft); font: 600 12px/1.4 var(--font); }
.plugin-empty { color: var(--muted); padding: 24px 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: #d8ccd6; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }

/* ---------- 404 ---------- */
.error-page { min-height: 64vh; display: grid; place-items: center; padding: 72px 0; text-align: center; }
.error-code { font: 800 clamp(96px, 20vw, 180px)/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 3px var(--pink); }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 12px; }
.error-page p { color: var(--muted); }
.error-page .cta { justify-content: center; }
.muted-en { color: var(--muted); font-size: 14px; }

/* ---------- Toast (donations) ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--raised-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The page uses a single orchestrated motion (the trace); sections do not animate in */
.reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: none; }
    .section-head, .faq-layout { grid-template-columns: 1fr; gap: 16px; }
    .groups { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: 1fr; }
    .closing-box { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 40px 0 64px; }
    section { padding: 64px 0; }
    .stage { padding: 22px 14px 18px 20px; }
    .mock-body { grid-template-columns: 48px 1fr; min-height: 0; }
    .srv { width: 32px; height: 32px; }
    .chat-head small { display: none; }
    .btn { width: 100%; }
    .nav .btn { width: auto; }
    .nav nav { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stage-line path { animation: none; stroke-dashoffset: 0; }
    #mock-status { transition: none; }
}
