/* Nexus-DEV-Tool website. Tokens follow the app's design system (apps/desktop/src/styles/index.css). */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07070c;
  --bg-2: #0d0b15;
  --surface: #12111b;
  --surface-2: #181624;
  --line: #2a2838;
  --line-strong: #3d3a52;
  --fg: #f5f5fa;
  --fg-2: #b9b8cb;
  --fg-3: #9291a8;
  --accent: #b69cff;
  --accent-strong: #7c3aed;
  --accent-hover: #8b4cf5;
  --on-accent: #ffffff;
  --neon: #a855f7;
  --tile-bg: linear-gradient(145deg, #2a1f45, #151122 60%, #0d0b15);
  --tile-fg: #d9c8ff;
  --ok: #3ddbb0;
  --warn: #f2c94c;
  --warn-bg: rgb(242 201 76 / 0.07);
  --warn-line: rgb(242 201 76 / 0.32);
  --glow: rgb(124 58 237 / 0.55);
  --wash: rgb(109 40 217 / 0.34);
  --wash-2: rgb(168 85 247 / 0.16);
  --grid-line: rgb(255 255 255 / 0.045);
  --noise-opacity: 0.06;
  --mark-gap: #07070c;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --card-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 40px -28px rgb(0 0 0 / 0.8);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fc;
  --bg-2: #efecf9;
  --surface: #ffffff;
  --surface-2: #f4f1fb;
  --line: #e1dcef;
  --line-strong: #c8bfe2;
  --fg: #15121f;
  --fg-2: #464159;
  --fg-3: #5f5a75;
  --accent: #6d28d9;
  --accent-strong: #6d28d9;
  --accent-hover: #5b21b6;
  --on-accent: #ffffff;
  --neon: #7c3aed;
  --tile-bg: linear-gradient(145deg, #efe7ff, #e4d9fb);
  --tile-fg: #5b21b6;
  --ok: #08795b;
  --warn: #7a5200;
  --warn-bg: rgb(242 201 76 / 0.16);
  --warn-line: rgb(176 130 20 / 0.42);
  --glow: rgb(109 40 217 / 0.3);
  --wash: rgb(139 92 246 / 0.2);
  --wash-2: rgb(168 85 247 / 0.1);
  --grid-line: rgb(60 40 120 / 0.06);
  --noise-opacity: 0.035;
  --mark-gap: #f7f6fc;
  --discord: #4752c4;
  --discord-hover: #3c45a5;
  --card-shadow: 0 1px 2px rgb(40 20 90 / 0.05), 0 18px 40px -30px rgb(60 30 140 / 0.35);
}

:root {
  --display: "Segoe UI Variable Display", "Segoe UI", "Inter Display", Inter, system-ui, -apple-system, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  /* Type scale 1.25 on 17px. */
  --t-sm: 0.875rem; --t-base: 1.0625rem; --t-md: 1.25rem; --t-lg: 1.5625rem; --t-xl: clamp(1.75rem, 3.2vw, 2.25rem); --t-2xl: clamp(2.2rem, 4.6vw, 3.1rem); --t-hero: clamp(2.4rem, 5.2vw, 4.1rem);
  --gutter: 16px;
  --max: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--t-base)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd { font: 0.88em/1.4 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
kbd { border-bottom-width: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--mono); font-size: var(--t-sm); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--accent-strong); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- icons ---- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icon.tile { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--tile-bg); color: var(--tile-fg); border: 1px solid var(--line-strong); box-shadow: 0 8px 22px -14px var(--glow); }
.icon.tile.big { width: 64px; height: 64px; padding: 15px; border-radius: 18px; }
.icon.tile.ok { color: var(--ok); }
.icon.tile.warn { color: var(--warn); }
.mark { width: 30px; height: 30px; flex: none; }
.mark.big { width: 52px; height: 52px; }
.mark-gap { stroke: var(--mark-gap); }
.mark-dot { fill: var(--fg); }

