/* ==========================================================================
   Slicium — Base, layout, components, utilities
   Pure CSS. Mobile-first. Every value references tokens.css.
   Rule: sections are NEVER separated by borders — only whitespace + panel color.
   ========================================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15em; }
a { color: var(--accent-link); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
small { font-size: var(--fs-small); }
code, pre { font-family: var(--font-mono); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--text-primary);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0;
  box-shadow: var(--shadow-md); font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--wide { max-width: var(--container-2xl); }

/* No borders between sections — ever. Separation = space + panel color. */
.section { padding-block: var(--section-y); border: 0; position: relative; }
.section + .section { border-top: 0; }
.section--hero, .section--cta { padding-block: var(--section-y-lg); }
.section--muted { background: var(--bg-muted); }
.section--white { background: var(--bg-white); }
.section--tint { background: var(--bg-tint); }
.section--ink { background: var(--surface-ink); color: var(--text-on-ink); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #ffffff; }
.section--ink .lead, .section--ink p { color: #c9c9ce; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(var(--grid-cols), 1fr); }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--stack); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block; font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-4);
}
.section--ink .eyebrow { color: #f0919f; }
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-secondary); max-width: 60ch; font-weight: 400; }
.muted { color: var(--text-muted); }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-weight: 500; font-size: 1rem; line-height: 1;
  padding: var(--space-3) var(--space-6); min-height: 44px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-muted); color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { background: #ececef; }
.section--ink .btn-secondary { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.section--ink .btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-text {
  background: transparent; color: var(--accent-link); padding-inline: 0;
  min-height: 0; border-radius: var(--radius-sm); font-weight: 500;
}
.btn-text::after { content: " \203A"; transition: transform var(--dur-base) var(--ease-out); }
.btn-text:hover::after { transform: translateX(3px); }
.btn-text:hover { text-decoration: none; color: var(--accent-hover); }
.section--ink .btn-text { color: #f0919f; }
.btn-sm { font-size: var(--fs-small); padding: var(--space-2) var(--space-5); min-height: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); }
.card--link:hover { transform: translateY(-2px); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--text-secondary); margin-bottom: 0; }
.card--flat { box-shadow: none; background: var(--surface-muted); border-color: transparent; }
.card--pad-lg { padding: var(--space-10); }
.card .card-meta { font-size: var(--fs-small); color: var(--text-muted); }
.card-title-link { color: var(--text-primary); }
.card-title-link:hover { color: var(--accent-link); text-decoration: none; }

.icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5); flex: none;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--steel { background: var(--steel-soft); color: var(--steel); }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.02em;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
}
.pill--muted { background: var(--surface-muted); color: var(--text-muted); }
.pill--success { background: var(--success-soft); color: var(--success); }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.07); }
.nav {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: var(--nav-h); width: 100%; max-width: var(--container-2xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-primary); font-weight: 600; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.nav-list { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: var(--space-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-small); color: var(--text-secondary);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.nav-link .chev { width: 10px; height: 10px; transition: transform var(--dur-base) var(--ease-out); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-signin { display: none; font-size: var(--fs-small); color: var(--text-secondary); }
.nav-signin:hover { color: var(--text-primary); text-decoration: none; }

.mega {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-6px);
  top: calc(var(--nav-h) - 2px); width: min(920px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
  padding: var(--space-8); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(3, 1fr); }
.mega-item { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.mega-item:hover { background: var(--surface-muted); text-decoration: none; }
.mega-item strong { display: block; color: var(--text-primary); font-size: var(--fs-small); font-weight: 600; margin-bottom: 2px; }
.mega-item span { display: block; color: var(--text-muted); font-size: var(--fs-micro); line-height: 1.4; }
@media (max-width: 780px) { .mega { display: none; } }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--text-primary);
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }
  .nav-right { margin-left: auto; }
  .nav-signin { display: inline-flex; }
}

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--bg-white); padding: var(--space-6) var(--gutter) var(--space-16);
  overflow-y: auto; display: none;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.is-open { display: none; } }
