:root{
  --ink:#FFFFFF; --ink-soft:rgba(255,255,255,0.62); --ink-faint:rgba(255,255,255,0.38);
  --page:#0A0A0A; --panel:#161616; --panel-2:#1D1D1D; --border:rgba(255,255,255,0.14);
  --accent:#A9DFFA; --accent-dim:#C9EBFC; --accent-t:rgba(169,223,250,0.18); --accent-b:rgba(169,223,250,0.30);
  --error:#FF9B9B; --good:#B7EFC5;
}
*{ box-sizing:border-box; }
body{ margin:0; background:var(--page); color:var(--ink); font-family:"Inter",sans-serif; -webkit-font-smoothing:antialiased; }
a{ color:var(--accent); text-decoration:none; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 32px; }
code, .mono{ font-family:"JetBrains Mono", monospace; }
code{ background:var(--page); border:1px solid var(--border); padding:1px 6px; border-radius:5px; font-size:0.9em; color:var(--accent-dim); }

header{ padding:26px 0; border-bottom:1px solid var(--border); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; }
.brand{ font-weight:800; font-size:17px; letter-spacing:-.01em; color:var(--ink); }
nav{ display:flex; gap:32px; }
nav a{ font-size:14.5px; font-weight:500; color:var(--ink-soft); }
nav a:hover{ color:var(--ink); }
.nav-toggle{ display:none; }
.btn{ font-size:14.5px; font-weight:700; padding:12px 22px; border-radius:100px; display:inline-flex; align-items:center; gap:6px; }
.btn.solid{ background:var(--accent); color:var(--page); }
.btn.solid:hover{ background:var(--accent-dim); }
.btn.outline{ border:1.5px solid var(--border); color:var(--ink); }
.btn.outline:hover{ border-color:var(--accent); color:var(--accent); }

.hero{ position:relative; padding:70px 0 100px; overflow:hidden; }
.blob{ position:absolute; border-radius:50%; filter:blur(80px); background:var(--accent); z-index:0; }
.blob.b1{ width:460px; height:460px; opacity:.06; top:-180px; right:-140px; }
.blob.b2{ width:300px; height:300px; opacity:.04; bottom:-80px; right:300px; }
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.eyebrow-pill{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; color:var(--accent); background:var(--accent-t); border:1px solid var(--accent-b); padding:8px 16px; border-radius:100px; margin-bottom:22px; }
.eyebrow-pill .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
h1{ font-size:clamp(38px,4.6vw,54px); font-weight:800; line-height:1.08; letter-spacing:-.03em; margin:0 0 20px; }
.lede{ font-size:17px; line-height:1.65; color:var(--ink-soft); max-width:46ch; margin:0 0 32px; }

