/* Evil6 – shared design system
 *
 * Tokens        :root custom properties below – use them, don't hardcode colours.
 * Layout        .container .container-narrow .section .section-sm .section-head .grid .grid-2/3/4 .stack .row
 * Text          .eyebrow .lead .muted .dim .center .gradient-text .prose
 * Buttons       .btn + .btn-primary .btn-secondary .btn-ghost .btn-discord .btn-danger · .btn-sm .btn-lg .btn-block
 * Surfaces      .card .card-hover .card-icon · .callout(-info/-tip/-warn/-danger) .callout-title
 * Labels        .badge(-accent/-ok/-warn/-crit/-info/-soon) · .perm(-everyone/-mod/-admin) (see perm_badge())
 * Code          code .cmd pre kbd
 * Data          .table-wrap > table.table · .faq > details
 * Lists         .checklist .link-arrow .small · .plans > .plan(.plan-plus) .plan-price .plan-badge
 * Forms         .field .label .input .select .textarea .help .switch .seg
 * Discord mock  .dc .dc-sidebar .dc-channel .dc-chat .dc-msg .dc-avatar .dc-body .dc-meta .dc-name
 *               .dc-tag .dc-time .dc-text .dc-embed (--embed-color) .dc-embed-* .dc-field(s)
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0b0816;
  --bg-elev: #110d1f;
  --surface: #161127;
  --surface-2: #1d1733;
  --surface-3: #261f40;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eeeaf6;
  --text-muted: #a8a1bd;
  --text-dim: #746d8c;

  --accent: #ff2e4d;
  --accent-hover: #ff4a66;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 46, 77, 0.12);
  --accent-line: rgba(255, 46, 77, 0.35);
  --violet: #8f4dff;
  --violet-soft: rgba(143, 77, 255, 0.14);
  --gradient: linear-gradient(120deg, #ff2e4d 0%, #e0207a 45%, #8f4dff 100%);

  --ok: #3dd68c;
  --ok-soft: rgba(61, 214, 140, 0.12);
  --warn: #f6b93b;
  --warn-soft: rgba(246, 185, 59, 0.12);
  --crit: #ff4d5e;
  --crit-soft: rgba(255, 77, 94, 0.13);
  --info: #4ea8ff;
  --info-soft: rgba(78, 168, 255, 0.12);

  --discord: #5865f2;
  --discord-hover: #4752c4;
  --dc-bg: #313338;
  --dc-side: #2b2d31;
  --dc-deep: #1e1f22;
  --dc-text: #dbdee1;
  --dc-muted: #949ba4;
  --dc-hover: #35373c;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #fff;
  font-weight: 700;
}
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-hover); margin: 0 0 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); line-height: 1.65; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 0.95rem/1.2 var(--font-sans);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-primary {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-border: transparent;
  box-shadow: 0 8px 24px -10px rgba(255, 46, 77, 0.7);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(255, 46, 77, 0.85); }
.btn-secondary { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-border: var(--border-strong); }
.btn-ghost:hover, .btn-ghost.is-active { background: var(--surface-2); }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; --btn-border: transparent; }
.btn-discord:hover { background: var(--discord-hover); }
.btn-danger { --btn-bg: var(--crit-soft); --btn-fg: var(--crit); --btn-border: rgba(255, 77, 94, 0.35); }
.btn-danger:hover { background: rgba(255, 77, 94, 0.22); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.88rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 8, 22, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.2rem/1 var(--font-display); color: #fff; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 9px; }
.lang-switch a {
  padding: 4px 9px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  color: var(--text-dim);
}
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: transparent; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; margin: 0 auto;
  position: relative; transition: transform 0.2s, background 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-actions { margin: 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-elev); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 14px 0 18px; max-width: 34ch; font-size: 0.92rem; }
.footer-title { font: 600 0.8rem/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin: 6px 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.93rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cards, callouts, badges ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card > :last-child { margin-bottom: 0; }
.card-hover { transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.card-hover:hover { border-color: var(--accent-line); transform: translateY(-2px); background: var(--surface-2); }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; font-size: 1.35rem; line-height: 1;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.callout {
  --c: var(--info); --c-soft: var(--info-soft);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: var(--c-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: 700; color: var(--c); margin-bottom: 4px; }
.callout-tip { --c: var(--ok); --c-soft: var(--ok-soft); }
.callout-warn { --c: var(--warn); --c-soft: var(--warn-soft); }
.callout-danger { --c: var(--crit); --c-soft: var(--crit-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 214, 140, 0.3); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(246, 185, 59, 0.3); }
.badge-crit { background: var(--crit-soft); color: var(--crit); border-color: rgba(255, 77, 94, 0.3); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: rgba(78, 168, 255, 0.3); }
.badge-soon { background: var(--violet-soft); color: #b98bff; border-color: rgba(143, 77, 255, 0.35); }

.perm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--border);
}
.perm-everyone { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 214, 140, 0.3); }
.perm-mod { background: var(--info-soft); color: var(--info); border-color: rgba(78, 168, 255, 0.3); }
.perm-admin { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-line); }

/* ---------- Code ---------- */