/* ---- header and navigation ---- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 650 1.0625rem var(--display); text-decoration: none; margin-right: auto; padding-block: 8px; }
.mainnav { display: flex; align-items: center; gap: 8px; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.mainnav ul a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--fg-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.mainnav ul a:hover { color: var(--fg); background: var(--surface-2); }
.mainnav ul a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--accent-strong) 18%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { margin-left: 8px; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); cursor: pointer; padding: 0; }
.iconbtn:hover { color: var(--fg); border-color: var(--line-strong); }
.iconbtn .icon { width: 20px; height: 20px; }
:root[data-theme="light"] .i-sun, :root[data-theme="dark"] .i-moon, .i-close, .menu-open .i-open { display: none; }
.menu-open .i-close { display: block; }

@media (max-width: 959px) {
  /* Without JavaScript the links wrap below the logo; with it they live in a menu. */
  .top-row { flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; padding-bottom: 10px; }
  .mainnav ul { flex: 1; }
  .nav-cta { display: none; }
  .js .mainnav { display: none; }
  .js.menu-open .mainnav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 18px; border-top: 1px solid var(--line); }
  .js.menu-open .mainnav ul { flex-direction: column; }
  .js.menu-open .mainnav ul a { padding: 12px 14px; font-size: 1.0625rem; }
  .js.menu-open .nav-cta { display: inline-flex; margin: 0; }
}
@media (min-width: 960px) { .menu-btn { display: none !important; } }

