/* =============================================================
   ARK LABS — SOLUTIONS (hub + sub-pages)
   Shared styles for /solutions/ark-inference/ and its four
   solution sub-pages (openclaw, nemoclaw, anythingllm, hermes).
   ============================================================= */

/* ---- Brand color tokens per solution stack ---- */
:root {
  --brand-openclaw: #F97056;
  --brand-openclaw-deep: #D94632;
  --brand-nemoclaw: #76B900;
  --brand-nemoclaw-deep: #5A8F00;
  --brand-anythingllm: #1F2937;
  --brand-anythingllm-accent: #3DD9F0;
  --brand-hermes-a: #2C5FD4;
  --brand-hermes-b: #8E4FE2;
}

/* ---- Page-level container ---- */
.sol-wrap { background: var(--white); }

/* ---- Section tag center variant (extracted from inline style) ---- */
.section-tag.center { justify-content: center; display: inline-flex; }

/* ---- Inline-heading override used on sub-pages "WHAT IT IS" h2 ---- */
.sub-what-heading {
  font-size: 2em; font-weight: 800; color: var(--navy);
  letter-spacing: -0.5px; line-height: 1.18; margin-bottom: 14px;
}

/* ---- HERO (hub + sub-pages share this) ---- */
.sol-hero {
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
  padding: 90px 60px 70px;
}
.sol-hero-inner { max-width: 1180px; margin: 0 auto; }
.sol-hero h1 {
  font-size: 3em; font-weight: 800; line-height: 1.08;
  letter-spacing: -1px; color: var(--navy); margin-bottom: 16px;
  max-width: 900px;
}
.sol-hero h1 .accent { color: var(--cyan); }
.sol-hero p.lede {
  font-size: 1.12em; color: var(--steel); line-height: 1.65;
  max-width: 760px; margin-bottom: 28px;
}
.sol-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.sol-hero-proof {
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.sol-hero-proof-item .n {
  font-size: 1.5em; font-weight: 800; color: var(--cyan); letter-spacing: -0.5px;
}
.sol-hero-proof-item .l {
  font-size: 0.72em; color: var(--steel); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 1px; line-height: 1.4;
}

/* ---- OUTCOMES band (hub) ---- */
.sol-outcomes { padding: 84px 60px; background: var(--white); }
.sol-outcomes-inner { max-width: 1180px; margin: 0 auto; }
.sol-outcomes-head { max-width: 780px; margin-bottom: 44px; }
.sol-outcomes-head h2 {
  font-size: 2.2em; font-weight: 800; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px;
}
.sol-outcomes-head p { font-size: 1.02em; color: var(--steel); line-height: 1.65; }

.sol-outcomes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sol-outcome {
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.sol-outcome:hover { border-color: var(--cyan); transform: translateY(-2px); }
.sol-outcome .ico {
  width: 44px; height: 44px; background: var(--cyan-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; color: var(--cyan-dark); margin-bottom: 18px; font-weight: 700;
}
.sol-outcome h3 {
  font-size: 1.15em; font-weight: 700; color: var(--navy);
  margin-bottom: 10px; line-height: 1.3;
}
.sol-outcome p { font-size: 0.94em; color: var(--steel); line-height: 1.6; }
.sol-outcome .pick {
  margin-top: 14px; font-size: 0.82em; font-weight: 600; color: var(--cyan-dark);
}

/* ---- SOLUTIONS GRID (hub) ---- */
.sol-grid-sec { padding: 84px 60px; background: var(--light-blue); }
.sol-grid-inner { max-width: 1180px; margin: 0 auto; }
.sol-grid-head { margin-bottom: 44px; max-width: 780px; }
.sol-grid-head h2 {
  font-size: 2.2em; font-weight: 800; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px;
}
.sol-grid-head p { font-size: 1.02em; color: var(--steel); line-height: 1.65; }

.sol-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.sol-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 30px 28px; text-decoration: none;
  color: var(--navy); transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
/* Color-wash overlay that slides in on hover, tinted per stack */
.sol-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,174,232,0.06) 100%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.sol-card:hover::before { opacity: 1; }
.sol-card.stack-openclaw::before {
  background: linear-gradient(180deg, transparent 55%, rgba(249,112,86,0.10) 100%);
}
.sol-card.stack-nemoclaw::before {
  background: linear-gradient(180deg, transparent 55%, rgba(118,185,0,0.10) 100%);
}
.sol-card.stack-anythingllm::before {
  background: linear-gradient(180deg, transparent 55%, rgba(31,41,55,0.10) 100%);
}
.sol-card.stack-hermes::before {
  background: linear-gradient(180deg, transparent 55%, rgba(142,79,226,0.10) 100%);
}
.sol-card:hover {
  border-color: var(--cyan); transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12,35,64,0.09);
}
.sol-card.stack-openclaw:hover { border-color: var(--brand-openclaw); }
.sol-card.stack-nemoclaw:hover { border-color: var(--brand-nemoclaw); }
.sol-card.stack-anythingllm:hover { border-color: var(--brand-anythingllm); }
.sol-card.stack-hermes:hover { border-color: var(--brand-hermes-b); }

.sol-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
/* Real SVG logo mark — replaces the previous text initials */
.sol-logo {
  width: 52px; height: 52px; border-radius: 14px;
  flex-shrink: 0; display: block;
  box-shadow: 0 4px 12px rgba(12,35,64,0.10);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1.4), box-shadow 0.35s;
}
.sol-card:hover .sol-logo {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 10px 22px rgba(12,35,64,0.18);
  animation: sol-logo-pulse 1.6s ease-in-out infinite;
}
@keyframes sol-logo-pulse {
  0%, 100% { transform: scale(1.08) rotate(-3deg); }
  50%      { transform: scale(1.12) rotate(-1deg); }
}
/* Legacy text-mark (kept for back-compat, no longer used in cards) */
.sol-card-mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; font-weight: 800; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.sol-card-mark.nv { background: var(--brand-nemoclaw); }
.sol-card-mark.hr { background: linear-gradient(135deg, var(--brand-hermes-a) 0%, var(--brand-hermes-b) 100%); }
.sol-card-mark.al { background: var(--brand-anythingllm); }
.sol-card-kicker {
  font-size: 0.72em; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: right; max-width: 50%;
}
.sol-card.stack-openclaw .sol-card-kicker { color: var(--brand-openclaw-deep); }
.sol-card.stack-nemoclaw .sol-card-kicker { color: var(--brand-nemoclaw-deep); }
.sol-card.stack-anythingllm .sol-card-kicker { color: var(--brand-anythingllm-accent); }
.sol-card.stack-hermes .sol-card-kicker { color: var(--brand-hermes-b); }
.sol-card h3 {
  font-size: 1.4em; font-weight: 800; color: var(--navy);
  letter-spacing: -0.3px; margin-bottom: 10px; line-height: 1.25;
}
.sol-card p.card-sub {
  font-size: 0.96em; color: var(--steel); line-height: 1.6;
  margin-bottom: 18px; flex: 1;
}
.sol-card-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.sol-card-tag {
  font-size: 0.72em; font-weight: 600; color: var(--steel);
  background: var(--bg-warm); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.sol-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border-light);
  position: relative; z-index: 1;
}
.sol-card-meta {
  font-size: 0.82em; color: var(--steel); font-weight: 500;
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 70%;
}
.sol-card-arrow {
  font-size: 1.2em; color: var(--cyan); font-weight: 700;
  display: inline-block; transition: transform 0.25s ease;
}
.sol-card:hover .sol-card-arrow { transform: translateX(6px); }
.sol-card.stack-openclaw:hover .sol-card-arrow { color: var(--brand-openclaw-deep); }
.sol-card.stack-nemoclaw:hover .sol-card-arrow { color: var(--brand-nemoclaw-deep); }
.sol-card.stack-anythingllm:hover .sol-card-arrow { color: var(--brand-anythingllm-accent); }
.sol-card.stack-hermes:hover .sol-card-arrow { color: var(--brand-hermes-b); }

