/* Dr Citrius S&P — site styles */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a10;
  --surface: #121019;
  --surface-2: #17141f;
  --panel: rgba(255, 255, 255, .03);
  --panel-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f4f2fa;
  --muted: #a8a6ba;
  --muted-2: #8e8ca3;
  --magenta: #d946ef;
  --violet: #8b5cf6;
  --magenta-soft: #e879f9;
  --grad: linear-gradient(135deg, #d946ef, #8b5cf6);
  --btn-grad: linear-gradient(135deg, #c026d3, #7c3aed);
  --green: #22c55e;
  --radius: 16px;
  --glow: 0 0 0 1px rgba(217, 70, 239, .35), 0 12px 40px -12px rgba(217, 70, 239, .45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--magenta-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f5d0fe; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px;
  padding: .1em .4em; word-break: break-word;
}
.kbd {
  display: inline-block; font: 600 .78em/1 var(--font);
  padding: .35em .5em; border-radius: 6px;
  border: 1px solid var(--border-2); border-bottom-width: 2px;
  background: rgba(255, 255, 255, .06); color: var(--text);
  white-space: nowrap; vertical-align: .08em;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--magenta-soft); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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 { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.h3 { font-size: 1.2rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font); text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; padding: 13px 22px;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary { color: #fff; background: var(--btn-grad); box-shadow: 0 8px 30px -8px rgba(217, 70, 239, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 40px -8px rgba(217, 70, 239, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(217, 70, 239, .5); box-shadow: var(--glow); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; }
.btn-xl .ic { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 16, .7); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(217, 70, 239, .45)); }
.brand-mark.sm { width: 22px; height: 22px; }
.brand-name { font-weight: 800; letter-spacing: .14em; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; transition: color .15s ease, background-color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--panel-2); }
.nav-dl { margin-left: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: -68px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb-a { width: 520px; height: 520px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(217, 70, 239, .5), transparent 65%); }
.orb-b { width: 620px; height: 620px; right: -160px; top: 60px; background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); }
.grid-fade {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .orb-a { animation: drift 18s ease-in-out infinite alternate; }
  .orb-b { animation: drift 22s ease-in-out infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(18, 16, 25, .7); color: var(--muted); font-size: .85rem; font-weight: 500; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.pill-sep { width: 1px; height: 14px; background: var(--border-2); }
.hero h1 { margin-top: 28px; font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 13ch; }
.hero h1 .grad { font-style: italic; padding-right: .06em; }
.lead { margin-top: 24px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 46ch; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-gh { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; text-decoration: none; padding: 6px 10px; border-radius: 10px; }
.hero-gh:hover { color: var(--text); }
.hero-gh .ic { width: 16px; height: 16px; }
.hero-stars { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text); }

/* ---------- GUI preview ---------- */
.preview-frame { margin: 72px auto 0; max-width: 1000px; position: relative; }
.preview-frame::before { content: ""; position: absolute; inset: 10% 6% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(217, 70, 239, .3), rgba(139, 92, 246, .15) 60%, transparent); filter: blur(34px); }
.preview-frame figcaption { margin-top: 18px; text-align: center; color: var(--muted-2); font-size: .85rem; }

.gui { display: grid; grid-template-columns: 200px 1fr; background: linear-gradient(180deg, #15121f, #0f0d16); border: 1px solid var(--border-2); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(217, 70, 239, .08), 0 0 60px -20px rgba(217, 70, 239, .35); text-align: left; font-size: .85rem; height: 510px; }
.gui-side { background: rgba(0, 0, 0, .25); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.gui-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; }
.gui-brand-name { display: block; font-weight: 800; letter-spacing: .12em; font-size: .78rem; }
.gui-brand-ver { display: block; color: var(--muted-2); font-size: .7rem; }
.gui-label { color: var(--muted-2); font-size: .66rem; font-weight: 700; letter-spacing: .14em; padding: 8px 8px 2px; }
.gui-tabs { display: flex; flex-direction: column; gap: 2px; }
.gui-tab, .gui-static li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font: 500 .82rem/1.2 var(--font); }
.gui-tab { position: relative; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.gui-tab .ic, .gui-static .ic { width: 15px; height: 15px; }
.gui-tab:hover { color: var(--text); background: var(--panel-2); }
.gui-tab[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, rgba(217, 70, 239, .22), rgba(217, 70, 239, .04)); }
.gui-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.gui-tab[aria-selected="true"] .ic { color: var(--magenta-soft); }
.gui-static { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gui-static li { color: var(--muted-2); }
.gui-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.gui-avatar { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--btn-grad); }
.gui-user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gui-user-text strong { font-size: .8rem; }
.gui-user-text small { color: var(--muted-2); font-size: .7rem; }
.online { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: none; }
.gui-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gui-top { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.gui-top::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--magenta) 30%, var(--violet) 70%, transparent); opacity: .8; }
.gui-hello { color: var(--muted); white-space: nowrap; }
.gui-hello strong { color: var(--text); font-weight: 600; }
.gui-clock { color: var(--magenta-soft); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 auto; }
.gui-search, .explorer-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, .3); color: var(--muted-2); min-width: 0; width: 220px; }
.gui-search:focus-within, .explorer-search:focus-within { border-color: rgba(217, 70, 239, .55); box-shadow: 0 0 0 3px rgba(217, 70, 239, .15); }
.gui-search .ic { width: 14px; height: 14px; }
.gui-search input, .explorer-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 400 .82rem var(--font); padding: 2px 0; }
.gui-search input::placeholder, .explorer-search input::placeholder { color: var(--muted-2); }
.gui-search input:focus-visible, .explorer-search input:focus-visible { outline: none; }
input[type="search"]::-webkit-search-cancel-button { filter: invert(.7); }
.gui-search .kbd { font-size: .68rem; }
.gui-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 16px 18px; scrollbar-width: thin; scrollbar-color: rgba(217, 70, 239, .4) transparent; }
.gui-grid::-webkit-scrollbar { width: 6px; }
.gui-grid::-webkit-scrollbar-thumb { background: rgba(217, 70, 239, .4); border-radius: 6px; }
.gui-empty { grid-column: 1 / -1; color: var(--muted-2); text-align: center; padding: 40px 0; }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.mod:hover { border-color: var(--border-2); }
.mod.on { border-color: rgba(217, 70, 239, .7); background: linear-gradient(180deg, rgba(217, 70, 239, .1), rgba(139, 92, 246, .04)); box-shadow: 0 0 0 1px rgba(217, 70, 239, .25), 0 0 22px -6px rgba(217, 70, 239, .55); }
.mod-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mod-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mod-name { font-weight: 600; color: var(--text); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-title .ic { width: 13px; height: 13px; color: var(--muted-2); }
.chip { align-self: flex-start; font-size: .68rem; color: var(--muted-2); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); background: rgba(0, 0, 0, .25); white-space: nowrap; }
.switch { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid var(--border-2); padding: 0; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #cfcde0; transition: transform .2s ease, background-color .2s ease; }
.mod.on .switch { background: var(--magenta); border-color: transparent; box-shadow: 0 0 12px rgba(217, 70, 239, .6); }
.mod.on .switch::after { transform: translateX(16px); background: #fff; }
.switch:focus-visible { outline-offset: 2px; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; scroll-margin-top: calc(var(--nav-h) - 24px); }
.section-tight { padding-top: 24px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { border-color: rgba(217, 70, 239, .35); box-shadow: var(--glow); }

.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none; color: #fff; background: linear-gradient(135deg, rgba(217, 70, 239, .85), rgba(139, 92, 246, .85)); box-shadow: 0 8px 24px -8px rgba(217, 70, 239, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tile-icon .ic { width: 21px; height: 21px; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio-card { padding: 30px; }
.trio-card h2 { margin-top: 22px; font-size: 1.3rem; }
.trio-card p { margin-top: 10px; color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.bento-setup { padding: 30px; display: flex; flex-direction: column; }
.bento-setup > .muted { margin-top: 6px; }
.timeline { list-style: none; margin: auto 0 0; padding: 48px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; top: calc(48px + 27px); left: 16.66%; right: 16.66%; height: 2px; background: linear-gradient(90deg, rgba(217, 70, 239, .6), rgba(139, 92, 246, .6)); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.timeline strong { margin-top: 10px; font-size: 1rem; }
.timeline span:not(.tl-icon) { color: var(--muted); font-size: .88rem; }
.tl-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--btn-grad); box-shadow: 0 0 0 6px var(--surface), 0 10px 30px -8px rgba(217, 70, 239, .7); position: relative; }
.tl-icon .ic { width: 24px; height: 24px; }
.bento-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.stat-card { padding: 22px; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-num { margin-top: 6px; font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-foot { margin-top: 10px; display: flex; align-items: center; gap: 6px; color: var(--magenta-soft); font-size: .82rem; }
.stat-foot .ic { width: 14px; height: 14px; }
.launchers { grid-column: 1 / -1; padding: 22px; }
.launchers .muted { margin-top: 4px; }
.launcher-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.launcher-list li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); font-size: .86rem; font-weight: 500; }
.launcher-list .ic { width: 15px; height: 15px; color: var(--magenta-soft); }

/* Spotlights */
.spot { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 40px 0; }
.spot + .spot { border-top: 1px solid var(--border); }
.spot-flip .spot-text { order: 2; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(217, 70, 239, .35); background: rgba(217, 70, 239, .08); color: var(--magenta-soft); font-size: .82rem; font-weight: 600; }
.tag .ic { width: 15px; height: 15px; }
.spot h3 { margin-top: 18px; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.spot-text > p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { width: 18px; height: 18px; padding: 3px; margin-top: 2px; border-radius: 50%; background: rgba(217, 70, 239, .18); color: var(--magenta-soft); stroke-width: 3; }
.spot-visual { position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(120% 90% at 100% 0%, rgba(217, 70, 239, .12), transparent 60%), radial-gradient(100% 80% at 0% 100%, rgba(139, 92, 246, .12), transparent 60%), var(--surface); min-width: 0; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; }
.flow::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(217, 70, 239, .6) 0 6px, transparent 6px 12px); }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.flow-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--magenta-soft); background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: 0 0 0 5px var(--surface); }
.flow-icon .ic { width: 20px; height: 20px; }
.flow-icon.hot { color: #fff; background: var(--btn-grad); border-color: transparent; box-shadow: 0 0 0 5px var(--surface), 0 8px 24px -6px rgba(217, 70, 239, .7); }
.embed { margin-top: 26px; padding: 16px; border-radius: 14px; background: #1a1823; border: 1px solid var(--border); }
.embed-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.embed-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0b0a10; border: 1px solid var(--border-2); }
.embed-avatar .ic { width: 18px; height: 18px; }
.embed-bot { font-size: .62rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; background: #6d5df6; color: #fff; }
.embed-time { color: var(--muted-2); font-size: .75rem; }
.embed-card { margin: 10px 0 0 38px; padding: 12px 14px; border-radius: 6px; border-left: 4px solid var(--magenta); background: rgba(255, 255, 255, .04); }
.embed-title { font-weight: 700; font-size: .92rem; }
.embed-body { margin-top: 4px; color: var(--muted); font-size: .85rem; }

.area-grid {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background-color: #14111c;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 9.09% 16.66%;
  border: 1px solid var(--border-2);
}
.area-sel { position: absolute; left: 18.18%; top: 16.66%; width: 54.54%; height: 50%; border: 2px solid var(--magenta); border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(217, 70, 239, .18) 0 8px, rgba(217, 70, 239, .08) 8px 16px); box-shadow: 0 0 30px -4px rgba(217, 70, 239, .6); }
@media (prefers-reduced-motion: no-preference) { .area-sel { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { box-shadow: 0 0 44px 0 rgba(217, 70, 239, .75); } } }
.corner { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: #fff; box-shadow: 0 6px 18px -4px rgba(217, 70, 239, .8); transform: translate(-50%, -50%); }
.corner .ic { width: 15px; height: 15px; }
.c1 { left: 18.18%; top: 16.66%; }
.c2 { left: 72.72%; top: 66.66%; }
.area-legend { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--muted); }
.area-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text); font-size: .75rem; }