.mobile-group { padding-block: var(--space-2); }
.mobile-group > button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; font-family: inherit; font-size: 1.125rem; font-weight: 600;
  color: var(--text-primary); padding: var(--space-3) 0; cursor: pointer; min-height: 44px;
}
.mobile-group > button .chev { width: 12px; height: 12px; transition: transform var(--dur-base) var(--ease-out); }
.mobile-group > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-panel { display: none; padding-bottom: var(--space-3); }
.mobile-panel.is-open { display: block; }
.mobile-panel a { display: block; padding: var(--space-3) 0; color: var(--text-secondary); font-size: var(--fs-body); min-height: 44px; }
.mobile-cta { margin-top: var(--space-8); display: grid; gap: var(--space-3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-block: var(--space-6) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-hero);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero .lead { margin-top: var(--space-6); }
.hero .btn-row { margin-top: var(--space-8); }
.hero-split { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: 1.05fr 1fr; } }
.hero-media { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Dashboard preview ---------- */
.app-frame {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); background: var(--surface-muted);
}
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: #d5d5da; }
.app-title { margin-left: var(--space-3); font-size: var(--fs-micro); color: var(--text-muted); }
.app-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .app-body { grid-template-columns: 200px 1fr; } }
.app-side { padding: var(--space-6); background: #fafafc; display: none; }
@media (min-width: 760px) { .app-side { display: block; } }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.app-side li { font-size: var(--fs-small); color: var(--text-muted); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.app-side li.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-main { padding: var(--space-6); display: grid; gap: var(--space-5); }
.app-kpis { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .app-kpis { grid-template-columns: repeat(4, 1fr); } }
.app-kpi { background: var(--surface-muted); border-radius: var(--radius-md); padding: var(--space-4); }
.app-kpi .k { display: block; font-size: var(--fs-micro); color: var(--text-muted); margin-bottom: 4px; }
.app-kpi .v { display: block; font-size: 1.25rem; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.app-kpi .d { font-size: var(--fs-micro); color: var(--success); }
.app-chart { background: var(--surface-muted); border-radius: var(--radius-md); padding: var(--space-5); }
.app-chart svg { width: 100%; height: auto; }
.app-rows { display: grid; gap: var(--space-2); }
.app-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: var(--space-4);
  align-items: center; font-size: var(--fs-small); color: var(--text-secondary);
  padding: var(--space-3) var(--space-4); background: var(--surface-muted); border-radius: var(--radius-sm);
}
.app-row .name { color: var(--text-primary); font-weight: 500; }
.app-row .num { font-variant-numeric: tabular-nums; }

/* ---------- Logos ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); align-items: center; }
@media (min-width: 620px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 600; letter-spacing: -0.01em;
  font-size: var(--fs-body); opacity: .62; text-align: center;
  transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.logo-item:hover { opacity: 1; color: var(--text-primary); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; gap: var(--space-10); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat .n {
  display: block; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 600;
  line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.section--ink .stat .n { color: #fff; }
.stat .l { display: block; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-muted); max-width: 24ch; }
.stat .n .unit { color: var(--accent); }

/* ---------- Alternating feature rows ---------- */
.feature-row { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.is-flipped .feature-copy { order: 2; }
}
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 128px); }
.feature-copy h3 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
.check-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); font-size: var(--fs-body); color: var(--text-secondary); }
.check-list svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* Visual panel (abstract product visual, pure CSS/SVG) */
.visual {
  border-radius: var(--radius-2xl); background: var(--surface);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md);
  padding: var(--space-8); overflow: hidden;
}
.visual--muted { background: var(--grad-soft); }
.visual svg { width: 100%; height: auto; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, auto); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.bento > * { display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 900px) {
  .bento .span-2 { grid-column: span 2; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 4; }
  .bento .row-2 { grid-row: span 2; }
}