/* Card tags (also z-indexed above the hover wash) */
.sol-card-tags,
.sol-card p.card-sub,
.sol-card h3 { position: relative; z-index: 1; }

/* ---- QUICKSTART band (hub + sub-pages) ---- */
.sol-quick { padding: 88px 60px; background: var(--navy); color: var(--white); }
.sol-quick-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.sol-quick .section-tag { color: var(--cyan); }
.sol-quick .section-tag .bar { background: var(--cyan); }
.sol-quick h2 {
  font-size: 2.2em; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 14px; color: var(--white);
}
.sol-quick p {
  font-size: 1.02em; color: rgba(255,255,255,0.78); line-height: 1.7;
  margin-bottom: 22px;
}
.sol-quick .inline-code {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  padding: 2px 8px; border-radius: 6px; font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.92em; color: #9BE7FF;
}
.sol-quick-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 700; text-decoration: none;
  font-size: 0.98em; margin-top: 4px;
}
.sol-quick-cta:hover { color: #9BE7FF; }

.sol-code {
  background: #0a1728; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.sol-code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #07101c; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sol-code-head .cd { width: 10px; height: 10px; border-radius: 50%; }
.sol-code-head .cd-r { background: #ff5f57; }
.sol-code-head .cd-y { background: #febc2e; }
.sol-code-head .cd-g { background: #28c840; }
.sol-code-head .ct {
  margin-left: 10px; color: rgba(255,255,255,0.55);
  font-size: 0.78em; font-family: 'SF Mono', Consolas, Menlo, monospace;
}
.sol-code pre {
  padding: 22px; color: #E2EAF2; font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.88em; line-height: 1.7; white-space: pre; overflow-x: auto; margin: 0;
}
.sol-code pre .k { color: #C678DD; }
.sol-code pre .fn { color: #61AFEF; }
.sol-code pre .s { color: #98C379; }
.sol-code pre .p { color: #E5C07B; }
.sol-code pre .c { color: #7A8CA1; font-style: italic; }
.sol-code pre .hl { color: #9BE7FF; font-weight: 600; }

/* ---- WHY ARK strip (hub) ---- */
.sol-why { padding: 84px 60px; background: var(--white); }
.sol-why-inner { max-width: 1180px; margin: 0 auto; }
.sol-why-head { text-align: center; margin-bottom: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }
.sol-why-head .section-tag { justify-content: center; }
.sol-why-head h2 {
  font-size: 2.2em; font-weight: 800; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px;
}
.sol-why-head p { font-size: 1.02em; color: var(--steel); line-height: 1.65; }

.sol-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sol-why-card {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 22px; background: var(--bg-warm);
}
.sol-why-card .ico-sq {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.sol-why-card h3,
.sol-why-card h4 {
  font-size: 1.02em; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3; margin-top: 0;
}
.sol-why-card p { font-size: 0.9em; color: var(--steel); line-height: 1.6; }

/* ---- FAQ ---- */
.sol-faq { padding: 84px 60px; background: var(--bg-warm); }
.sol-faq-inner { max-width: 880px; margin: 0 auto; }
.sol-faq-head { margin-bottom: 32px; text-align: center; }
.sol-faq-head h2 {
  font-size: 2em; font-weight: 800; color: var(--navy);
  letter-spacing: -0.4px;
}
.sol-faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 12px; padding: 18px 22px;
  transition: border-color 0.2s;
}
.sol-faq-item[open] { border-color: var(--cyan); }
.sol-faq-item summary {
  font-weight: 700; color: var(--navy); font-size: 1em;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.sol-faq-item summary::-webkit-details-marker { display: none; }
.sol-faq-item summary::after {
  content: '+'; color: var(--cyan); font-size: 1.4em; font-weight: 400;
}
.sol-faq-item[open] summary::after { content: '-'; }
.sol-faq-item p {
  margin-top: 12px; color: var(--steel); font-size: 0.96em; line-height: 1.7;
}
.sol-faq-item a { color: var(--cyan-dark); font-weight: 600; }

/* ---- FINAL CTA ---- */
.sol-final { padding: 90px 60px; background: var(--navy); color: var(--white); text-align: center; }
.sol-final-inner { max-width: 780px; margin: 0 auto; }
.sol-final h2 {
  font-size: 2.4em; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.6px; margin-bottom: 14px; color: var(--white);
}
.sol-final p {
  font-size: 1.05em; color: rgba(255,255,255,0.78); line-height: 1.65;
  margin-bottom: 28px;
}
.sol-final-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.sol-final .btn-primary-lg { background: var(--cyan); }
.sol-final .btn-outline-lg {
  background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white);
}
.sol-final .btn-outline-lg:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================================
   SUB-PAGE specific styles (used on openclaw, nemoclaw,
   anythingllm, hermes sub-pages)
   ============================================================ */

/* ---- Breadcrumb ---- */
.sol-crumb {
  background: var(--white); padding: 18px 60px 0;
  max-width: 1180px; margin: 0 auto; font-size: 0.84em; color: var(--steel);
}
.sol-crumb a { color: var(--steel); text-decoration: none; }
.sol-crumb a:hover { color: var(--cyan); }
.sol-crumb .sep { margin: 0 8px; color: var(--border); }
.sol-crumb .here { color: var(--navy); font-weight: 600; }

/* ---- Sub-hero (reuses .sol-hero but adds a stats tile) ---- */
.sub-hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .sub-hero-grid { grid-template-columns: 1fr; } }

.sub-hero-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(12,35,64,0.06);
}
.sub-hero-card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.sub-hero-card-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sub-hero-card-head .label { font-size: 0.78em; color: var(--steel); font-weight: 600; }
.sub-hero-card-head .tag {
  margin-left: auto; font-size: 0.68em; font-weight: 700; color: var(--cyan-dark);
  background: var(--cyan-light); padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.sub-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sub-hero-stat {
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 14px;
}
.sub-hero-stat .n {
  font-size: 1.3em; font-weight: 800; color: var(--navy);
  letter-spacing: -0.4px;
}
.sub-hero-stat .l {
  font-size: 0.72em; color: var(--steel); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* ---- Generic section layout for sub-pages ---- */
.sub-section { padding: 76px 60px; }
.sub-section.bg-warm { background: var(--bg-warm); }
.sub-section.bg-light { background: var(--light-blue); }
.sub-section-inner { max-width: 1180px; margin: 0 auto; }
.sub-section-head { max-width: 760px; margin-bottom: 36px; }
.sub-section-head h2 {
  font-size: 2em; font-weight: 800; color: var(--navy);
  line-height: 1.18; letter-spacing: -0.5px; margin-bottom: 12px;
}
.sub-section-head p { font-size: 1.02em; color: var(--steel); line-height: 1.65; }

/* ---- "What it is" body copy ---- */
.sub-what-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
}
@media (max-width: 900px) { .sub-what-grid { grid-template-columns: 1fr; } }
.sub-what-body p {
  font-size: 1.02em; color: var(--steel); line-height: 1.75; margin-bottom: 14px;
}
.sub-what-body p strong { color: var(--navy); font-weight: 700; }
.sub-what-checks { list-style: none; padding: 0; margin-top: 10px; }
.sub-what-checks li {
  font-size: 0.96em; color: var(--navy); line-height: 1.6;
  padding: 8px 0 8px 28px; position: relative;
}
.sub-what-checks li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan-light);
  box-shadow: inset 0 0 0 2px var(--cyan);
}

/* ---- Why-on-ARK 3-up ---- */
.sub-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sub-why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px;
}
.sub-why-card .kpi {
  font-size: 1.6em; font-weight: 800; color: var(--cyan);
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.sub-why-card h3,
.sub-why-card h4 {
  font-size: 1em; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3; margin-top: 0;
}
.sub-why-card p { font-size: 0.92em; color: var(--steel); line-height: 1.6; }

/* ---- Use-cases 3-up ---- */
.sub-uc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sub-uc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px;
}
.sub-uc-card .num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82em; font-weight: 800; margin-bottom: 14px;
}
.sub-uc-card h3,
.sub-uc-card h4 {
  font-size: 1.02em; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3; margin-top: 0;
}
.sub-uc-card p { font-size: 0.92em; color: var(--steel); line-height: 1.6; }

/* ---- Resources links ---- */
.sub-resources {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.sub-resource {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  text-decoration: none; color: var(--navy);
  transition: all 0.2s;
}
.sub-resource:hover { border-color: var(--cyan); transform: translateY(-2px); }
.sub-resource .ico-rs {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--cyan-light); color: var(--cyan-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1em; font-weight: 800; flex-shrink: 0;
}
.sub-resource .rs-ttl { font-size: 0.95em; font-weight: 700; color: var(--navy); }
.sub-resource .rs-sub { font-size: 0.8em; color: var(--steel); margin-top: 2px; }

/* ============================================================
   FLOW DIAGRAM (hub) — ARK Supervisor at center, 4 stacks orbit
   ============================================================ */
.sol-flow {
  padding: 84px 60px; background: var(--bg-warm);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sol-flow-inner { max-width: 1180px; margin: 0 auto; }
.sol-flow-head { text-align: center; margin-bottom: 44px; max-width: 760px;
  margin-left: auto; margin-right: auto; }
.sol-flow-head h2 {
  font-size: 2.2em; font-weight: 800; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px;
}
.sol-flow-head p { font-size: 1.02em; color: var(--steel); line-height: 1.65; }

.sol-flow-stage {
  position: relative; width: 100%; max-width: 760px; height: 440px;
  margin: 0 auto;
}
.sol-flow-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan) 0%, var(--navy) 70%);
  color: var(--white); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(0,174,232,0.08), 0 20px 50px rgba(12,35,64,0.25);
  z-index: 3;
}
.sol-flow-core .core-kick {
  font-size: 0.7em; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #9BE7FF; margin-bottom: 4px;
}
.sol-flow-core .core-title { font-size: 1.15em; font-weight: 800; letter-spacing: -0.3px; }
.sol-flow-core .core-sub {
  font-size: 0.78em; color: rgba(255,255,255,0.78);
  margin-top: 4px; text-align: center; line-height: 1.3;
}
/* Pulsing concentric rings around the core */
.sol-flow-core::before,
.sol-flow-core::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid var(--cyan); opacity: 0;
  animation: sol-flow-pulse 3.4s ease-out infinite;
}
.sol-flow-core::after { animation-delay: 1.7s; }
@keyframes sol-flow-pulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 4 orbiting stack nodes */
.sol-flow-node {
  position: absolute; width: 132px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--navy);
  box-shadow: 0 8px 20px rgba(12,35,64,0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  z-index: 4;
}
.sol-flow-node:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(12,35,64,0.14);
}
.sol-flow-node.stack-openclaw:hover    { border-color: var(--brand-openclaw); }
.sol-flow-node.stack-nemoclaw:hover    { border-color: var(--brand-nemoclaw); }
.sol-flow-node.stack-anythingllm:hover { border-color: var(--brand-anythingllm); }
.sol-flow-node.stack-hermes:hover      { border-color: var(--brand-hermes-b); }

.sol-flow-node img {
  width: 44px; height: 44px; border-radius: 10px;
  margin-bottom: 8px;
  animation: sol-flow-bob 4s ease-in-out infinite;
}
.sol-flow-node.d1 img { animation-delay: 0s; }
.sol-flow-node.d2 img { animation-delay: 0.8s; }
.sol-flow-node.d3 img { animation-delay: 1.6s; }
.sol-flow-node.d4 img { animation-delay: 2.4s; }
@keyframes sol-flow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.sol-flow-node .n-ttl {
  font-size: 0.88em; font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.2px; text-align: center;
}
.sol-flow-node .n-sub {
  font-size: 0.72em; color: var(--steel); margin-top: 3px;
  text-align: center; line-height: 1.3;
}

.sol-flow-node.pos-tl { top: 0;   left: 0; }
.sol-flow-node.pos-tr { top: 0;   right: 0; }
.sol-flow-node.pos-bl { bottom: 0; left: 0; }
.sol-flow-node.pos-br { bottom: 0; right: 0; }

/* SVG connectors sit behind the nodes and the core */
.sol-flow-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
.sol-flow-lines path {
  fill: none; stroke: var(--cyan); stroke-width: 1.5;
  stroke-dasharray: 5 7; opacity: 0.55;
  animation: sol-flow-dash 5s linear infinite;
}
@keyframes sol-flow-dash { to { stroke-dashoffset: -96; } }

/* ============================================================
   PER-SUB-PAGE HERO ANIMATIONS
   Replaces the static "at a glance" card with a canvas that
   tells the stack's story visually.
   ============================================================ */
.hero-anim {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-warm) 100%);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 22px 54px rgba(12,35,64,0.08);
  min-height: 340px; overflow: hidden;
}
.hero-anim-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.hero-anim-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(32,189,118,0.7);
  animation: hero-dot-pulse 2s ease-out infinite;
}
@keyframes hero-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(32,189,118,0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(32,189,118,0); }
  100% { box-shadow: 0 0 0 0 rgba(32,189,118,0); }
}
.hero-anim-head .label { font-size: 0.8em; color: var(--steel); font-weight: 600; }
.hero-anim-head .tag {
  margin-left: auto; font-size: 0.66em; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--cyan-light); color: var(--cyan-dark);
}