.stack{ position:relative; height:420px; }
.float-card{ position:absolute; background:var(--panel); border:1px solid var(--border); border-radius:20px; box-shadow:0 24px 50px rgba(0,0,0,0.5); padding:22px; }
.fc1{ width:290px; top:10px; left:20px; transform:rotate(-6deg); z-index:2; }
.fc2{ width:260px; top:170px; left:130px; transform:rotate(4deg); z-index:3; }
.fc3{ width:230px; top:300px; left:10px; transform:rotate(-3deg); z-index:1; }
.fc-icon{ width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; background:var(--accent); }
.fc-icon svg{ width:20px; height:20px; stroke:var(--page); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.float-card h4{ font-size:15px; font-weight:700; margin:0 0 4px; color:var(--ink); }
.float-card p{ font-size:13.5px; color:var(--ink-soft); margin:0; line-height:1.5; }

.section{ padding:70px 0; }
.section.soft{ background:var(--panel); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-head{ text-align:center; max-width:560px; margin:0 auto 50px; }
.section-head .eyebrow-pill{ margin-bottom:16px; }
h2{ font-size:clamp(28px,3.2vw,36px); font-weight:800; letter-spacing:-.02em; margin:0 0 12px; }
.section-head p{ font-size:15.5px; color:var(--ink-soft); margin:0; }

.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.fcard{ background:var(--page); border:1px solid var(--border); border-radius:20px; padding:28px 24px; }
.section.soft .fcard{ background:var(--panel); }
.fcard-head{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.fcard .ico{ width:52px; height:52px; border-radius:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--accent); }
.fcard .ico svg{ width:24px; height:24px; stroke:var(--page); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.fcard h3{ font-size:17px; font-weight:700; margin:0; }
.fcard p{ font-size:14px; line-height:1.55; color:var(--ink-soft); margin:0 0 18px; }
.fcard .go{ font-size:14px; font-weight:700; color:var(--accent); }
.fcard .go.muted{ color:var(--ink-faint); font-weight:500; text-decoration:none; }

.cta-band{ background:var(--panel); border:1px solid var(--border); border-radius:32px; padding:60px 56px; display:flex; justify-content:space-between; align-items:center; gap:40px; position:relative; overflow:hidden; }
.cta-band::before{ content:""; position:absolute; width:340px; height:340px; background:var(--accent); opacity:.10; border-radius:50%; filter:blur(80px); top:-160px; right:-60px; }
.cta-copy{ position:relative; z-index:1; max-width:480px; }
.cta-band h2{ margin-bottom:10px; }
.cta-band .lede{ margin-bottom:0; }
.cta-form{ position:relative; z-index:1; display:flex; flex-shrink:0; }
.cta-form input{ width:220px; background:var(--page); border:1px solid var(--border); border-right:none; color:var(--ink); font-family:inherit; font-size:14.5px; padding:14px 18px; border-radius:100px 0 0 100px; }
.cta-form input::placeholder{ color:var(--ink-faint); }
.cta-form input.invalid{ border-color:var(--error); }
.cta-form input.invalid:focus{ outline-color:var(--error); }
.cta-form button{ background:var(--accent); color:var(--page); border:1px solid var(--accent); font-family:inherit; font-weight:700; font-size:14.5px; padding:14px 22px; border-radius:0 100px 100px 0; cursor:pointer; white-space:nowrap; }
.cta-form button:hover{ background:var(--accent-dim); }
.cta-error{ position:relative; z-index:1; font-size:12.5px; color:var(--error); margin:10px 0 0; }

footer{ padding:36px 0; display:flex; justify-content:space-between; align-items:center; font-size:13.5px; color:var(--ink-soft); border-top:1px solid var(--border); }
footer a{ color:var(--ink-soft); }

/* ===================================================================
   Guide pages (individual guides under /guides/) and the guides.html
   search + browse landing page share the tokens above. Everything
   below this line is specific to those two contexts.
   =================================================================== */

/* breadcrumb */
.crumb{ padding:22px 0 0; }
.crumb .wrap{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-faint); }
.crumb a{ color:var(--ink-soft); }
.crumb a:hover{ color:var(--accent); }

/* guide hero */
.g-hero{ padding:34px 0 54px; border-bottom:1px solid var(--border); }
.g-hero h1{ color:var(--accent); font-size:clamp(30px,4vw,44px); line-height:1.12; letter-spacing:-.03em; margin:0 0 18px; max-width:22ch; }
.g-hero .lede{ font-size:17px; line-height:1.65; color:var(--ink-soft); max-width:62ch; margin:0; }

/* architecture diagram (replaces hero image) */
.diagram-card{ position:relative; margin:40px 0 28px; background:var(--panel); border:1px solid var(--border); border-radius:24px; padding:32px; }
.diagram-card svg{ width:100%; height:auto; display:block; }
.diagram-caption{ font-size:12.5px; color:var(--ink-faint); text-align:center; margin:14px 0 0; }

/* hero "why it matters" bullet list, lighter than the .checklist used
   elsewhere since it sits directly under the lede, not in a card section.
   Both rules use the compound ".checklist.lede-list" selector, higher
   specificity than plain ".checklist", so they always win regardless of
   where either rule sits in the file, the markup carries both classes
   together ("checklist lede-list"). */
.checklist.lede-list{ max-width:52ch; padding-top:16px; margin:0 0 32px; }
.checklist.lede-list li{ background:transparent; border:none; padding:4px 0; }

/* content sections */
.g-section{ padding:56px 0; }
.g-section.soft{ background:var(--panel); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.g-section h2{ font-size:clamp(24px,2.8vw,30px); font-weight:800; letter-spacing:-.02em; margin:0 0 10px; }
.g-section > .wrap > p.intro{ font-size:15.5px; color:var(--ink-soft); max-width:64ch; line-height:1.65; margin:0 0 30px; }

/* the lab: small feature grid */
.mini-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.mini-card{ background:var(--page); border:1px solid var(--border); border-radius:16px; padding:20px; }
.g-section.soft .mini-card{ background:var(--panel-2); }
.mini-card .ico{ width:38px; height:38px; border-radius:11px; background:var(--accent); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.mini-card .ico svg{ width:18px; height:18px; stroke:var(--page); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.mini-card h4{ font-size:14.5px; font-weight:700; margin:0 0 6px; }
.mini-card p{ font-size:13px; color:var(--ink-soft); margin:0; line-height:1.5; }

/* content that sits before the first numbered step, e.g. a tool
   glossary. Gets its own bottom margin so it never touches the
   timeline directly, whatever's inside it (list, paragraph, table). */
.steps-prelude{ margin:0 0 34px; }
.steps-prelude p{ font-size:15px; line-height:1.7; color:var(--ink-soft); margin:0 0 16px; }

/* timeline / steps */
.timeline{ position:relative; }
.timeline::before{ content:""; position:absolute; left:23px; top:14px; bottom:14px; width:1px; background:var(--border); }
.tl-step{ position:relative; padding:0 0 48px 70px; }
.tl-step:last-child{ padding-bottom:0; }
.tl-num{ position:absolute; left:0; top:0; width:48px; height:48px; border-radius:50%; background:var(--panel); border:1px solid var(--accent-b); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; z-index:1; }
.g-section.soft .tl-num{ background:var(--page); }
.tl-step h3{ font-size:19px; font-weight:700; margin:2px 0 12px; }
.tl-step .tl-body p{ font-size:15px; line-height:1.7; color:var(--ink-soft); margin:0 0 16px; }

/* hardware / spec requirement grid */
.req-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:18px 0 16px; }
.req-card{ background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:18px; text-align:left; }
.req-card .ico{ width:34px; height:34px; border-radius:10px; background:var(--accent-t); border:1px solid var(--accent-b); display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.req-card .ico svg{ width:16px; height:16px; stroke:var(--accent); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.req-card .val{ font-size:14.5px; font-weight:700; margin:0 0 3px; }
.req-card .label{ font-size:12px; color:var(--ink-faint); margin:0; }
.warn-line{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--ink-soft); background:rgba(255,155,155,0.08); border:1px solid rgba(255,155,155,0.25); border-radius:12px; padding:12px 16px; margin:4px 0 20px; }
.warn-line svg{ width:16px; height:16px; stroke:var(--error); fill:none; stroke-width:2; flex-shrink:0; margin-top:2px; }

/* tip callout, distinct from .warn-line so tips don't look like warnings */
.tip-line{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--ink-soft); background:var(--accent-t); border:1px solid var(--accent-b); border-radius:12px; padding:12px 16px; margin:4px 0 20px; }
.tip-line svg{ width:16px; height:16px; stroke:var(--accent); fill:none; stroke-width:2; flex-shrink:0; margin-top:2px; }

/* general markdown tables, 3+ columns (2-column tables still use .req-grid).
   Wrapped as a rounded card, same visual language as .req-card / .mini-card
   / .code-block, rather than a bare floating table. */
.guide-table-wrap{ overflow-x:auto; margin:18px 0 16px; -webkit-overflow-scrolling:touch; background:var(--panel); border:1px solid var(--border); border-radius:16px; }
.g-section.soft .guide-table-wrap{ background:var(--page); }
.guide-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.guide-table th, .guide-table td{ text-align:left; padding:12px 18px; }
.guide-table th{ color:var(--accent); font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; background:var(--accent-t); border-bottom:1px solid var(--accent-b); white-space:nowrap; }
.guide-table th:first-child{ border-top-left-radius:16px; }
.guide-table th:last-child{ border-top-right-radius:16px; }
.guide-table td{ color:var(--ink-soft); border-bottom:1px solid var(--border); }
.guide-table td:first-child{ color:var(--ink); font-weight:600; }
.guide-table tr:last-child td{ border-bottom:none; }
.guide-table tbody tr:hover td{ background:var(--panel-2); }
.g-section.soft .guide-table tbody tr:hover td{ background:var(--panel); }

/* content that follows the mini-grid in "What you'll need" (a tip, a
   table, a code block, ...). Gets its own top margin so it never sits
   flush against the grid above it, whatever it contains. */
.need-extra{ margin-top:28px; }

/* checklist */
.checklist{ list-style:none; margin:0 0 18px; padding:0; display:grid; gap:10px; }
.checklist li{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; color:var(--ink); background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:13px 16px; }
.g-section.soft .checklist li{ background:var(--panel-2); }
.checklist svg{ width:17px; height:17px; stroke:var(--accent); fill:none; stroke-width:2.4; flex-shrink:0; margin-top:1px; }

/* code block */
.code-block{ position:relative; background:#0E1116; border:1px solid var(--border); border-radius:14px; overflow:hidden; margin:6px 0 22px; }
.code-head{ display:flex; align-items:center; justify-content:space-between; padding:10px 16px; border-bottom:1px solid var(--border); }
.code-head span{ font-size:12px; color:var(--ink-faint); }
.copy-btn{ font-size:12px; font-weight:600; color:var(--ink-soft); background:transparent; border:1px solid var(--border); border-radius:8px; padding:5px 10px; cursor:pointer; font-family:inherit; }
.copy-btn:hover{ color:var(--accent); border-color:var(--accent-b); }
.code-block pre{ margin:0; padding:18px 20px; font-size:13px; line-height:1.7; overflow-x:auto; }
.code-block code{ background:none; border:none; padding:0; border-radius:0; font-size:inherit; color:var(--ink); }
.hljs{ background:transparent !important; color:var(--ink); }
.hljs-keyword, .hljs-built_in, .hljs-title.function_, .hljs-selector-tag, .hljs-name, .hljs-tag{ color:#A9DFFA; font-weight:600; }
.hljs-variable, .hljs-variable.language_, .hljs-template-variable, .hljs-attr, .hljs-attribute{ color:#C9EBFC; }
.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-addition{ color:#B7EFC5; }
.hljs-comment, .hljs-quote, .hljs-deletion{ color:var(--ink-faint); font-style:italic; }
.hljs-number, .hljs-literal, .hljs-type, .hljs-meta{ color:#FFD9A0; }
.hljs-title, .hljs-title.class_, .hljs-section{ color:#C9EBFC; font-weight:600; }
.hljs-params{ color:var(--ink); }

/* links list inline */
.link-row{ display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 20px; }
.link-chip{ font-size:13.5px; font-weight:600; color:var(--accent); background:var(--accent-t); border:1px solid var(--accent-b); padding:8px 14px; border-radius:100px; display:inline-flex; align-items:center; gap:6px; }
.link-chip:hover{ background:var(--accent-b); }

/* result */
.result-band{ background:var(--panel); border:1px solid var(--border); border-radius:24px; padding:40px 40px; display:flex; gap:28px; align-items:flex-start; }
.result-band .ico{ width:56px; height:56px; border-radius:16px; background:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.result-band .ico svg{ width:26px; height:26px; stroke:var(--page); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.result-band h3{ font-size:19px; font-weight:700; margin:0 0 8px; }
.result-band p{ font-size:15px; color:var(--ink-soft); line-height:1.65; margin:0; }
.stat-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.stat-chip{ font-size:12.5px; font-weight:700; color:var(--accent); background:var(--accent-t); border:1px solid var(--accent-b); padding:6px 13px; border-radius:100px; }

.support-line{ margin-top:22px; font-size:13.5px; color:var(--ink-faint); }
.support-line a{ color:var(--accent); font-weight:600; }

/* ---------------------------------------------------------------
   guides.html: search landing page
   --------------------------------------------------------------- */

.guides-hero{ padding:56px 0 40px; }
.guides-hero h1{ font-size:clamp(32px,4vw,46px); margin:0 0 14px; }

.guides-search{ margin-top:36px; position:relative; max-width:640px; }
.guides-search .search-ico{
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; stroke:var(--ink-faint); fill:none;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none;
}
.guides-search-input{
  width:100%; background:var(--panel); border:1px solid var(--border);
  color:var(--ink); font-family:inherit; font-size:15px;
  padding:16px 20px 16px 50px; border-radius:100px;
}
.guides-search-input::placeholder{ color:var(--ink-faint); }
.guides-search-input:focus{ outline:1.5px solid var(--accent); outline-offset:-1px; border-color:var(--accent-b); }

/* result excerpt highlighting: Pagefind wraps matched terms in <mark>
   inside r.excerpt, which we render straight into .fcard p, so the
   highlight needs styling in that context, not Pagefind's own
   (unused here) widget classes */
.fcard p mark{ background:var(--accent-t); color:var(--accent); border-radius:3px; padding:0 2px; }

/* topic pills, generated from search-data/clusters.json and wired to
   Pagefind's filter API */
.topic-pills{ display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 40px; }
.topic-pill{ font-size:13.5px; font-weight:600; color:var(--ink-soft); background:var(--panel); border:1px solid var(--border); padding:9px 16px; border-radius:100px; cursor:pointer; font-family:inherit; }
.topic-pill:hover{ border-color:var(--accent-b); color:var(--ink); }
.topic-pill.active{ color:var(--accent); background:var(--accent-t); border-color:var(--accent-b); }

.guides-empty{ text-align:left; margin:14px 0 0; color:var(--ink-soft); font-size:14px; }

@media(max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .stack{ display:none; }
  .feature-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; padding:40px 28px; }
  .cta-form{ width:100%; }
  .cta-form input{ width:auto; flex:1; }
  .mini-grid, .req-grid{ grid-template-columns:1fr 1fr; }
  .result-band{ flex-direction:column; align-items:flex-start; }
}
@media(max-width:700px){
  .diagram-card{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .diagram-card svg{ width:auto; min-width:760px; }
  .guide-table{ min-width:480px; }
}
@media(max-width:560px){
  .feature-grid{ grid-template-columns:1fr; }
  nav{
    position:fixed;
    inset:70px 20px auto 20px;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    flex-direction:column;
    gap:0;
    padding:6px;
    box-shadow:0 12px 30px rgba(0,0,0,0.5);
    opacity:0;
    transform:translateY(-6px);
    pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
    z-index:50;
  }
  nav a{ padding:12px 14px; border-radius:10px; }
  nav a:hover{ background:var(--page); }
  body.nav-open nav{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    background:none;
    border:1px solid var(--border);
    border-radius:100px;
    padding:9px 16px;
    font-size:13.5px;
    font-weight:600;
    color:var(--ink);
    cursor:pointer;
    font-family:inherit;
  }
  .cta-form{ flex-direction:column; width:100%; max-width:360px; margin:0 auto; }
  .cta-form-wrap{ width:100%; }
  .cta-error{ text-align:center; }
  .cta-form input{ border-right:1px solid var(--border); border-radius:100px; margin-bottom:10px; text-align:center; }
  .cta-form button{ border-radius:100px; width:100%; white-space:normal; text-align:center; line-height:1.3; }
  .timeline::before{ left:19px; }
  .tl-num{ width:40px; height:40px; font-size:14px; }
  .tl-step{ padding-left:58px; }
  .diagram-card{ padding:20px; }
}