.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pipe-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .84rem; }
.pipe-card strong { margin-top: 8px; font-size: .95rem; }
.pipe-card > span:not(.flow-icon):not(.confirm-row) { color: var(--muted); }
.pipe-card.focus { border-color: rgba(217, 70, 239, .55); box-shadow: 0 0 30px -10px rgba(217, 70, 239, .7); transform: translateY(-8px); }
.pipe-card .flow-icon { box-shadow: none; }
.confirm-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mini-btn { padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text); }
.mini-btn.yes { background: var(--btn-grad); border-color: transparent; }

.finds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.find { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.find strong { font-size: .9rem; }
.find span:not(.find-dot):not(.flow-icon) { grid-column: 2; color: var(--muted-2); font-size: .78rem; }
.find-dot { grid-row: 1 / 3; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px; }
.d1 { background: #f472b6; box-shadow: 0 0 12px #f472b6; }
.d2 { background: #34d399; box-shadow: 0 0 12px #34d399; }
.d3 { background: #c084fc; box-shadow: 0 0 12px #c084fc; }
.d4 { background: #fb923c; box-shadow: 0 0 12px #fb923c; }
.d5 { background: #60a5fa; box-shadow: 0 0 12px #60a5fa; }
.find-alert { grid-column: 1 / -1; border-color: rgba(217, 70, 239, .45); }
.find-alert .flow-icon { grid-row: 1 / 3; width: 38px; height: 38px; box-shadow: none; }

.feature-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 28px; }
.feature h3 { margin-top: 20px; font-size: 1.1rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* Explorer */
.explorer { padding: 24px; }
.explorer:hover { box-shadow: none; border-color: var(--border); }
.explorer-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: 600 .86rem/1 var(--font); color: var(--muted); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); cursor: pointer; transition: all .15s ease; }
.chip-btn:hover { color: var(--text); border-color: rgba(217, 70, 239, .45); }
.chip-btn[aria-pressed="true"] { color: #fff; background: var(--btn-grad); border-color: transparent; box-shadow: 0 6px 20px -8px rgba(217, 70, 239, .7); }
.explorer-search { width: 260px; padding: 9px 12px; }
.explorer-search input { font-size: .9rem; }
.module-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.module-grid.single { grid-template-columns: 1fr; }
.module-col { padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.module-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.module-col h3 .ic { width: 17px; height: 17px; color: var(--magenta-soft); }
.module-col h3 .count { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--muted-2); }
.module-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.module-grid.single .module-col ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.module-col li { color: var(--muted); font-size: .9rem; display: flex; gap: 8px; align-items: baseline; }
.module-col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(217, 70, 239, .7); flex: none; transform: translateY(-2px); }
.module-col li mark { background: rgba(217, 70, 239, .3); color: var(--text); border-radius: 3px; padding: 0 1px; }
.module-col li.more { color: var(--muted-2); font-style: italic; }
.module-col li.more::before { background: var(--border-2); }
.explorer-empty { grid-column: 1 / -1; text-align: center; color: var(--muted-2); padding: 36px 0; }
.explorer-note { margin-top: 18px; text-align: center; }

/* Install */
.install { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step { padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; font-weight: 800; color: #fff; background: var(--btn-grad); box-shadow: 0 0 20px -4px rgba(217, 70, 239, .6); }
.step h3 { font-size: 1.08rem; font-weight: 700; margin-top: 8px; }
.step p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.reqs { padding: 24px; }
.req-list { margin: 16px 0 0; display: flex; flex-direction: column; }
.req-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.req-list div:first-child { border-top: 0; }
.req-list dt { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.req-list dt .ic { width: 16px; height: 16px; color: var(--magenta-soft); }
.req-list dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }
.install-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* Release */
.release { padding: 26px; }
.release-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.release-head h2 { margin-top: 2px; }
.release-date { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.release-date .ic { width: 15px; height: 15px; }
.release-notes { margin-top: 18px; color: var(--muted); white-space: pre-line; font-size: .95rem; max-height: 14em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.release-notes:empty { display: none; }
.release-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.release-link .ic { width: 15px; height: 15px; }

/* Discord band */
.discord-band { display: flex; align-items: center; gap: 22px; padding: 28px 32px; border-radius: 20px; border: 1px solid rgba(217, 70, 239, .3); background: radial-gradient(80% 140% at 0% 0%, rgba(217, 70, 239, .2), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(139, 92, 246, .2), transparent 60%), var(--surface); }
.band-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: #5865f2; box-shadow: 0 10px 30px -8px rgba(88, 101, 242, .7); }
.band-icon .ic { width: 26px; height: 26px; }
.band-text { flex: 1; min-width: 0; }
.band-text p { margin-top: 6px; color: var(--muted); }
.band-count { display: block; margin-top: 6px; color: var(--text); font-weight: 600; font-size: .9rem; }
.band-count::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 8px; vertical-align: 1px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); transition: transform .25s ease, background-color .2s ease, color .2s ease; }
.faq-ic .ic { width: 16px; height: 16px; }
.faq details[open] .faq-ic { transform: rotate(45deg); color: #fff; background: var(--btn-grad); border-color: transparent; }
.faq details[open] { border-color: rgba(217, 70, 239, .3); background: var(--surface-2); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; padding: 64px 24px; border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(60% 100% at 50% 0%, rgba(217, 70, 239, .22), transparent 70%), var(--surface); }
.final h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.final p { margin-top: 12px; }
.final .cta-row { margin-top: 28px; }

/* Footer */
.footer { margin-top: 112px; border-top: 1px solid var(--border); padding: 52px 0 56px; background: rgba(0, 0, 0, .25); }
.footer-inner { display: grid; grid-template-columns: 1.4fr .8fr .9fr 2fr; gap: 32px; align-items: start; }
.footer-brand p { margin-top: 12px; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.footer-col a:hover { color: var(--magenta-soft); }
.footer-col .ic { width: 16px; height: 16px; }
.footer-notes { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(23, 20, 31, .9); border: 1px solid var(--border-2); cursor: pointer; backdrop-filter: blur(8px); transition: border-color .2s ease, box-shadow .2s ease; }
.to-top:hover { border-color: rgba(217, 70, 239, .5); box-shadow: var(--glow); }

/* Reveal on scroll (only when JS is running and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-notes { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .trio, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot { grid-template-columns: 1fr; gap: 28px; }
  .spot-flip .spot-text { order: 0; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 18px; background: #0b0a10; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); border-bottom: 1px solid var(--border); display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; }
  .nav-dl { margin: 8px 0 0; }

  .gui { grid-template-columns: 1fr; height: auto; }
  .gui-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .gui-brand, .gui-label, .gui-general, .gui-user { display: none; }
  .gui-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .gui-tab { width: auto; padding: 7px 10px; border: 1px solid var(--border); }
  .gui-tab[aria-selected="true"]::before { display: none; }
  .gui-tab[aria-selected="true"] { border-color: rgba(217, 70, 239, .6); }
  .gui-grid { grid-template-columns: 1fr; height: 360px; flex: none; }
  .gui-top { flex-wrap: wrap; gap: 10px 12px; }
  .gui-clock { margin: 0 0 0 auto; }
  .gui-search { width: 100%; }

  .discord-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .explorer-search { width: 100%; }
  .timeline { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; gap: 2px 16px; }
  .timeline .tl-icon { grid-row: 1 / 3; }
  .timeline strong { margin-top: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 64px; }
  .trio, .feature-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 84px; }
  .cta-row { width: 100%; flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .btn-xl { width: 100%; padding: 17px 20px; }
  .bento-side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .flow::before { display: none; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-card.focus { transform: none; }
  .spot-visual { padding: 18px; }
  .finds { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .final { padding: 48px 18px; }
}
@media (max-width: 440px) {
  .module-grid { grid-template-columns: 1fr; }
  .feature, .step, .trio-card, .bento-setup { padding: 22px; }
  .launcher-list { grid-template-columns: 1fr; }
  .req-list div { flex-wrap: wrap; }
  .embed-card { margin-left: 0; }
  .pill-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn-primary:hover { transform: none; }
}
