/* V5 and V6 demo columns shared by homepage and download page. */
.demo-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.demo-version-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid #dbe5f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(29, 48, 82, .06);
  scroll-margin-top: 90px;
}
.demo-version-v5 { border-color: #d5e2ee; background: linear-gradient(150deg, #f7fafc, #fff 55%); }
.demo-version-v6 { border-color: #cddcfb; background: linear-gradient(150deg, #f2f6ff, #fff 55%); }
.demo-version-heading { margin-bottom: 22px; }
.demo-version-tag { display: inline-flex; padding: 5px 11px; border-radius: 7px; background: #e9f0f7; color: #334155; font-size: 12px; font-weight: 800; }
.demo-version-v6 .demo-version-tag { background: #e2ebff; color: #2457b7; }
.demo-version-heading h3 { margin: 13px 0 5px; color: #0f172a; font-size: 25px; font-weight: 800; }
.demo-version-heading p { margin: 0; color: #64748b; font-size: 15px; }
.demo-version-links { display: grid; gap: 10px; }
.demo-version-links a {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px;
  border: 1px solid #e1e8f0; border-radius: 12px; background: #fff; color: #334155;
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.demo-version-links a:hover, .demo-version-links a:focus-visible { border-color: #8facdd; transform: translateY(-2px); box-shadow: 0 9px 18px rgba(37, 99, 235, .09); }
.demo-version-links a > i:first-child { width: 28px; color: #475569; font-size: 22px; text-align: center; }
.demo-version-v6 .demo-version-links a > i:first-child { color: #2563eb; }
.demo-version-links a > span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.demo-version-links strong { color: #172033; font-size: 15px; }
.demo-version-links small { color: #64748b; font-size: 12px; }
.demo-version-links a > i:last-child { color: #94a3b8; font-size: 12px; }
.demo-shared { margin-top: 26px; padding: 27px 30px; border: 1px solid #e1e8f0; border-radius: 18px; background: #fff; scroll-margin-top: 90px; }
.demo-shared-heading h3 { margin: 0; color: #172033; font-size: 20px; }
.demo-shared-heading p { margin: 6px 0 18px; color: #64748b; font-size: 14px; }
.demo-shared-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-shared-links a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px; border: 1px solid #e0e8f2; border-radius: 10px; color: #334155; background: #f8fafc; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.demo-shared-links a:hover, .demo-shared-links a:focus-visible { border-color: #93b4ed; background: #eff5ff; color: #1d4ed8; }
.home-demo-section { padding: 88px 0; background: #fff; border-top: 1px solid #f1f5f9; }
.home-demo-section > .container { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.home-demo-heading { margin-bottom: 32px; }
.home-demo-heading h2 { margin: 0; color: #0f172a; font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.home-demo-heading p { margin: 8px 0 0; color: #64748b; font-size: 17px; }
.home-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; padding: 20px 25px; border-radius: 14px; background: #f7faff; color: #475569; font-size: 14px; }
.home-demo-footer a { color: #1d4ed8; font-weight: 800; text-decoration: none; }
.home-demo-footer a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .demo-version-grid { grid-template-columns: 1fr; gap: 16px; }
  .demo-version-panel { padding: 22px; }
  .demo-shared { padding: 22px; }
  .demo-shared-links { grid-template-columns: 1fr; }
  .home-demo-section { padding: 64px 0; }
  .home-demo-footer { align-items: flex-start; flex-direction: column; }
}