/* ---------- Agent workflow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 620px) and (max-width: 899px) { .flow { grid-template-columns: repeat(2, 1fr); } }
.flow li { position: relative; }
.flow .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: var(--fs-micro); font-weight: 600;
  margin-bottom: var(--space-4); font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: calc(var(--space-6) * -1);
    width: var(--space-6); height: 1px; background: var(--border-default);
  }
}

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: var(--space-6); height: 100%; }
.quote-card blockquote { margin: 0; font-size: var(--fs-h4); line-height: 1.45; color: var(--text-primary); font-weight: 500; letter-spacing: -0.01em; }
.quote-meta { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 600; font-size: var(--fs-small);
}
.quote-meta cite { font-style: normal; font-size: var(--fs-small); color: var(--text-primary); font-weight: 600; display: block; }
.quote-meta .role { font-size: var(--fs-micro); color: var(--text-muted); }
.featured-quote { max-width: 46rem; margin-inline: auto; text-align: center; }
.featured-quote blockquote { font-size: var(--fs-h3); line-height: 1.35; color: var(--text-primary); font-weight: 500; margin: 0 0 var(--space-8); letter-spacing: -0.015em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.is-featured { box-shadow: var(--shadow-lg); border-color: var(--accent-ring); }
.price-amount { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.price-period { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-2); }
.price-card ul { list-style: none; margin: var(--space-6) 0 var(--space-8); padding: 0; display: grid; gap: var(--space-3); }
.price-card li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-secondary); }
.price-card li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.price-card .btn { margin-top: auto; width: 100%; }
.billing-toggle { display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: var(--surface-muted); border-radius: var(--radius-pill); margin-bottom: var(--space-10); }
.billing-toggle button {
  border: 0; background: transparent; font-family: inherit; font-size: var(--fs-small);
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill); cursor: pointer;
  color: var(--text-muted); min-height: 36px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-small); }
table.matrix th, table.matrix td { text-align: left; padding: var(--space-4) var(--space-5); vertical-align: top; }
table.matrix thead th { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
table.matrix tbody tr + tr { border-top: 1px solid var(--border-subtle); }
table.matrix td:first-child, table.matrix th:first-child { color: var(--text-primary); font-weight: 600; }
table.matrix .yes { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer;
  padding: var(--space-6) 0; font-size: var(--fs-h4); font-weight: 600; color: var(--text-primary);
  min-height: 44px;
}
.faq-q .chev { width: 14px; height: 14px; flex: none; color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: var(--space-6); }
.faq-a.is-open { display: block; }
.faq-a p { color: var(--text-secondary); max-width: 72ch; }

/* ---------- Code & terminal ---------- */
.code-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); background: var(--surface-muted); }
.code-file { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); }
.copy-btn { background: none; border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-family: inherit; font-size: var(--fs-micro); color: var(--text-secondary); padding: 6px var(--space-3); cursor: pointer; min-height: 32px; }
.copy-btn:hover { background: var(--surface); }
.code-card pre { margin: 0; padding: var(--space-6); overflow-x: auto; font-size: var(--fs-small); line-height: 1.6; color: var(--text-secondary); }
.code-card code { font-family: var(--font-mono); }
.tok-key { color: #9c1129; }
.tok-str { color: #1d6b3f; }
.tok-com { color: var(--text-faint); }
.tok-fn  { color: #2b4a80; }
.terminal { background: #16161a; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal .code-head { background: #1f1f24; }
.terminal .code-file { color: #a1a1a6; }
.terminal pre { margin: 0; padding: var(--space-6); color: #e6e6ea; font-size: var(--fs-small); line-height: 1.7; overflow-x: auto; }
.terminal .p { color: #f0919f; }
.terminal .o { color: #9fa0a6; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.tab {
  background: var(--surface-muted); border: 0; font-family: inherit; font-size: var(--fs-small);
  color: var(--text-secondary); padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill);
  cursor: pointer; min-height: 40px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.tab[aria-selected="true"] { background: var(--text-primary); color: #fff; font-weight: 600; }
.tabpanel[hidden] { display: none; }

/* ---------- Security / trust ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5); font-size: var(--fs-small); font-weight: 500; color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Lists / posts ---------- */
.post-grid { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.post-card .card-meta { margin-top: auto; }

.job-list { display: grid; gap: var(--space-4); }
.job {
  display: grid; gap: var(--space-2); align-items: center;
  grid-template-columns: 1fr; padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.job:hover { box-shadow: var(--shadow-md); }
@media (min-width: 760px) { .job { grid-template-columns: 2fr 1fr 1fr auto; gap: var(--space-6); } }
.job h3 { margin: 0; font-size: var(--fs-h4); }
.job .meta { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Docs three-pane ---------- */
.docs-layout { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) { .docs-layout { grid-template-columns: 220px minmax(0, 1fr) 200px; } }
.docs-nav ul { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; gap: var(--space-1); }
.docs-nav h4 { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-3); }
.docs-nav a { display: block; font-size: var(--fs-small); color: var(--text-secondary); padding: var(--space-2) 0; }
.docs-nav a:hover { color: var(--accent-link); text-decoration: none; }
.docs-toc { display: none; }
@media (min-width: 1000px) { .docs-toc { display: block; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; } }
.docs-prose h2 { margin-top: var(--space-12); }
.docs-prose h3 { margin-top: var(--space-8); }
.docs-prose > *:first-child { margin-top: 0; }
@media (min-width: 1000px) { .docs-nav { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; max-height: calc(100vh - var(--nav-h) - 64px); overflow-y: auto; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); max-width: 34rem; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-primary); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--fs-body); color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-note { font-size: var(--fs-micro); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-muted); padding-block: clamp(56px, 7vw, 88px) var(--space-10); }
.footer-top { display: grid; gap: var(--space-10); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand p { font-size: var(--fs-small); color: var(--text-muted); max-width: 34ch; }
.site-footer h4 { font-size: var(--fs-small); color: var(--text-primary); margin-bottom: var(--space-4); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-footer nav a { font-size: var(--fs-small); color: var(--text-muted); }
.site-footer nav a:hover { color: var(--text-primary); text-decoration: none; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between; font-size: var(--fs-micro); color: var(--text-muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--text-muted); }

/* ---------- Motion ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