/* ---- OpenClaw: messages flowing from channels to core ---- */
.hero-anim.oc .stage { position: relative; height: 240px; }
.hero-anim.oc .hub {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-openclaw), var(--brand-openclaw-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -0.5px;
  box-shadow: 0 8px 22px rgba(249,112,86,0.35);
  z-index: 2;
}
.hero-anim.oc .hub::after {
  content: ''; position: absolute; inset: -6px; border-radius: 22px;
  border: 2px solid var(--brand-openclaw); opacity: 0.4;
  animation: oc-ring 2.6s ease-out infinite;
}
@keyframes oc-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.hero-anim.oc .chan {
  position: absolute; width: 78px; padding: 8px 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 0.74em; font-weight: 700; color: var(--navy);
  box-shadow: 0 4px 10px rgba(12,35,64,0.06);
  z-index: 3;
}
.hero-anim.oc .chan .bullet {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.hero-anim.oc .chan.c1 { top: 4%;    left: 2%;   }
.hero-anim.oc .chan.c2 { top: 4%;    right: 2%;  }
.hero-anim.oc .chan.c3 { bottom: 4%; left: 2%;   }
.hero-anim.oc .chan.c4 { bottom: 4%; right: 2%;  }
.hero-anim.oc .chan.c1 .bullet { background: #25D366; } /* WhatsApp green */
.hero-anim.oc .chan.c2 .bullet { background: #4A154B; } /* Slack aubergine */
.hero-anim.oc .chan.c3 .bullet { background: #0088CC; } /* Telegram */
.hero-anim.oc .chan.c4 .bullet { background: #5865F2; } /* Discord */

.hero-anim.oc .pkt {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-openclaw); opacity: 0; z-index: 1;
  box-shadow: 0 0 12px rgba(249,112,86,0.7);
}
.hero-anim.oc .pkt.p1 { animation: oc-fly1 3.2s linear infinite; }
.hero-anim.oc .pkt.p2 { animation: oc-fly2 3.2s linear 0.8s infinite; }
.hero-anim.oc .pkt.p3 { animation: oc-fly3 3.2s linear 1.6s infinite; }
.hero-anim.oc .pkt.p4 { animation: oc-fly4 3.2s linear 2.4s infinite; }
@keyframes oc-fly1 { 0% { top: 14%; left: 12%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 50%; left: 50%; opacity: 0; } }
@keyframes oc-fly2 { 0% { top: 14%; right: 12%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 50%; right: 50%; opacity: 0; } }
@keyframes oc-fly3 { 0% { bottom: 14%; left: 12%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: 50%; left: 50%; opacity: 0; } }
@keyframes oc-fly4 { 0% { bottom: 14%; right: 12%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: 50%; right: 50%; opacity: 0; } }

/* ---- NemoClaw: sandboxed execution with guardrails ---- */
.hero-anim.nc .stage { position: relative; height: 240px; }
.hero-anim.nc .shield {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 200px;
  border: 2px solid var(--brand-nemoclaw); border-radius: 18px;
  background: rgba(118,185,0,0.04);
  box-shadow: inset 0 0 0 6px rgba(118,185,0,0.08);
}
.hero-anim.nc .shield::before {
  content: 'SANDBOX'; position: absolute; top: -10px; left: 14px;
  font-size: 0.62em; font-weight: 800; letter-spacing: 1.4px;
  background: var(--white); padding: 2px 8px; color: var(--brand-nemoclaw-deep);
  border-radius: 4px;
}
.hero-anim.nc .lane {
  position: absolute; left: calc(50% - 90px); width: 180px;
  height: 22px; border-radius: 6px; overflow: hidden;
  background: rgba(118,185,0,0.12);
  border: 1px solid rgba(118,185,0,0.25);
}
.hero-anim.nc .lane.l1 { top: calc(50% - 56px); }
.hero-anim.nc .lane.l2 { top: calc(50% - 11px); }
.hero-anim.nc .lane.l3 { top: calc(50% + 34px); }
.hero-anim.nc .lane .blip {
  position: absolute; top: 3px; width: 30px; height: 16px;
  border-radius: 4px; background: var(--brand-nemoclaw);
  box-shadow: 0 0 12px rgba(118,185,0,0.6);
}
.hero-anim.nc .lane.l1 .blip { animation: nc-slide 3s linear infinite; }
.hero-anim.nc .lane.l2 .blip { animation: nc-slide 3s linear 1s infinite; }
.hero-anim.nc .lane.l3 .blip { animation: nc-slide 3s linear 2s infinite; }
@keyframes nc-slide {
  0%   { left: -30px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 210px; opacity: 0; }
}
.hero-anim.nc .badge {
  position: absolute; bottom: -14px; right: -12px;
  background: var(--brand-nemoclaw); color: #fff;
  font-size: 0.66em; font-weight: 800; letter-spacing: 1.2px;
  padding: 6px 10px; border-radius: 8px; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(118,185,0,0.35);
}

/* ---- AnythingLLM: documents chunked into vectors ---- */
.hero-anim.al .stage { position: relative; height: 240px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; }
.hero-anim.al .docs,
.hero-anim.al .vecs {
  display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto;
}
.hero-anim.al .doc {
  width: 64px; height: 34px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--border);
  position: relative; box-shadow: 0 2px 6px rgba(12,35,64,0.08);
}
.hero-anim.al .doc::before {
  content: ''; position: absolute; top: 7px; left: 7px; right: 18px;
  height: 3px; background: var(--border); border-radius: 2px;
  box-shadow: 0 7px 0 0 var(--border), 0 14px 0 0 var(--border);
}
.hero-anim.al .doc::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--border) 50%, transparent 50%);
  border-top-right-radius: 6px;
}
.hero-anim.al .doc.active {
  animation: al-doc-pulse 3s ease-in-out infinite;
  border-color: var(--brand-anythingllm-accent);
}
@keyframes al-doc-pulse {
  0%, 100% { transform: translateX(0); box-shadow: 0 2px 6px rgba(12,35,64,0.08); }
  50%      { transform: translateX(4px); box-shadow: 0 6px 14px rgba(61,217,240,0.28); }
}
.hero-anim.al .engine {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--brand-anythingllm); color: var(--brand-anythingllm-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.78em; font-weight: 700;
  position: relative;
  box-shadow: 0 8px 22px rgba(31,41,55,0.3);
}
.hero-anim.al .engine::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px dashed var(--brand-anythingllm-accent); opacity: 0.5;
  animation: al-rot 6s linear infinite;
}
@keyframes al-rot { to { transform: rotate(360deg); } }
.hero-anim.al .vec {
  width: 64px; height: 10px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--brand-anythingllm-accent) 0%,
    var(--brand-anythingllm-accent) 30%,
    var(--border) 30%,
    var(--border) 55%,
    var(--brand-anythingllm-accent) 55%,
    var(--brand-anythingllm-accent) 70%,
    var(--border) 70%,
    var(--border) 100%
  );
  opacity: 0.7;
}
.hero-anim.al .vec.v1 { animation: al-vec 2.8s ease-in-out infinite; }
.hero-anim.al .vec.v2 { animation: al-vec 2.8s ease-in-out 0.4s infinite; }
.hero-anim.al .vec.v3 { animation: al-vec 2.8s ease-in-out 0.8s infinite; }
.hero-anim.al .vec.v4 { animation: al-vec 2.8s ease-in-out 1.2s infinite; }
@keyframes al-vec {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50%      { opacity: 1;    transform: translateX(-4px); }
}

