/* Wazuh Mobile Agent -- geekdat.net. One stylesheet for every page; static, no server-side code. */

:root {
  --bg: #F5F7FA;
  --bg-2: #ECF0F5;
  --surface: #FFFFFF;
  --surface-2: #F2F5F9;
  --ink: #0D1520;
  --ink-2: #2A3646;
  --muted: #5B6878;
  --line: #DDE3EA;
  --line-2: #C8D2DC;
  --accent: #1A6FE0;
  --accent-ink: #0F57B8;
  --accent-soft: rgba(26, 111, 224, .09);
  --accent-glow: rgba(26, 111, 224, .22);
  --ok: #138A5B;
  --ok-soft: rgba(19, 138, 91, .1);
  --warn: #A9650B;
  --warn-soft: rgba(208, 128, 22, .12);
  --code-bg: #0C121A;
  --code-ink: #D8E1EA;
  --code-line: #1C2733;
  --shadow: 0 1px 2px rgba(13, 21, 32, .05), 0 8px 24px -12px rgba(13, 21, 32, .18);
  --shadow-lg: 0 30px 80px -30px rgba(13, 21, 32, .35);
  --nav-bg: rgba(245, 247, 250, .82);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080C11; --bg-2: #0C1219; --surface: #0F1620; --surface-2: #141D28;
    --ink: #E9EEF4; --ink-2: #C3CDD8; --muted: #8796A6; --line: #1B2633; --line-2: #283646;
    --accent: #4C9BFF; --accent-ink: #7DB6FF; --accent-soft: rgba(76, 155, 255, .1); --accent-glow: rgba(76, 155, 255, .28);
    --ok: #3FD08E; --ok-soft: rgba(63, 208, 142, .1); --warn: #F2AE4A; --warn-soft: rgba(242, 174, 74, .1);
    --code-bg: #070B10; --code-ink: #D6DFE8; --code-line: #18222D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);
    --nav-bg: rgba(8, 12, 17, .78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080C11; --bg-2: #0C1219; --surface: #0F1620; --surface-2: #141D28;
  --ink: #E9EEF4; --ink-2: #C3CDD8; --muted: #8796A6; --line: #1B2633; --line-2: #283646;
  --accent: #4C9BFF; --accent-ink: #7DB6FF; --accent-soft: rgba(76, 155, 255, .1); --accent-glow: rgba(76, 155, 255, .28);
  --ok: #3FD08E; --ok-soft: rgba(63, 208, 142, .1); --warn: #F2AE4A; --warn-soft: rgba(242, 174, 74, .1);
  --code-bg: #070B10; --code-ink: #D6DFE8; --code-line: #18222D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);
  --nav-bg: rgba(8, 12, 17, .78);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 16.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: .18em; transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
strong { color: var(--ink); font-weight: 600; }
code, .mono, pre { font-family: var(--font-mono); }
:not(pre) > code {
  font-size: .86em; padding: .12em .42em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: break-spaces; overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-glow); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 880px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .5); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn .size { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.chip strong { color: var(--ink); font-weight: 600; }
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.pill.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

.section { padding: 104px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-head .kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { font-size: 1.07rem; color: var(--muted); margin: 0; }
.lede { font-size: 1.07rem; }

.callout {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px 16px 22px; margin: 20px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2);
}
.callout::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
.callout.warn::before { background: var(--warn); }
.callout p:last-child { margin-bottom: 0; }
.callout pre { margin: 10px 0 0; }

/* ---------- code ---------- */
pre {
  margin: 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line);
  border-radius: var(--radius-sm); font-size: 13.2px; line-height: 1.65; overflow-x: auto; tab-size: 4;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
.code-wrap, .code-copy { position: relative; }
.code-wrap pre, .code-copy pre { padding-right: 92px; }
/* a one-line block wraps instead of scrolling, so its text never runs under the Copy button */
.one-line pre, .one-line pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; color: #B8C4D0; background: #18222E;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: #22303F; color: #fff; }
.copy-btn.copied { color: #5BE3A4; border-color: rgba(91, 227, 164, .4); }
.copy-btn svg { width: 14px; height: 14px; }
.file-label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: #A9B6C3; background: #121B25; border: 1px solid var(--code-line); border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 9px 16px;
}
.file-label::before { content: ""; width: 34px; height: 9px; flex: none; background: radial-gradient(circle at 4.5px 4.5px, #FF5F57 4px, transparent 4.5px), radial-gradient(circle at 16.5px 4.5px, #FEBC2E 4px, transparent 4.5px), radial-gradient(circle at 28.5px 4.5px, #28C840 4px, transparent 4.5px); opacity: .85; }
.file-label > span:first-child { margin-right: auto; overflow-wrap: anywhere; }
.file-label + .code-wrap { margin-top: 0; }
.file-label + .code-wrap pre { border-top-left-radius: 0; border-top-right-radius: 0; }
.file-label .pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #A9B6C3; }

/* ---------- tables ---------- */
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
tr:last-child td { border-bottom: 0; }
td.mono { font-size: 13px; color: var(--ink); }
td.num { text-align: right; white-space: nowrap; }
td.hash { overflow-wrap: anywhere; word-break: break-all; }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================================================
   Home page
   ========================================================================================= */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, var(--accent-glow), transparent 70%),
    radial-gradient(500px 340px at 10% 0%, color-mix(in srgb, var(--ok) 14%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 22px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, var(--ok)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .dek { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.device { position: relative; justify-self: center; width: min(330px, 78vw); }
.device-glow { position: absolute; inset: 8% -18% 4%; background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(10px); z-index: 0; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }
.phone {
  position: relative; z-index: 1; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2A3340, #0B0F14 55%, #1C232C);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 0 2px #06090D;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #05080B; box-shadow: 0 0 0 2px #1A2129; z-index: 2; }
.phone-screen { border-radius: 36px; overflow: hidden; background: #121212; aspect-ratio: 720 / 1529; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
}
.float-badge strong { display: block; font-size: 13.5px; }
.float-badge .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-badge .ico svg { width: 17px; height: 17px; }
.float-badge.b1 { top: 18%; left: -36%; animation: float 7s ease-in-out infinite -2s; }
.float-badge.b2 { bottom: 20%; right: -28%; animation: float 7s ease-in-out infinite -4.5s; }
.ico.blue { background: var(--accent-soft); color: var(--accent); }
.ico.green { background: var(--ok-soft); color: var(--ok); }
.device-caption { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); max-width: 330px; margin-left: auto; margin-right: auto; }
.device-caption p { margin: 0; }

/* doc cards under the hero */
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.doc-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.doc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.doc-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.doc-card .ico svg { width: 20px; height: 20px; }
.doc-card h3 { font-size: 16px; margin: 1px 0 4px; display: flex; align-items: center; gap: 6px; }
.doc-card h3 .arrow { transition: transform .2s; color: var(--accent); }
.doc-card:hover h3 .arrow { transform: translateX(3px); }
.doc-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* what it is: text + protocol flow */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.flow { position: relative; display: grid; gap: 0; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flow-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; position: relative; padding-bottom: 26px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 4px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 10%, transparent)); border-radius: 2px; }
.flow-step:not(:last-child)::before { content: ""; position: absolute; left: 19.5px; top: 48px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: packet 2.8s cubic-bezier(.5, 0, .5, 1) infinite; animation-delay: var(--pd, 0s); }
@keyframes packet { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.flow-node { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.flow-node svg { width: 22px; height: 22px; }
.flow-node.done { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flow-step h4 { font-size: 15.5px; margin: 2px 0 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.flow-foot { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.flow-foot svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--warn); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px 120px at var(--mx, 50%) -20%, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card:hover::after { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.toggle-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.notice-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; font-size: 15px; }

/* AI analysis panel */
.ai-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.ai-panel .callout:first-of-type { margin-top: 24px; }

/* steps */
.steps { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; padding: 0 0 30px 64px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--accent);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow);
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps h4 { font-size: 17px; margin: 6px 0 8px; }
.steps p { color: var(--ink-2); }
.steps p:last-child { margin-bottom: 0; }

/* builds */
.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.build {
  display: flex; flex-direction: column; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; transition: transform .25s, border-color .25s;
}
.build:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.build.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 42%); }
.build-tag { position: absolute; top: -11px; left: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.build h3 { font-size: 21px; margin-bottom: 4px; }
.build .sub { font-size: 14px; color: var(--muted); min-height: 3.2em; margin-bottom: 18px; line-height: 1.55; }
.build .size-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.checks li svg { width: 18px; height: 18px; flex: none; }
.checks li.yes svg { color: var(--ok); }
.checks li.no { color: var(--muted); }
.checks li.no span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.checks li.no svg { color: var(--muted); opacity: .7; }
.build .btn { width: 100%; margin-top: auto; }
.hash-box { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.hash-box code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
.hash-box .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: flex-start; padding-top: 1px; }
.mini-copy { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.mini-copy:hover { color: var(--ink); border-color: var(--line-2); }
.mini-copy.copied { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.mini-copy svg { width: 15px; height: 15px; }
.debug-row { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); font-size: 14.5px; color: var(--muted); }
.debug-row strong { color: var(--ink); }
.two-col-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.two-col-callouts .callout { margin-top: 16px; }
.hash-note { margin: 26px 0 0; font-size: 14.5px; color: var(--muted); }
.hash-note code { font-size: 12px; }

/* bottom CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 48px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, var(--accent-glow), transparent); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .cta-row { margin: 0; position: relative; }

/* =========================================================================================
   Inner pages (server setup, false positives, source)
   ========================================================================================= */
.page-hero { position: relative; padding: 64px 0 48px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto 30%; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--accent-glow), transparent); opacity: .7; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 18px; max-width: 900px; }
.page-hero .dek { font-size: 1.1rem; color: var(--muted); max-width: 780px; margin-bottom: 24px; }
.meta-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-strip span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.meta-strip strong { color: var(--ink); }

.doc { padding: 48px 0 40px; }
.doc > .container > .callout:first-child { margin: 0 0 8px; font-size: 15.5px; padding: 18px 22px 18px 24px; background: linear-gradient(90deg, var(--accent-soft), var(--surface) 70%); }
.group { padding: 52px 0 8px; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group-head { margin-bottom: 18px; }
.group-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.group-head p { margin: 10px 0 0; color: var(--muted); }
.step-no { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.prose { max-width: 780px; }
.prose p, p.prose { max-width: 780px; }
.group > .code-wrap, .group > .file-label, .group > .table-wrap, .group > .callout { max-width: 980px; }
.code-wrap { margin-top: 4px; }
.prose + .code-wrap, p + .code-wrap { margin-top: 12px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes li { position: relative; padding: 16px 18px 16px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.65; }
.notes li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }

/* source page: file browser */
.src-tools { position: sticky; top: 66px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; margin-bottom: 4px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 10px 38px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.src-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.file-list { display: grid; gap: 10px; margin-top: 18px; }
details.file { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
details.file[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
details.file > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px; user-select: none; }
details.file > summary::-webkit-details-marker { display: none; }
details.file > summary::before { content: ""; width: 8px; height: 8px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
details.file[open] > summary::before { transform: rotate(45deg); }
details.file > summary:hover { background: var(--surface-2); }
.file-path { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; flex: 1; min-width: 0; }
.file-path .dir { color: var(--muted); }
.file-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
details.file .code-wrap { margin: 0; }
details.file pre { border-radius: 0; border: 0; border-top: 1px solid var(--code-line); max-height: 640px; }
.group.hidden, details.file.hidden { display: none; }
.no-results { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
.no-results.show { display: block; }

/* =========================================================================================
   Footer
   ========================================================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 40px; margin-top: 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; gap: 36px; align-items: start; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-about p { color: var(--muted); margin: 12px 0 0; max-width: 360px; font-size: 14px; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.foot-bottom .mono { font-size: 12.5px; }
.bmc { min-height: 60px; }

/* =========================================================================================
   Responsive
   ========================================================================================= */
@media (max-width: 1020px) {
  .hero-grid, .split, .ai-panel { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding-top: 52px; }
  .device { margin-top: 10px; }
  .float-badge.b1 { left: -22%; }
  .float-badge.b2 { right: -20%; }
  .builds { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .build .sub { min-height: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 11px 12px; font-size: 15.5px; }
  .nav-tools { margin-left: auto; }
  .nav-dl { display: none; }
  .doc-cards { grid-template-columns: minmax(0, 1fr); }
  .cards.two, .two-col-callouts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero h1 { font-size: 2.6rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .float-badge { display: none; }
  .steps > li { padding-left: 54px; }
  .flow { padding: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .page-hero { padding-top: 40px; }
  pre { font-size: 12.5px; padding: 16px; }
  .code-wrap pre, .code-copy pre { padding-top: 46px; padding-right: 16px; }
  .brand span { font-size: 15.5px; }
}
