/* ==========================================================================
   StaticLayer — public site design system
   Warm paper + ink, signal-orange accent, layered depth, glass surfaces.
   No external fonts, no tracking, no external requests.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #f4f2ec;
  --bg-2: #ece8df;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --ink: #17130e;
  --ink-soft: #3a332a;
  --muted: #6f675a;
  --line: rgba(23, 19, 14, 0.1);
  --line-strong: rgba(23, 19, 14, 0.16);

  --acc: #ff5a1f;
  --acc-2: #ff8a2a;
  --acc-3: #ff3d54;
  --acc-grad: linear-gradient(135deg, #ff8a2a 0%, #ff5a1f 55%, #ff3d54 120%);
  --acc-soft: rgba(255, 90, 31, 0.1);

  --ok: #1a8f5a;
  --warn: #b45309;

  --glass: rgba(255, 253, 248, 0.72);
  --glass-strong: rgba(255, 253, 248, 0.9);
  --blur: 20px;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 2px rgba(23, 19, 14, 0.05), 0 4px 14px -6px rgba(23, 19, 14, 0.08);
  --shadow-md: 0 2px 4px rgba(23, 19, 14, 0.05), 0 18px 50px -22px rgba(23, 19, 14, 0.22);
  --shadow-acc: 0 8px 26px -8px rgba(255, 90, 31, 0.45);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --bg-2: #12100c;
    --surface: #16140f;
    --surface-2: #1a1711;
    --ink: #f4f1ea;
    --ink-soft: #d8d2c6;
    --muted: #9a9284;
    --line: rgba(244, 241, 234, 0.1);
    --line-strong: rgba(244, 241, 234, 0.18);
    --acc-soft: rgba(255, 90, 31, 0.14);
    --glass: rgba(22, 20, 15, 0.72);
    --glass-strong: rgba(22, 20, 15, 0.92);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv05" on;
}
img { max-width: 100%; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15em 0.42em;
  font-size: 0.86em;
}
pre {
  background: #171310;
  color: #f0ebe0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
  position: relative;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; }
::selection { background: var(--acc-soft); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dim { color: var(--muted); }

/* reveal-on-view, gated behind .js so no-JS stays visible */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--acc); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-primary {
  color: #fff;
  background: var(--acc-grad);
  border: 0;
  box-shadow: var(--shadow-acc);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 30px -8px rgba(255, 90, 31, 0.55); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-links .nav-github { color: var(--muted); }

/* Docs dropdown */
.nav-drop { position: relative; }
.nav-drop summary {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { color: var(--ink); background: var(--surface-2); }
.nav-drop summary.active { color: var(--ink); }
.nav-drop .caret {
  width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -4px;
  transition: transform 0.2s var(--ease);
}
.nav-drop[open] .caret { transform: rotate(225deg); margin-top: 3px; }
.drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 210px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 70;
}
.nav-drop[open] .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-menu a { padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.drop-menu a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.drop-menu a.active { color: var(--acc); background: var(--acc-soft); font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform 0.2s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 18px; border-top: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 8px; color: var(--ink); font-weight: 500; border-top: 1px solid var(--line); }
.mobile-nav a:first-child { border-top: 0; }
.mobile-nav a.btn { border-top: 0; margin-top: 10px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before { /* mesh blob top-right */
  content: ""; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 138, 42, 0.22), rgba(255, 61, 84, 0.08) 55%, transparent 70%);
  pointer-events: none;
}
.hero::after { /* grid overlay */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft);
  border: 1px solid rgba(255, 90, 31, 0.22);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 750;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--acc-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.hero-meta a { color: var(--ink-soft); font-weight: 600; }
.hero-meta a:hover { color: var(--acc); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(26, 143, 90, 0.18); }

/* layered art + widget mockup */
.hero-art { position: relative; perspective: 1200px; }
.layer-panel {
  position: absolute; border-radius: 26px; opacity: 0.5; filter: blur(1px);
  border: 1px solid var(--line-strong);
}
.layer-panel.l1 { width: 250px; height: 90px; top: -34px; right: 34px; background: linear-gradient(120deg, rgba(255, 138, 42, 0.5), rgba(255, 90, 31, 0.18)); transform: rotate(4deg); z-index: 0; }
.layer-panel.l2 { width: 210px; height: 70px; bottom: -26px; left: 8px; background: linear-gradient(120deg, rgba(255, 61, 84, 0.4), rgba(255, 138, 42, 0.14)); transform: rotate(-5deg); z-index: 0; }
.layer-panel.l3 { width: 170px; height: 60px; top: 22%; left: -34px; background: linear-gradient(120deg, rgba(23, 19, 14, 0.12), rgba(255, 138, 42, 0.14)); transform: rotate(8deg); z-index: 0; }

.browser {
  position: relative; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: rotateX(1.5deg);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dot.r { background: #ff5f57; }
.browser-bar .dot.y { background: #febc2e; }
.browser-bar .dot.g { background: #28c840; }
.browser-url {
  margin-left: 8px; flex: 1;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-body { padding: 20px; }

/* the actual widget look (mirrors @staticlayer/widget) */
.widget-demo { display: flex; flex-direction: column; gap: 14px; }
.widget-demo .wd-head { display: flex; align-items: center; justify-content: space-between; }
.widget-demo .wd-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.2px; }
.widget-demo .wd-count {
  font-size: 11px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.wd-list { display: flex; flex-direction: column; gap: 10px; }
.wd-item {
  display: flex; gap: 11px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.wd-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.wd-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  background: var(--acc-grad);
}
.wd-avatar.cool { background: linear-gradient(135deg, #2b3a55, #3f5a85); }
.wd-main { min-width: 0; flex: 1; }
.wd-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.wd-nick { font-weight: 650; font-size: 13px; letter-spacing: -0.1px; }
.wd-time { font-size: 11.5px; color: var(--muted); }
.wd-body { margin: 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: break-word; }
.wd-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.wd-input {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 9px 12px; transition: border-color 0.15s;
}
.wd-input:focus { outline: none; border-color: var(--acc); }
.wd-input::placeholder { color: var(--muted); }
.wd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wd-hint { font-size: 11px; color: var(--muted); }
.wd-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 650; color: var(--ok);
  background: rgba(26, 143, 90, 0.1); border: 1px solid rgba(26, 143, 90, 0.25);
  border-radius: 999px; padding: 3px 10px; margin-top: 2px;
}
.wd-pill.err { color: #dc2626; background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.28); }
.wd-pill[hidden] { display: none; }

/* hero widget skeleton — only before the live widget appears */
.wd-skeleton { display: flex; flex-direction: column; gap: 12px; }
.wd-skeleton[hidden] { display: none; }

/* hero widget carousel (one feature at a time) */
.wd-slides { display: flex; flex-direction: column; }
.wd-slide { display: none; flex-direction: column; gap: 12px; }
.wd-slide.on { display: flex; animation: pop-in 0.3s var(--ease); }
.wd-nav { display: flex; gap: 6px; margin-left: auto; }
.wd-nav button {
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.wd-nav button:hover { transform: translateY(-1px); border-color: var(--acc); color: var(--acc); }
.wd-nav button:active { transform: translateY(0); }

/* hero reactions bar */
.wd-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-reaction {
  appearance: none; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.wd-reaction:hover { transform: translateY(-1px); border-color: var(--acc); box-shadow: var(--shadow-sm); }
.wd-reaction:disabled { opacity: 0.6; cursor: progress; transform: none; }
.wd-reaction-count { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.wd-react-status { min-height: 15px; margin: 2px 2px 12px; font-size: 11.5px; color: var(--muted); }
.wd-react-status.ok { color: var(--ok); }

/* architecture pipeline */
.arch-strip {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 56px; padding: 20px 24px;
  background: var(--glass); border: 1px solid var(--line-strong); border-radius: 999px;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
}
.arch-node { display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 700; font-size: 15px; }
.arch-node small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.arch-arrow { color: var(--acc); font-weight: 700; font-size: 18px; animation: pulse-down 1.8s ease-in-out infinite; }
@keyframes pulse-down { 0%, 100% { opacity: 0.45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(3px); } }
.arch-own { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--acc-grad); align-self: center; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.035em; line-height: 1.12; font-weight: 750; text-wrap: balance;
}
.section-head p { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 620px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* why — comparison flows */
.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.flow {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px; position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.flow:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.flow.ours { border-color: rgba(255, 90, 31, 0.4); background: linear-gradient(180deg, rgba(255, 90, 31, 0.05), var(--surface) 40%); }
.flow-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; margin-bottom: 16px;
}
.flow-tag.ours { color: var(--acc); background: var(--acc-soft); border-color: rgba(255, 90, 31, 0.25); }
.flow h3 { margin: 0 0 16px; font-size: 19px; letter-spacing: -0.02em; }
.flow ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.flow li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14.5px; color: var(--ink-soft);
  padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
}
.flow.ours li:last-child { background: var(--acc-soft); border-color: rgba(255, 90, 31, 0.3); color: var(--ink); font-weight: 600; }
.flow li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--line-strong);
}
.flow.ours li::before { background: var(--acc); }
.flow.ours li:last-child::before { background: var(--acc-grad); box-shadow: 0 0 0 3px var(--acc-soft); }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative; overflow: hidden;
}
.benefit::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--acc-grad); opacity: 0; transition: opacity 0.2s;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.benefit:hover::after { opacity: 1; }
.benefit h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.02em; }
.benefit p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* architecture map */
.arch-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch-card {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.arch-card:hover, .arch-card.active { transform: translateY(-3px); border-color: var(--acc); box-shadow: var(--shadow-acc); }
.arch-card h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -0.02em; }
.arch-card small { color: var(--muted); font-size: 12.5px; }
.arch-detail {
  margin-top: 18px; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  min-height: 110px;
}
.arch-detail h4 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.arch-detail p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.arch-detail .not { font-size: 13px; color: var(--muted); }
.arch-detail .not b { color: var(--acc-3); font-weight: 650; }

/* engagement: comments / reactions / votes */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.product:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(255, 90, 31, 0.25);
  border-radius: 999px; padding: 4px 11px;
}
.product h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.product p { margin: 0; font-size: 14px; color: var(--muted); }
.product ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.product li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.product li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none; }
.product a { margin-top: auto; font-size: 13.5px; font-weight: 600; }

/* security */
.sec-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.sec-cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sec-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sec-cat h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.sec-cat p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.sec-cat a { font-size: 13.5px; font-weight: 600; }

.score {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
}
.score-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550;
  padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(26, 143, 90, 0.14); color: var(--ok); font-size: 12px; font-weight: 800;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px; position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-card .num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 15px; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); }
.step-card code { font-size: 12.5px; }

/* integrations */
.integrations { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integration {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 12px 20px; transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s;
}
.integration:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: var(--shadow-sm); text-decoration: none; }
.integration .ico {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.integration:hover .ico { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }

/* works-where */
.where-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.where {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.where:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.where h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.02em; }
.where p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.mini {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  font-family: var(--mono);
}
.mini b { color: var(--ink); font-weight: 600; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-item .n { font-size: 13px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.trust-item p { margin: 0; font-size: 14.5px; font-weight: 600; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 4px 22px; transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--acc); }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px; padding: 16px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; font-weight: 500; color: var(--muted); transition: transform 0.2s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--acc); }
.faq details p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- demo / simulator ---------- */
.sim-shell { padding: 72px 0 96px; position: relative; overflow: hidden; }
.sim-shell::before {
  content: ""; position: absolute; top: -200px; left: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 138, 42, 0.16), transparent 70%); pointer-events: none;
}
.sim-title { max-width: 720px; margin-bottom: 46px; }
.sim-title h1 { margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -0.04em; font-weight: 750; line-height: 1.08; }
.sim-title p { margin: 0; font-size: 16.5px; color: var(--muted); }