.crumbs { padding-top: 18px; font-size: var(--t-sm); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 1rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease); touch-action: manipulation; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(180deg, #8b4cf5, var(--accent-strong)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 26px -12px var(--glow); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 14px 32px -12px var(--glow); }
.btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.discord { background: var(--discord); color: #fff; box-shadow: 0 10px 26px -14px rgb(88 101 242 / 0.8); }
.btn.discord:hover { background: var(--discord-hover); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- textures ---- */
.hero-bg, .page-head-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -12%, var(--wash), transparent 68%),
    radial-gradient(700px 480px at 100% 30%, var(--wash-2), transparent 70%); }
.hero-bg::before, .page-head-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 30% 10%, #000 30%, transparent 75%); }
.hero-bg::after, .page-head-bg::after { content: ""; position: absolute; inset: 0; background-image: url("/img/noise.svg"); opacity: var(--noise-opacity); mix-blend-mode: overlay; }

/* ---- cards ---- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); pointer-events: none; }
.card h3 { font-size: var(--t-md); font-weight: 650; display: flex; align-items: center; gap: 10px; }
.card h2 { font-size: var(--t-lg); font-weight: 650; display: flex; align-items: center; gap: 10px; }
.card p, .card li { color: var(--fg-2); }
.card > * + * { margin-top: 12px; }
.card > .icon.tile + h3, .card > .icon.tile + h2 { margin-top: 16px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--fg); text-decoration: none; font-weight: 600; transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.link-card:hover, .link-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--card-shadow), 0 16px 36px -22px var(--glow); }
.link-card .icon.tile { width: 42px; height: 42px; padding: 10px; }

/* ---- home ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 56px 72px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: var(--t-sm); color: var(--fg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero h1 { margin-top: 22px; font-size: var(--t-hero); font-weight: 720; letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; }
.lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.7vw, 1.25rem); color: var(--fg-2); max-width: 56ch; }
.hero .cta { margin-top: 30px; }
.hero-shot { position: relative; }
.hero-shot figcaption { margin-top: 18px; font-size: var(--t-sm); color: var(--fg-3); }
.trace { position: absolute; left: -10%; width: 120%; top: -64px; height: 110px; overflow: visible; pointer-events: none; }
.trace path { fill: none; stroke: var(--neon); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.75; }
.frame { position: relative; border-radius: 18px; padding: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent 40%), var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 50px 100px -40px var(--glow), 0 0 0 1px rgb(255 255 255 / 0.03) inset; }
.frame-glow { position: absolute; inset: 12% 8% -8%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.frame-inner { border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.chip { position: absolute; display: none; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-size: var(--t-sm); font-weight: 600; color: var(--fg); box-shadow: 0 16px 34px -18px rgb(0 0 0 / 0.7); }
.chip .icon { color: var(--accent); }
@media (min-width: 1000px) {
  .hero { padding-block: 80px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .hero-shot { margin-right: calc(-1 * min(120px, max(0px, (100vw - var(--max)) / 2))); }
  .chip { display: inline-flex; }
  .chip-a { left: -28px; bottom: 80px; }
  .chip-b { right: 120px; top: -20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .trace path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.6s var(--ease) 0.3s forwards; }
  .hero-frame { animation: rise 0.9s var(--ease) both; }
  .chip { animation: rise 0.9s var(--ease) 0.5s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.band { padding-block: 32px; }
.benefits { list-style: none; display: grid; gap: 16px; }
.benefits p { font-size: 1rem; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--accent); }
.release h2, .join-teaser h2 { font-size: var(--t-lg); }
.release { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-strong) 14%, var(--surface)), var(--surface) 60%); }
.explore { padding-bottom: 72px; }
.explore h2 { font-size: var(--t-lg); margin-bottom: 18px; }
.area-links { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.area-links.compact { margin: 28px 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ---- page header ---- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding-block: 18px 36px; border-bottom: 1px solid var(--line); }
.page-head .crumbs { padding-top: 0; margin-bottom: 22px; }
.page-head-row { display: grid; gap: 18px; }
.page-head h1 { font-size: var(--t-2xl); font-weight: 720; letter-spacing: -0.03em; }
.page-head .lead { margin-top: 10px; }
@media (min-width: 760px) { .page-head-row { grid-template-columns: auto 1fr; gap: 24px; align-items: start; } .page-head-row .icon.tile.big { margin-top: 6px; } }
.page-head .lead { max-width: 64ch; }
section.wrap, .two-col, .sec-grid, .dl-grid { margin-top: 48px; }
section.wrap > h2, .optional > h2 { font-size: var(--t-xl); font-weight: 680; letter-spacing: -0.02em; }
.lead-s { margin-top: 10px; color: var(--fg-2); max-width: 66ch; }
.sub-title { margin-top: 36px; font-size: var(--t-md); }
main > :last-child { margin-bottom: 80px; }
.two-col { display: grid; gap: 16px; }
.two-col.tight { margin-top: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-strong); color: var(--fg-2); font-size: 1rem; }
.notice .icon { margin-top: 3px; color: var(--accent); }
.notice.warn { border-left-color: var(--warn); }
.notice.warn .icon { color: var(--warn); }
.notice strong { color: var(--fg); }

/* ---- lists ---- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); }
.ticks li > .icon { margin-top: 4px; color: var(--ok); }
.ticks strong { color: var(--fg); }
.ticks.left { margin: 24px 0; text-align: left; }
.ticks.left .icon { color: var(--accent); }
.crosses { list-style: none; display: grid; border-top: 1px solid var(--line); }
.crosses li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 5px; top: calc(14px + 0.8em); width: 14px; height: 2px; border-radius: 2px; background: #ff5c7a; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.crosses.compact li { padding-block: 11px; }
.crosses.compact li::before, .crosses.compact li::after { top: calc(11px + 0.8em); }
:root[data-theme="light"] .crosses li::before, :root[data-theme="light"] .crosses li::after { background: #c0203f; }

/* ---- features ---- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; scroll-behavior: smooth; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
@media (min-width: 1100px) { .subnav ul { flex-wrap: wrap; overflow-x: visible; } .area { scroll-margin-top: 32px; } }
.subnav a:hover { color: var(--fg); border-color: var(--line-strong); }
.subnav a[aria-current] { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent-strong) 16%, transparent); }
.area { padding-block: 56px; border-bottom: 1px solid var(--line); }
.area-head { display: flex; gap: 22px; align-items: center; }
.area-head h2 { font-size: var(--t-xl); font-weight: 680; letter-spacing: -0.02em; }
.area-art { position: relative; flex: none; width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--tile-bg); border: 1px solid var(--line-strong); color: var(--tile-fg); box-shadow: 0 20px 44px -22px var(--glow); overflow: hidden; }
.area-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 12px 12px; }
.area-art::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--neon) 55%, transparent), transparent); }
.icon.art { position: relative; z-index: 1; width: 46px; height: 46px; }
.area-body { margin-top: 30px; display: grid; gap: 32px; }
@media (min-width: 900px) {
  .area-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .area.flip .area-body > .ticks { order: 2; }
  .area-body.no-shots { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 560px) { .area-head { flex-direction: column; align-items: flex-start; } .area-art { width: 72px; height: 72px; border-radius: 20px; } .icon.art { width: 36px; height: 36px; } }
.shots { display: grid; gap: 12px; }
.shots-2, .shots-3 { grid-template-columns: 1fr 1fr; }
.shots-2 figure:first-child, .shots-3 figure:first-child { grid-column: 1 / -1; }
.zoom { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 24px 50px -30px var(--glow); color: var(--fg); text-decoration: none; transition: border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.zoom:hover, .zoom:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.zoom-hint { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgb(10 8 18 / 0.78); color: #f5f5fa; font-size: 0.8125rem; font-weight: 600; backdrop-filter: blur(6px); }
.no-shot { display: grid; place-items: center; text-align: center; gap: 12px; min-height: 200px; background: var(--tile-bg); color: var(--tile-fg); }
.no-shot .icon.art { width: 54px; height: 54px; }
.no-shot p { color: var(--fg-2); max-width: 40ch; font-size: 0.95rem; }
.nots .crosses { margin-top: 28px; }
@media (min-width: 900px) { .nots .crosses { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

dialog.lightbox { width: min(1500px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--fg); overflow: visible; }
dialog.lightbox::backdrop { background: rgb(5 4 10 / 0.86); backdrop-filter: blur(4px); }
.lightbox figure { padding: 12px; }
.lightbox img { width: 100%; max-height: calc(94vh - 80px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { padding: 10px 4px 2px; color: var(--fg-2); font-size: var(--t-sm); }
.lb-close { position: absolute; top: -18px; right: -12px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: -14px; }
.lb-next { right: -14px; }
@media (max-width: 700px) { .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; top: 4px; } }

/* ---- download ---- */
.dl-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: 5fr 6fr; } }
.dl-card { background: linear-gradient(165deg, color-mix(in srgb, var(--accent-strong) 20%, var(--surface)), var(--surface) 55%); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); padding: 28px; }
.dl-card > * + * { margin-top: 18px; }
.dl-top { display: flex; gap: 16px; align-items: center; }
.dl-top h2 { font-size: var(--t-lg); }
.pending { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 0.97rem; }
.pending .icon { margin-top: 3px; color: var(--warn); }
.pending strong { color: var(--fg); }
.gate, .ok-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 0.97rem; }
.gate { background: var(--surface-2); border: 1px solid var(--line-strong); }
.gate .icon { margin-top: 3px; color: var(--accent); flex: none; }
.gate strong { color: var(--fg); }
.ok-note { border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.ok-note .icon { margin-top: 3px; color: var(--ok); flex: none; }
.dl-ready > * + * { margin-top: 12px; }
.sha-label { font-size: var(--t-sm); font-weight: 600; color: var(--fg-2); }
.sha-row { margin-top: 6px; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.sha-row code { flex: 1 1 260px; display: block; padding: 10px 12px; user-select: all; }
.small-print { font-size: var(--t-sm); }
.facts { display: grid; gap: 0; }
.facts > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--fg-2); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 110px 1fr; gap: 16px; } }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--fg-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 650 0.875rem var(--display); color: var(--tile-fg); background: var(--tile-bg); border: 1px solid var(--line-strong); }
.steps-card h2 .icon, .card h2 .icon { color: var(--accent); }
.opt-grid { margin-top: 24px; display: grid; gap: 16px; }
@media (min-width: 900px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.after .ticks { margin-top: 20px; }

/* ---- community ---- */
.join { display: grid; gap: 16px; }
@media (min-width: 860px) { .join { grid-template-columns: 3fr 2fr; } }
.join-option { display: flex; flex-direction: column; align-items: flex-start; }
.join-option .btn { margin-top: 20px; }
.primary-option { border-color: color-mix(in srgb, var(--discord) 55%, var(--line)); background: linear-gradient(165deg, color-mix(in srgb, var(--discord) 16%, var(--surface)), var(--surface) 60%); }
.consent strong { color: var(--fg); }
.server-grid, .ticket-grid { margin-top: 24px; display: grid; gap: 16px; list-style: none; }
@media (min-width: 760px) { .server-grid { grid-template-columns: repeat(3, 1fr); } .ticket-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ticket-grid { grid-template-columns: repeat(4, 1fr); } }
.pick { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.pick li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.pick span { color: var(--fg-2); }
@media (min-width: 900px) { .pick { grid-template-columns: repeat(3, 1fr); } }
.rules { list-style: none; counter-reset: r; margin-top: 24px; display: grid; gap: 0 40px; border-top: 1px solid var(--line); }
.rules li { counter-increment: r; display: grid; gap: 2px; padding: 16px 0 16px 46px; position: relative; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 16px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 650 0.875rem var(--display); color: var(--tile-fg); background: var(--tile-bg); border: 1px solid var(--line-strong); }
.rules span { color: var(--fg-2); font-size: 1rem; }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }

/* ---- faq ---- */
.faq-wrap { max-width: 880px; margin-top: 40px; }
.faq-tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 10; display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.faq-tools label { font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search .icon { color: var(--fg-3); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font: 600 0.875rem var(--body); cursor: pointer; }
.pill:hover { color: var(--fg); }
.pill[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
#faq-count:empty { display: none; }
.faq-group { margin-top: 36px; }
.faq-group h2 { font-size: var(--t-lg); margin-bottom: 12px; }
.faq-group details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 10px; transition: border-color 0.15s var(--ease); }
.faq-group details[open] { border-color: var(--line-strong); }
.faq-group summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font: 600 1.0625rem/1.4 var(--display); position: relative; border-radius: 14px; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform 0.18s var(--ease); }
.faq-group details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-group summary:hover { color: var(--accent); }
.answer { padding: 0 20px 18px; color: var(--fg-2); }
.empty { margin-top: 32px; padding: 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--fg-2); }