/* ---- Hermes: 3 layered memory with self-improving loop ---- */
.hero-anim.hr .stage { position: relative; height: 240px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; }
.hero-anim.hr .layer {
  width: 90%; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(44,95,212,0.10), rgba(142,79,226,0.10));
  border: 1px solid rgba(44,95,212,0.25);
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.hero-anim.hr .layer .tier {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-hermes-a), var(--brand-hermes-b));
  color: #fff; font-size: 0.82em; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-anim.hr .layer .ttl {
  font-size: 0.86em; font-weight: 700; color: var(--navy);
}
.hero-anim.hr .layer .sub {
  font-size: 0.72em; color: var(--steel); margin-left: auto;
  font-family: 'SF Mono', Consolas, Menlo, monospace;
}
.hero-anim.hr .layer::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  border: 2px solid var(--brand-hermes-b); opacity: 0; pointer-events: none;
}
.hero-anim.hr .layer.l1::before { animation: hr-flash 3.6s ease-out infinite; }
.hero-anim.hr .layer.l2::before { animation: hr-flash 3.6s ease-out 1.2s infinite; }
.hero-anim.hr .layer.l3::before { animation: hr-flash 3.6s ease-out 2.4s infinite; }
@keyframes hr-flash {
  0%   { opacity: 0; transform: scale(0.98); }
  30%  { opacity: 0.8; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
.hero-anim.hr .loop-label {
  font-size: 0.72em; color: var(--brand-hermes-b); font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; margin-top: 6px;
}

/* ============================================================
   ANIMATED QUICKSTART HIGHLIGHT CYCLE
   Cycles through the 4 stack labels inside the shared code block.
   ============================================================ */
.sol-code pre .hl-cycle {
  color: #9BE7FF; font-weight: 700;
  display: inline-block; min-width: 14ch;
  animation: hl-cycle 12s steps(1, end) infinite;
}
@keyframes hl-cycle {
  0%,  22% { content: ''; }
}
/* Since CSS can't cycle text via keyframes easily, we use 4 stacked
   absolute-positioned spans that fade/swap. Implemented in markup: */
.hl-rotator {
  position: relative; display: inline-block; min-width: 18ch;
  vertical-align: baseline;
}
/* Seed span reserves box height/baseline; it's invisible but keeps layout */
.hl-rotator .hl-seed {
  opacity: 0 !important; animation: none !important;
  position: static; visibility: hidden;
}
/* The 4 rotating labels are the 2nd-5th children */
.hl-rotator span:not(.hl-seed) {
  position: absolute; left: 0; top: 0;
  color: #9BE7FF; font-weight: 700; opacity: 0;
  animation: hl-rot 12s linear infinite;
}
.hl-rotator span:not(.hl-seed):nth-child(2) { animation-delay: 0s; }
.hl-rotator span:not(.hl-seed):nth-child(3) { animation-delay: 3s; }
.hl-rotator span:not(.hl-seed):nth-child(4) { animation-delay: 6s; }
.hl-rotator span:not(.hl-seed):nth-child(5) { animation-delay: 9s; }
@keyframes hl-rot {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  26%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sol-hero, .sol-outcomes, .sol-grid-sec, .sol-quick,
  .sol-why, .sol-faq, .sol-final, .sub-section, .sol-flow { padding-left: 24px; padding-right: 24px; }
  .sol-crumb { padding-left: 24px; padding-right: 24px; }
  .sol-hero { padding-top: 64px; padding-bottom: 54px; }
  .sol-hero h1 { font-size: 2.3em; }
  .sol-outcomes-grid,
  .sol-grid,
  .sol-why-grid,
  .sub-why-grid,
  .sub-uc-grid,
  .sub-resources { grid-template-columns: 1fr; }
  .sol-quick-inner { grid-template-columns: 1fr; gap: 32px; }
  .sol-flow-stage { max-width: 620px; height: 400px; }
  .sol-flow-node { width: 118px; }
}

@media (max-width: 768px) {
  .sol-hero, .sol-outcomes, .sol-grid-sec, .sol-quick,
  .sol-why, .sol-faq, .sol-final, .sub-section, .sol-flow { padding: 56px 20px; }
  .sol-hero h1 { font-size: 2em; letter-spacing: -0.5px; }
  .sol-hero p.lede { font-size: 1em; }
  .sol-hero-proof { gap: 22px; }
  .sol-outcomes-head h2,
  .sol-grid-head h2,
  .sol-why-head h2,
  .sol-flow-head h2 { font-size: 1.8em; }
  .sol-final h2 { font-size: 1.9em; }
  .sub-section-head h2,
  .sub-what-heading { font-size: 1.7em; }
  .sol-quick h2 { font-size: 1.8em; }
  .sol-quick-inner { gap: 24px; }
  .sol-card { padding: 26px 22px 22px; }
  .sol-card h3 { font-size: 1.25em; }
  .sub-hero-stats { grid-template-columns: repeat(2, 1fr); }
  /* Flow diagram: stack vertically */
  .sol-flow-stage {
    height: auto; max-width: 420px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  .sol-flow-core {
    grid-column: span 2;
    position: relative; left: 0; top: 0; transform: none;
    margin: 8px auto 14px; width: 160px; height: 160px;
  }
  .sol-flow-node {
    position: relative !important; width: 100% !important;
    top: auto !important; bottom: auto !important;
    left: auto !important; right: auto !important;
  }
  .sol-flow-lines { display: none; }
  /* Hero animation: shorter */
  .hero-anim { min-height: 300px; }
  .hero-anim.oc .stage,
  .hero-anim.nc .stage,
  .hero-anim.al .stage,
  .hero-anim.hr .stage { height: 200px; }
  .hero-anim.nc .shield { width: 180px; height: 160px; }
  .hero-anim.nc .lane { width: 140px; left: calc(50% - 70px); }
  .hero-anim.nc .lane .blip { width: 24px; }
  @keyframes nc-slide {
    0%   { left: -24px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 164px; opacity: 0; }
  }
}

@media (max-width: 480px) {
  .sol-hero, .sol-outcomes, .sol-grid-sec, .sol-quick,
  .sol-why, .sol-faq, .sol-final, .sub-section, .sol-flow { padding: 44px 16px; }
  .sol-hero h1 { font-size: 1.65em; line-height: 1.15; }
  .sol-hero p.lede { font-size: 0.96em; }
  .sol-hero-ctas .btn-primary-lg,
  .sol-hero-ctas .btn-outline-lg { width: 100%; text-align: center; }
  .sol-hero-proof { gap: 16px; padding-top: 18px; }
  .sol-hero-proof-item .n { font-size: 1.25em; }
  .sol-outcomes-head h2,
  .sol-grid-head h2,
  .sol-why-head h2,
  .sol-flow-head h2,
  .sub-section-head h2,
  .sub-what-heading,
  .sol-quick h2,
  .sol-final h2 { font-size: 1.5em; letter-spacing: -0.3px; }
  .sol-card { padding: 22px 18px; }
  .sol-card h3 { font-size: 1.15em; }
  .sub-hero-stats { grid-template-columns: 1fr; }
  .sol-card-meta { font-size: 0.72em; }
  .sol-code pre { font-size: 0.78em; padding: 16px; }
  .sol-crumb { padding-left: 16px; padding-right: 16px; font-size: 0.78em; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sol-logo,
  .sol-card::before,
  .sol-card-arrow,
  .sol-flow-core::before,
  .sol-flow-core::after,
  .sol-flow-node img,
  .sol-flow-lines path,
  .hero-anim-head .dot,
  .hero-anim.oc .hub::after,
  .hero-anim.oc .pkt,
  .hero-anim.nc .lane .blip,
  .hero-anim.al .doc.active,
  .hero-anim.al .engine::before,
  .hero-anim.al .vec,
  .hero-anim.hr .layer::before,
  .hl-rotator span:not(.hl-seed) {
    animation: none !important; transition: none !important;
  }
  .hl-rotator span:not(.hl-seed):nth-child(2) { opacity: 1; }
  .sol-card:hover .sol-logo { transform: none; }
}