.sim-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr); gap: 20px; align-items: start; }

/* compact "under the hood" sidebar */
.sim-side { padding: 22px 20px; }
.sim-side .panel-title { font-size: 15px; }
.sim-side .panel-sub { font-size: 12.5px; }
.sim-side .sim-status li { padding: 8px 10px; font-size: 13px; }

/* demo tabs */
.sim-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.sim-tab {
  font: inherit; font-size: 13px; font-weight: 650; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sim-tab:hover { color: var(--ink); }
.sim-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sim-view { animation: pop-in 0.3s var(--ease); }

/* content rules (what visitors can write) */
.content-rules {
  margin-top: 18px; padding: 16px 18px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 14px;
  font-size: 13px; color: var(--muted);
}
.content-rules b { color: var(--ink); font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.content-rules ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.content-rules li { display: flex; align-items: center; gap: 8px; }
.content-rules li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none; }

/* admin console */
.admin-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 15px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  animation: pop-in 0.3s var(--ease);
}
.page-chip {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 1px 8px;
}
.admin-pages { display: flex; flex-direction: column; gap: 8px; }
.page-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  animation: pop-in 0.3s var(--ease);
}
.page-path { font-family: var(--mono); font-size: 12.5px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-counts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.page-count { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.page-count.pending { color: var(--acc); background: var(--acc-soft); border-color: rgba(255, 90, 31, 0.25); }
.page-count.ok { color: var(--ok); background: rgba(26, 143, 90, 0.1); border-color: rgba(26, 143, 90, 0.25); }
.admin-actions { display: flex; gap: 8px; margin-left: auto; flex: none; align-items: center; }
.admin-actions .btn { padding: 7px 13px; font-size: 12.5px; }
.admin-published .admin-item { opacity: 0.9; }

/* theme picker */
.theme-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }.theme-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: all 0.18s var(--ease);
}
.theme-btn:hover { transform: translateY(-1px); border-color: var(--acc); }
.theme-btn.active { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); flex: none; }