/* ---- security ---- */
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .sec-grid { grid-template-columns: 7fr 5fr; } }
.report { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.privacy-sum .opt-grid { margin-top: 20px; }

/* ---- changelog ---- */
.cl-wrap { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 960px) { .cl-wrap { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } .cl-nav { position: sticky; top: calc(var(--header-h) + 20px); } }
.jump { display: grid; gap: 6px; font-weight: 600; font-size: var(--t-sm); }
.jump select { width: 100%; max-width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 1rem; }
.cl-nav nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cl-nav nav a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.cl-nav nav a:hover { border-color: var(--accent); color: var(--fg); }
.js .cl-nav nav { display: none; }
@media (min-width: 960px) { .js .cl-nav nav { display: block; } .cl-nav nav ul { flex-direction: column; flex-wrap: nowrap; } }
.cl-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cl-wrap > * { min-width: 0; }
.version header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.version h2 { font-size: var(--t-lg); }
.version .date { color: var(--fg-3); font-size: var(--t-sm); }
.version .anchor { margin-left: auto; color: var(--fg-3); text-decoration: none; font-weight: 700; }
.version .anchor:hover { color: var(--accent); }
.version:focus { outline: none; }
.cl-body { font-size: 0.97rem; }
.cl-body ul { padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cl-body code { overflow-wrap: anywhere; word-break: break-word; }
.cl-body li { color: var(--fg-2); }
.cl-body strong { color: var(--fg); }
.cl-body p { color: var(--fg-2); }
.cat { margin-top: 20px; display: inline-flex; padding: 3px 10px; border-radius: 7px; font-size: 0.8125rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--fg); }
.cat + ul { margin-top: 10px; }
.cat-added { color: var(--ok); }
.cat-fixed, .cat-security { color: var(--accent); }

/* ---- legal and documents ---- */
.prose { max-width: 840px; padding-top: 36px; }
.prose h1 { font-size: var(--t-2xl); font-weight: 720; letter-spacing: -0.025em; }
.prose h2 { font-size: var(--t-lg); font-weight: 650; margin-top: 40px; }
.prose h3 { font-size: var(--t-md); font-weight: 650; margin-top: 28px; }
.prose h4, .prose h5 { font-size: 1.0625rem; margin: 22px 0 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose pre { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); }
.prose blockquote { margin-inline: 0; padding: 12px 18px; border-left: 3px solid var(--warn-line); background: var(--warn-bg); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 160px; }
.prose th { background: var(--surface-2); }
.prose pre { overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.prose pre code { border: 0; padding: 0; background: none; }
.binding { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent-strong); border-radius: 0 12px 12px 0; background: var(--surface); color: var(--fg-2); font-size: 1rem; }
.jump-orig { font-size: var(--t-sm); }
.original { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.original > h2:first-child { margin-top: 0; }
.license-text { margin-top: 48px; }

.result { max-width: 720px; padding-top: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.result h1 { margin-top: 22px; font-size: var(--t-2xl); font-weight: 720; letter-spacing: -0.025em; }
.result .lead { margin-inline: auto; }
.result > p:not(.lead) { margin-top: 14px; color: var(--fg-2); }
.result .cta { margin-top: 28px; justify-content: center; }
.result .area-links { width: 100%; text-align: left; }

/* ---- footer ---- */
.foot { position: relative; background: var(--bg-2); }
.foot-bar { height: 3px; background: linear-gradient(90deg, transparent, var(--neon) 20%, #e9ddff 50%, var(--accent-strong) 80%, transparent); }
.foot-grid { display: grid; gap: 32px; padding-block: 44px 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-name { display: inline-flex; align-items: center; gap: 10px; font: 650 1.0625rem var(--display); }
.foot-note { margin-top: 12px; color: var(--fg-3); font-size: 0.95rem; max-width: 46ch; }
.foot-col h2 { font-size: var(--t-sm); font-weight: 700; color: var(--fg); }
.foot-col ul { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding-block: 4px; color: var(--fg-2); text-decoration: none; font-size: 0.95rem; }
.foot-col a:hover { color: var(--fg); text-decoration: underline; }
.foot-col a[aria-current="page"] { color: var(--accent); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 32px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--t-sm); }

/* ---- motion, contrast modes, print ---- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .benefits .card, .server-grid .card, .ticket-grid .card, .opt-grid .card { transition: border-color 0.15s var(--ease), transform 0.15s var(--ease); }
  .benefits .card:hover, .server-grid .card:hover, .ticket-grid .card:hover, .opt-grid .card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .btn, .card, .pill { border: 1px solid CanvasText; } .icon.tile { forced-color-adjust: auto; } }
@media print {
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --fg: #000; --fg-2: #222; --fg-3: #444; --line: #bbb; --accent: #000; color-scheme: light; }
  body { font-size: 11pt; background: #fff; }
  .top, .foot, .skip, .crumbs, .subnav, .cta, .jump-orig, .page-head-bg, .hero-bg, dialog { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .prose { max-width: none; padding: 0; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  h1, h2, h3 { break-after: avoid; }
  .original { break-before: page; border: 0; }
}

/* ---- phone refinements ---- */
@media (max-width: 759px) {
  .page-head-row .icon.tile.big { width: 48px; height: 48px; padding: 11px; border-radius: 14px; }
  .faq-tools { position: static; padding: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px; scrollbar-width: none; }
  .pill { flex: none; }
  .card { padding: 20px; }
  .hero { padding-block: 36px 56px; }
}