code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
code { padding: 0.12em 0.4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: #f3dcff; }
.cmd { color: #ffb3c0; background: var(--accent-soft); border-color: var(--accent-line); white-space: nowrap; }
kbd { padding: 0.1em 0.45em; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); }
pre {
  margin: 1.2em 0; padding: 16px 18px; overflow-x: auto;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  line-height: 1.55;
}
pre code { padding: 0; background: none; border: 0; color: var(--text); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 1.2em 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th { background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Prose (docs, legal) ---------- */

.prose { color: var(--text); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; padding-top: 0.2em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.prose h4 { margin: 1.5em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--text-dim); }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 600; color: #fff; }
.prose dd { margin: 0 0 0.8em; color: var(--text-muted); }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-hover); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-muted); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.label { font-weight: 600; font-size: 0.92rem; color: #fff; }
.help { font-size: 0.84rem; color: var(--text-dim); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 9px;
  font: 0.95rem/1.4 var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select {
  appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.input[aria-invalid="true"] { border-color: var(--crit); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border-strong); position: relative; transition: background 0.2s, border-color 0.2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
}
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.switch input:disabled + .track { opacity: 0.5; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 14px; border-radius: 7px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.seg input:checked + span { background: var(--surface-3); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-hover); }

/* ---------- Discord mock UI ---------- */

.dc {
  display: grid; grid-template-columns: 220px 1fr;
  background: var(--dc-bg); color: var(--dc-text);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
  font: 15px/1.375 var(--font-sans);
  text-align: left;
}
.dc-sidebar { background: var(--dc-side); padding: 12px 8px; }
.dc-server { font-weight: 700; color: #f2f3f5; padding: 4px 8px 12px; margin: 0 -8px 8px; border-bottom: 1px solid var(--dc-deep); font-size: 0.95rem; padding-inline: 16px; }
.dc-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--dc-muted); padding: 14px 8px 4px; }
.dc-channel {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px;
  color: var(--dc-muted); font-weight: 500; font-size: 0.93rem; white-space: nowrap; overflow: hidden;
}
.dc-channel::before { content: "#"; font-size: 1.15em; opacity: 0.7; font-weight: 400; }
.dc-channel.is-active { background: var(--dc-hover); color: #fff; }
.dc-channel.is-gulag { color: #ff8a98; }
.dc-chat { padding: 16px 16px 20px; min-width: 0; }
.dc-chat-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #f2f3f5; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--dc-deep); }
.dc-chat-head::before { content: "#"; color: var(--dc-muted); font-weight: 400; font-size: 1.2em; }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 6px 0; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--discord); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.dc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-body { min-width: 0; }
.dc-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-tag { font-size: 0.66rem; font-weight: 600; background: var(--discord); color: #fff; padding: 1px 5px; border-radius: 3px; text-transform: uppercase; position: relative; top: -1px; }
.dc-time { font-size: 0.75rem; color: var(--dc-muted); }
.dc-text { color: var(--dc-text); overflow-wrap: anywhere; }
.dc-text a, .dc-link { color: #00a8fc; }
.dc-embed {
  margin-top: 6px; max-width: 520px;
  background: var(--dc-side); border-left: 4px solid var(--embed-color, var(--discord));
  border-radius: 4px; padding: 10px 16px 14px;
  font-size: 0.88rem;
}
.dc-embed-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #f2f3f5; font-size: 0.85rem; margin: 2px 0 6px; }
.dc-embed-author img { width: 22px; height: 22px; border-radius: 50%; }
.dc-embed-title { font-weight: 700; color: #f2f3f5; margin: 2px 0 6px; font-size: 0.95rem; }
.dc-embed-desc { color: var(--dc-text); }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.dc-field { min-width: 0; }
.dc-field.is-wide { grid-column: 1 / -1; }
.dc-field b { display: block; color: #f2f3f5; font-size: 0.82rem; margin-bottom: 2px; }
.dc-field span { color: var(--dc-text); overflow-wrap: anywhere; }
.dc-embed-footer { margin-top: 10px; color: var(--dc-muted); font-size: 0.75rem; }
.dc code { background: var(--dc-deep); border: 0; color: var(--dc-text); }
@media (max-width: 640px) {
  .dc { grid-template-columns: 1fr; }
  .dc-sidebar { display: none; }
  .dc-fields { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(255, 46, 77, 0.16), transparent 70%),
    radial-gradient(500px 240px at 85% 10%, rgba(143, 77, 255, 0.14), transparent 70%);
}
.page-hero h1 { font-size: clamp(1.85rem, 4.6vw, 3.3rem); }
.page-hero .lead { max-width: 680px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(255, 46, 77, 0.28), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(143, 77, 255, 0.26), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { max-width: 560px; margin: 0 auto 28px; }
.cta-band .row { justify-content: center; }

/* ---------- Lists, links, plans ---------- */

.small { font-size: 0.9rem; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform 0.15s; }
.link-arrow:hover span { transform: translateX(3px); }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.checklist b { color: #fff; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; }
.plan .checklist { margin: 8px 0 24px; flex: 1; }
.plan .plan-price { font: 700 1.9rem/1.2 var(--font-display); color: #fff; margin: 0 0 8px; }
.plan-plus { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(255, 46, 77, 0.08), transparent 60%), var(--surface); }
.plan-badge { position: absolute; top: -12px; right: 20px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