/* demo thread — themable like the real widget */
.demo-thread {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.demo-thread[data-theme="ink"] { background: #16130f; border-color: #2a251c; }
.demo-thread[data-theme="ink"] .dt-head h3,
.demo-thread[data-theme="ink"] .dt-nick,
.demo-thread[data-theme="ink"] .dt-body,
.demo-thread[data-theme="ink"] .dt-form { color: #f4f1ea; }
.demo-thread[data-theme="ink"] .dt-item { background: #1f1b14; border-color: #2a251c; }
.demo-thread[data-theme="ink"] .dt-input { background: #16130f; border-color: #35301f; color: #f4f1ea; }
.demo-thread[data-theme="ink"] .dt-form { background: #1a1710; border-color: #2a251c; }
.demo-thread[data-theme="ink"] .dt-count { color: #c9c1b2; background: #1f1b14; border-color: #2a251c; }
.demo-thread[data-theme="ink"] .dt-time { color: #9a9284; }

.demo-thread[data-theme="glass"] {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(23, 19, 14, 0.25);
}
.demo-thread[data-theme="glass"] .dt-item { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.6); }
.demo-thread[data-theme="glass"] .dt-form { background: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.6); }
.demo-thread[data-theme="glass"] .dt-input { background: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.7); }
@media (prefers-color-scheme: dark) {
  .demo-thread[data-theme="glass"] {
    background: linear-gradient(160deg, rgba(40, 36, 28, 0.8), rgba(28, 25, 19, 0.5));
    border-color: rgba(255, 255, 255, 0.14);
  }
  .demo-thread[data-theme="glass"] .dt-item { background: rgba(40, 36, 28, 0.7); border-color: rgba(255, 255, 255, 0.12); }
  .demo-thread[data-theme="glass"] .dt-form { background: rgba(40, 36, 28, 0.6); border-color: rgba(255, 255, 255, 0.12); }
  .demo-thread[data-theme="glass"] .dt-input { background: rgba(22, 20, 15, 0.7); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
}

.demo-thread[data-theme="ocean"] { background: #f4f8fb; border-color: #d5e3ec; }
.demo-thread[data-theme="ocean"] .dt-head h3,
.demo-thread[data-theme="ocean"] .dt-nick,
.demo-thread[data-theme="ocean"] .dt-body { color: #14202b; }
.demo-thread[data-theme="ocean"] .dt-item { background: #ffffff; border-color: #d5e3ec; }
.demo-thread[data-theme="ocean"] .dt-form { background: #eaf2f7; border-color: #d5e3ec; }
.demo-thread[data-theme="ocean"] .dt-input { background: #fff; border-color: #c4d6e2; color: #14202b; }
.demo-thread[data-theme="ocean"] .dt-count { color: #4a6478; background: #eaf2f7; border-color: #d5e3ec; }
.demo-thread[data-theme="ocean"] .dt-time { color: #7a93a6; }
.demo-thread[data-theme="ocean"] .dt-avatar { background: linear-gradient(135deg, #3f7dab, #2b5d8a); }

.demo-thread[data-theme="sunset"] { background: #fff5f0; border-color: #f5d8c8; }
.demo-thread[data-theme="sunset"] .dt-head h3,
.demo-thread[data-theme="sunset"] .dt-nick,
.demo-thread[data-theme="sunset"] .dt-body { color: #3a2018; }
.demo-thread[data-theme="sunset"] .dt-item { background: #fffdfb; border-color: #f3d9c9; }
.demo-thread[data-theme="sunset"] .dt-form { background: #ffece2; border-color: #f3d9c9; }
.demo-thread[data-theme="sunset"] .dt-input { background: #fff; border-color: #eec7b0; color: #3a2018; }
.demo-thread[data-theme="sunset"] .dt-count { color: #a65c3a; background: #ffece2; border-color: #f3d9c9; }
.demo-thread[data-theme="sunset"] .dt-time { color: #b07a5e; }
.demo-thread[data-theme="sunset"] .dt-avatar { background: linear-gradient(135deg, #ff8a5c, #ff5a3d); }

.dt-head { display: flex; align-items: center; justify-content: space-between; }
.dt-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.dt-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-variant-numeric: tabular-nums; }
.dt-list { display: flex; flex-direction: column; gap: 11px; min-height: 150px; }
.dt-item {
  display: flex; gap: 11px; padding: 14px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  animation: pop-in 0.35s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.dt-item.pending { opacity: 0.72; border-style: dashed; }
.dt-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13.5px; background: var(--acc-grad);
}
.dt-avatar.cool { background: linear-gradient(135deg, #2b3a55, #3f5a85); }
.dt-main { min-width: 0; flex: 1; }
.dt-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.dt-nick { font-weight: 700; font-size: 13px; letter-spacing: -0.1px; }
.dt-time { font-size: 11.5px; color: var(--muted); }
.dt-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--warn); background: rgba(180, 83, 9, 0.12); border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 999px; padding: 2px 8px;
}
.dt-badge.ok { color: var(--ok); background: rgba(26, 143, 90, 0.12); border-color: rgba(26, 143, 90, 0.3); }
.dt-body { margin: 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: break-word; line-height: 1.5; }
.dt-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 40px 10px; }
.dt-form { display: flex; flex-direction: column; gap: 9px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.dt-input {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 13px; transition: border-color 0.15s;
}
.dt-input:focus { outline: none; border-color: var(--acc); }
.dt-input::placeholder { color: var(--muted); }
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt-hint { font-size: 11px; color: var(--muted); }
.dt-note { font-size: 12.5px; color: var(--muted); min-height: 20px; }
.dt-note.ok { color: var(--ok); }

/* reactions bar (anonymous, PoW) */
.react-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.react-editor .dt-input { flex: 1 1 220px; font-family: var(--mono); font-size: 12.5px; padding: 8px 12px; }
.dt-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px;
}
.dt-toggle:hover { color: var(--ink); border-color: var(--acc); }
.dt-toggle input { accent-color: var(--acc); }
/* reactions-only mode: hide the comment UI, keep the bar */
.demo-thread.reacts-only .dt-head,
.demo-thread.reacts-only .dt-list,
.demo-thread.reacts-only .dt-form { display: none; }
.dt-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-reaction {
  appearance: none; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.dt-reaction:hover { transform: translateY(-1px); border-color: var(--acc); box-shadow: var(--shadow-sm); }
.dt-reaction:disabled { opacity: 0.6; cursor: progress; transform: none; }
.dt-reaction-count { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-thread[data-theme="ink"] .dt-reaction { background: #1f1b14; border-color: #2a251c; color: #f4f1ea; }
.demo-thread[data-theme="ink"] .dt-reaction-count { color: #9a9284; }
.demo-thread[data-theme="ocean"] .dt-reaction { background: #fff; border-color: #d5e3ec; color: #14202b; }
.demo-thread[data-theme="ocean"] .dt-reaction-count { color: #7a93a6; }
.demo-thread[data-theme="sunset"] .dt-reaction { background: #fffdfb; border-color: #f3d9c9; color: #3a2018; }
.demo-thread[data-theme="sunset"] .dt-reaction-count { color: #b07a5e; }
.demo-thread[data-theme="glass"] .dt-reaction { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.7); color: var(--ink); }
.page-count.react { color: #7c3aed; background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.25); }
@media (prefers-color-scheme: dark) { .page-count.react { color: #a78bfa; } }

/* panels */
.glass-panel {
  background: var(--glass); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 26px; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
}
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.panel-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }

/* timeline */
.sim-status { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sim-status li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 550; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.sim-status li .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--line-strong); transition: background 0.2s, box-shadow 0.2s;
}
.sim-status li.active { background: var(--acc-soft); color: var(--ink); }
.sim-status li.active .dot { background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); animation: pulse-dot 1.2s ease-in-out infinite; }
.sim-status li.done { color: var(--ink-soft); }
.sim-status li.done .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(26, 143, 90, 0.15); }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.sim-log { display: none; margin-top: 12px; }
.sim-log.open { display: block; }
.sim-log .line {
  display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.sim-log .line b { color: var(--acc); font-weight: 700; flex: none; min-width: 34px; }

/* embed code */
.embed-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }

/* ---------- docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-side { position: sticky; top: 84px; }
.doc-side nav { display: flex; flex-direction: column; gap: 2px; }
.doc-side a { font-size: 14px; color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 500; }
.doc-side a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.doc-side a.active { color: var(--acc); background: var(--acc-soft); font-weight: 650; }
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.04em; font-weight: 750; line-height: 1.1; }
.prose .lede { font-size: 17px; color: var(--muted); margin: 0 0 34px; }
.prose h2 { margin: 44px 0 14px; font-size: 24px; letter-spacing: -0.03em; }
.prose h3 { margin: 30px 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.prose p { margin: 0 0 16px; font-size: 15.5px; color: var(--ink-soft); }
.prose ul, .prose ol { color: var(--ink-soft); font-size: 15.5px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose pre { margin: 18px 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 26px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; color: var(--ink); }
.prose td { color: var(--ink-soft); }
.prose .callout {
  background: var(--acc-soft); border: 1px solid rgba(255, 90, 31, 0.22); border-radius: 13px;
  padding: 16px 18px; font-size: 14px; color: var(--ink-soft); margin: 18px 0 26px;
}
.prose .callout b { color: var(--acc); }

/* ---------- hosted installer CTA ---------- */
.installer-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-md); padding: 22px 24px; margin: 20px 0 8px;
}
.installer-cta h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.installer-cta p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.installer-cta .btn { flex: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; margin: 0 0 6px; letter-spacing: -0.3px; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.footer-tag { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.gh-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-variant-numeric: tabular-nums;
}
.gh-pulse[hidden] { display: none; }
.gh-pulse a { color: var(--ink-soft); }
.gh-pulse a:hover { color: var(--acc); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 560px; }
  .benefits, .sec-cats, .steps, .where-grid, .trust, .products { grid-template-columns: 1fr 1fr; }
  .arch-map { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .doc-side nav { flex-direction: row; flex-wrap: wrap; }
  .flow-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: block; }
  .benefits, .sec-cats, .steps, .where-grid, .trust, .arch-map, .products { grid-template-columns: 1fr; }
  .score { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 38px; }
  .arch-strip { border-radius: 22px; flex-direction: column; gap: 8px; padding: 20px; }
  .arch-arrow { transform: rotate(90deg); }
  .arch-arrow { animation: pulse-right 1.8s ease-in-out infinite; }
  @keyframes pulse-right { 0%, 100% { opacity: 0.45; transform: rotate(90deg); } 50% { opacity: 1; transform: rotate(90deg) translateX(2px); } }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .theme-picker { gap: 8px; }
}

/* ==========================================================================
   v1.8 polish — microinteractions, skeleton, richer widget/demo components
   ========================================================================== */

/* animated brand gradient (subtle, premium) */
.grad-anim {
  background-size: 220% 220%;
  animation: grad-shift 9s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

/* one-time entrance for the hero mockup */
@keyframes enter-up {
  from { opacity: 0; transform: translateY(16px) rotateX(2deg); }
  to { opacity: 1; transform: translateY(0) rotateX(1.5deg); }
}
.browser { animation: enter-up 0.8s var(--ease) 0.15s both; }

/* ---------- hero widget v2: tools row (sort / poll / reactions) ---------- */
.wd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wd-sort {
  display: inline-flex; align-items: center; gap: 3px;
  font: inherit; font-size: 11px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 5px; margin-left: auto;
}
.wd-sort button {
  font: inherit; font-size: 11px; font-weight: 650; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 2px 9px; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.wd-sort button:hover { color: var(--ink); }
.wd-sort button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* like button (heart) */
.wd-like {
  appearance: none; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; margin-top: 8px; cursor: pointer;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.wd-like:hover { transform: translateY(-1px); color: var(--acc-3); border-color: rgba(255, 61, 84, 0.4); }
.wd-like.voted { color: #fff; background: linear-gradient(135deg, #ff5a7a, #ff3d54); border-color: transparent; box-shadow: 0 4px 12px -4px rgba(255, 61, 84, 0.5); }
.wd-like .heart { font-size: 12px; line-height: 1; }
.wd-like .count { font-variant-numeric: tabular-nums; }
.wd-like.bump { animation: heart-pop 0.4s var(--ease); }
@keyframes heart-pop {
  0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); }
}

/* pin badge */
.wd-pin {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(255, 90, 31, 0.25);
  border-radius: 999px; padding: 1px 8px;
}
.wd-item.pinned { border-color: rgba(255, 90, 31, 0.4); background: linear-gradient(180deg, rgba(255, 90, 31, 0.05), var(--surface)); }

/* hero mini-poll */
.wd-poll {
  margin-top: 4px; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px;
  display: flex; flex-direction: column; gap: 8px;
}
.wd-poll-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wd-poll-head h4 { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: -0.1px; }
.wd-poll-head .wd-count { font-size: 10px; }
.poll-option {
  appearance: none; display: flex; flex-direction: column; gap: 5px; width: 100%;
  font: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 13px;
  padding: 12px 14px; position: relative; overflow: hidden;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.poll-option:hover { transform: translateY(-1px); border-color: var(--acc); }
.poll-option .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.poll-option .label { font-size: 12.5px; font-weight: 600; }
.poll-option .pct { font-size: 11.5px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.poll-bar {
  position: absolute; inset: 4px; z-index: 0;
  background: linear-gradient(90deg, rgba(255, 138, 42, 0.16), rgba(255, 61, 84, 0.14));
  border-radius: 9px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.poll-option.show .poll-bar { transform: scaleX(var(--w, 0)); }
.wd-poll-note { font-size: 10.5px; color: var(--muted); min-height: 14px; }
.wd-poll { gap: 9px; }

/* ---------- skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 9px; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-color-scheme: dark) {
  .skel::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%); background-size: 200% 100%; }
}
.skel-row { display: flex; gap: 11px; align-items: center; }
.skel-avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.skel-line { height: 10px; border-radius: 6px; }
.skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; } .skel-line.w40 { width: 40%; }

/* reveal stagger */
[data-reveal] { transition-delay: var(--d, 0s); }

/* number count-up underline */
.tick-pop { animation: tick-pop 0.5s var(--ease); }
@keyframes tick-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- home: product cards with mini previews ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 28px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--pc, rgba(255, 90, 31, 0.14)), transparent 70%);
  pointer-events: none; transition: transform 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product-card:hover::before { transform: scale(1.35); }
.product-card .pc-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--acc-soft); color: var(--acc); font-size: 21px;
  transition: transform 0.25s var(--ease);
}
.product-card:hover .pc-icon { transform: translateY(-2px) scale(1.06); }
.product-card h3 { margin: 0; font-size: 19px; letter-spacing: -0.025em; }
.product-card .lede { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.product-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.product-card li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.product-card li::before { content: "✓"; font-size: 12px; font-weight: 800; color: var(--acc); flex: none; }
.product-card .pc-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.product-card .pc-foot a { font-size: 13.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.product-card .pc-foot a::after { content: "→"; transition: transform 0.2s var(--ease); }
.product-card .pc-foot a:hover::after { transform: translateX(3px); }

/* mini previews inside the cards */
.pc-preview {
  margin: 2px 0 4px; padding: 13px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.pc-comment { display: flex; gap: 9px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.pc-comment .a { width: 24px; height: 24px; border-radius: 8px; flex: none; background: var(--acc-grad); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
.pc-comment .t { font-size: 11.5px; line-height: 1.4; }
.pc-comment .like { margin-left: auto; font-size: 11px; color: var(--acc-3); flex: none; }
.pc-react { display: flex; gap: 6px; }
.pc-chip { font-size: 11px; font-weight: 650; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 9px; }
.pc-chip .n { color: var(--acc); font-weight: 800; }
.pc-poll .pb { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.pc-poll .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.pc-poll .bar i { position: absolute; inset: 0; border-radius: 999px; background: var(--acc-grad); transform: scaleX(var(--w, 0)); transform-origin: left; transition: transform 0.8s var(--ease); }
.pc-poll .pct { width: 26px; text-align: right; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }

/* ---------- docs: grouped sidebar ---------- */
.doc-group { margin-bottom: 18px; }
.doc-group-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); padding: 0 12px 6px; opacity: 0.8;
}
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.doc-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 18px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none !important;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--acc); }
.doc-card .n { font-size: 11px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.doc-card h3 { margin: 6px 0 6px; font-size: 15.5px; letter-spacing: -0.02em; color: var(--ink); }
.doc-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* feature callout row (docs / demo) */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 10px; }
.feature-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature-tile .k { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--acc); }
.feature-tile h4 { margin: 8px 0 6px; font-size: 15px; letter-spacing: -0.02em; }
.feature-tile p { margin: 0; font-size: 13px; color: var(--muted); }

/* demo: mode selector (Comments / Reactions / Polls / All) */
.demo-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.demo-mode {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; position: relative;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.demo-mode:hover { transform: translateY(-1px); border-color: var(--acc); }
.demo-mode.active {
  color: #fff; background: var(--acc-grad); border-color: transparent; box-shadow: var(--shadow-acc);
}
.demo-mode .n { font-size: 11px; font-weight: 800; opacity: 0.85; }
.demo-mode .check { opacity: 0; transform: scale(0.5); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.demo-mode.active .check { opacity: 1; transform: scale(1); }
.demo-mode.active .n { opacity: 1; }

/* demo poll component (mirrors real widget poll) */
.dt-poll { display: flex; flex-direction: column; gap: 9px; padding: 6px 2px 2px; }
.dt-poll .dt-poll-head { display: flex; align-items: center; justify-content: space-between; }
.dt-poll .dt-poll-head h4 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.dt-poll .dt-count { font-size: 10.5px; }
.dt-poll .poll-option { border-radius: 13px; padding: 12px 14px; }
.dt-poll .poll-option .label { font-size: 13.5px; }
.dt-poll .poll-option .pct { font-size: 12.5px; }
.dt-poll .poll-option.voted { border-color: var(--acc); }
.dt-poll .dt-note { margin-top: 4px; }
.demo-thread[data-theme="ink"] .poll-option { background: #1f1b14; border-color: #2a251c; }
.demo-thread[data-theme="ink"] .poll-option .label { color: #f4f1ea; }
.demo-thread[data-theme="ink"] .poll-bar { background: linear-gradient(90deg, rgba(255, 90, 31, 0.35), rgba(255, 61, 84, 0.3)); }
.demo-thread[data-theme="ocean"] .poll-option { background: #fff; border-color: #d5e3ec; }
.demo-thread[data-theme="sunset"] .poll-option { background: #fffdfb; border-color: #f3d9c9; }

/* like button in the demo thread */
.dt-like {
  appearance: none; display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 12px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; margin-top: 8px; cursor: pointer;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.dt-like:hover { transform: translateY(-1px); color: var(--acc-3); border-color: rgba(255, 61, 84, 0.4); }
.dt-like.voted { color: #fff; background: linear-gradient(135deg, #ff5a7a, #ff3d54); border-color: transparent; }
.dt-like.bump { animation: heart-pop 0.4s var(--ease); }
.demo-thread[data-theme="ink"] .dt-like { background: #1f1b14; border-color: #2a251c; color: #9a9284; }
.demo-thread[data-theme="ink"] .dt-like.voted { color: #fff; background: linear-gradient(135deg, #ff5a7a, #ff3d54); }

/* section eyebrow bar (home hero clarity) */
.hero-lede {
  display: grid; grid-template-columns: 1fr; gap: 18px; margin: 34px 0 0;
}
@media (min-width: 900px) { .hero-lede { grid-template-columns: repeat(3, 1fr); } }
.hero-lede .hl-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hero-lede .hl-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero-lede .hl-ico { flex: none; font-size: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); }
.hero-lede .hl-item b { display: block; font-size: 14.5px; letter-spacing: -0.02em; margin-bottom: 2px; }
.hero-lede .hl-item span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

@media (max-width: 720px) {
  .product-grid, .feature-row { grid-template-columns: 1fr; }
}

/* demo mode view: hidden panels */
.demo-view { display: none; }
.demo-view.on { display: block; animation: pop-in 0.3s var(--ease); }

