.product-demo-body {
  background: #f6f8fc;
}

.product-demo-page {
  background:
    linear-gradient(90deg, rgba(34, 77, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 159, 110, 0.035) 1px, transparent 1px),
    #f6f8fc;
  background-size: 40px 40px;
}

.product-demo-hero {
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  padding: 0;
  background: linear-gradient(135deg, #071735 0%, #173b82 70%, #f6f8fc 70%);
  color: #fff;
}

.product-demo-hero::after {
  display: none;
}

.product-demo-hero-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 390px);
  gap: 44px;
  align-items: center;
  justify-content: space-between;
}

.product-demo-hero-copy {
  max-width: 620px;
  text-shadow: 0 12px 36px rgba(3, 11, 31, 0.28);
}

.product-demo-hero h1 {
  max-width: 620px;
  font-size: clamp(2.65rem, 4.2vw, 4.35rem);
}

.product-demo-lead {
  max-width: 600px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.85;
}

.product-demo-light-btn {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.product-demo-system-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-demo-panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.product-demo-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-demo-system-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fbfdff;
}

.product-demo-system-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.product-demo-system-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-demo-section {
  padding: 72px 0 0;
}

.product-demo-last-section {
  padding-bottom: 72px;
}

.product-demo-heading {
  margin-bottom: 26px;
}

.product-demo-heading h2 {
  max-width: 780px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.25;
}

.product-demo-grid {
  display: grid;
  gap: 18px;
}

.product-demo-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-demo-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-demo-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-demo-card,
.product-demo-case,
.product-demo-flow article,
.product-demo-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(22, 36, 82, 0.07);
}

.product-demo-card,
.product-demo-case,
.product-demo-flow article {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.product-demo-card:hover,
.product-demo-case:hover,
.product-demo-flow article:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 77, 255, 0.26);
  box-shadow: 0 18px 42px rgba(22, 36, 82, 0.12);
  background: #fff;
}

.product-demo-card {
  min-height: 100%;
  padding: 24px;
}

.product-demo-card h3,
.product-demo-case h3,
.product-demo-flow h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.35;
}

.product-demo-card p,
.product-demo-case p,
.product-demo-case li,
.product-demo-case dd,
.product-demo-flow p {
  color: var(--muted);
  line-height: 1.75;
}

.product-demo-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(34, 77, 255, 0.18);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-demo-case {
  overflow: hidden;
}

.product-demo-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.product-demo-case-title {
  display: grid;
  gap: 8px;
}

.product-demo-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(34, 77, 255, 0.2);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.product-demo-toggle:focus-visible {
  outline: 3px solid rgba(34, 77, 255, 0.22);
  outline-offset: 2px;
}

.product-demo-case dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 24px 4px;
}

.product-demo-preview {
  position: relative;
  display: grid;
  min-height: 190px;
  margin: 18px 24px 0;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fbff, #eef4ff);
}

.product-demo-preview {
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-demo-case:hover .product-demo-preview {
  transform: translateY(-2px);
  border-color: rgba(34, 77, 255, 0.22);
}

.preview-toolbar,
.preview-browser-bar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  height: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.preview-toolbar span,
.preview-browser-bar::before,
.preview-browser-bar::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fb0ce;
  content: "";
}

.preview-painting {
  grid-template-columns: 1.15fr 0.85fr;
  background: linear-gradient(120deg, #f4f7fb 0 62%, #e9effa 62% 100%);
}

.preview-room {
  position: relative;
  min-height: 190px;
  background: linear-gradient(180deg, #f7f2ea 0 70%, #d9c7ab 70% 100%);
}

.preview-wall-frame {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 82px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 6px solid #16264a;
  background: linear-gradient(135deg, #f1dfc7, #85b8cf);
  color: #16264a;
  font-size: 0.75rem;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.16);
}

.preview-floor {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 92px;
  height: 20px;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.08);
}

.preview-side-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 42px 18px 18px;
}

.preview-side-panel span,
.preview-side-panel strong,
.preview-choice-list span,
.preview-metric-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #4e5d78;
  font-size: 0.82rem;
  font-weight: 900;
}

.preview-side-panel strong {
  width: max-content;
  background: #e9fbf3;
  color: #0d7451;
}

.preview-line-admin {
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, #eaf8f2, #f8fbff);
}

.preview-phone {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 150px;
  padding: 14px 10px;
  border: 1px solid #cfe2d8;
  border-radius: 18px;
  background: #f7fff9;
  box-shadow: inset 0 0 0 5px #ffffff;
}

.preview-chat {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 10px;
  color: #24344f;
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-chat.incoming {
  background: #ffffff;
}

.preview-chat.outgoing {
  justify-self: end;
  background: #d8f8e8;
}

.preview-admin-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.preview-table-row,
.preview-summary-line,
.preview-recommend-card span {
  height: 12px;
  border-radius: 999px;
  background: #dce6f5;
}

.preview-table-row.strong {
  width: 72%;
  background: #3157ff;
}

.preview-status-pill {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9fbf3;
  color: #0d7451;
  font-size: 0.76rem;
  font-weight: 900;
}

.preview-dashboard {
  align-content: stretch;
  gap: 16px;
  padding: 18px;
}

.preview-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-metric-row span {
  justify-content: center;
  border: 1px solid #e0e7f3;
}

.preview-chart {
  height: 96px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 10px 12px 0;
  border-radius: 8px;
  background: #ffffff;
}

.preview-chart span {
  flex: 1;
  min-width: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #3157ff, #19aa87);
}

.preview-summary-line {
  width: 72%;
}

.preview-tools {
  align-content: center;
  padding: 46px 18px 18px;
}

.preview-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preview-tool-grid span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 900;
}

.preview-restaurant {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, #fff8ee, #f7fbff);
}

.preview-choice-list {
  display: grid;
  align-content: center;
  gap: 10px;
}

.preview-choice-list span {
  width: max-content;
  background: #ffffff;
  border: 1px solid #eadfc4;
}

.preview-recommend-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #eadfc4;
  border-radius: 8px;
  background: #ffffff;
}

.preview-recommend-card strong {
  color: #37280f;
}

.preview-recommend-card span:first-of-type {
  width: 86%;
}

.preview-recommend-card span:last-of-type {
  width: 58%;
}

.product-demo-case dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
}

.product-demo-case dt {
  font-weight: 900;
  color: #2f3d57;
}

.product-demo-case strong {
  display: block;
  padding: 14px 24px 0;
  color: #2f3d57;
}

.product-demo-case ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 24px 24px;
  list-style: none;
}

.product-demo-case li {
  position: relative;
  padding-left: 18px;
}

.product-demo-case li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.product-demo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 159, 110, 0.22);
  border-radius: 999px;
  background: #e9fbf3;
  color: #0d7451;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-demo-badge-muted {
  border-color: rgba(154, 107, 18, 0.22);
  background: #fff6df;
  color: #9a6b12;
}

.product-demo-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-demo-flow article {
  padding: 22px;
}

.product-demo-flow span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.product-demo-flow small {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-weight: 900;
}

.product-demo-notice {
  padding: 28px;
  border-color: #eadfc4;
  background: #fff8ee;
}

.product-demo-notice h2 {
  margin: 0 0 12px;
  color: #37280f;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.product-demo-notice p:last-child {
  max-width: 980px;
  margin: 0;
  color: #6c532b;
  line-height: 1.85;
}

@media (max-width: 1020px) {
  .product-demo-hero-grid {
    grid-template-columns: 1fr;
  }

  .product-demo-system-card {
    max-width: 640px;
  }

  .product-demo-grid-4,
  .product-demo-grid-3,
  .product-demo-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .product-demo-hero {
    min-height: auto;
    padding: 0;
    background: linear-gradient(145deg, #071735, #224dff);
  }

  .product-demo-hero-grid {
    min-height: auto;
    padding: 44px 0;
  }

  .product-demo-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.15rem);
  }

  .product-demo-lead {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .product-demo-section {
    padding-top: 56px;
  }

  .product-demo-grid-2,
  .product-demo-grid-4,
  .product-demo-grid-3,
  .product-demo-flow,
  .product-demo-flow {
    grid-template-columns: 1fr;
  }

  .product-demo-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-demo-system-grid div {
    min-height: 72px;
    padding: 12px;
  }

  .product-demo-case-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .product-demo-badge {
    margin-top: 0;
  }

  .product-demo-toggle {
    display: inline-flex;
    justify-self: start;
  }

  .public-js-ready .product-demo-case:not(.is-expanded) .product-demo-case-details {
    display: none;
  }

  .product-demo-case.is-expanded .product-demo-toggle {
    background: var(--primary);
    color: #fff;
  }

  .product-demo-case dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .product-demo-card,
  .product-demo-case-head,
  .product-demo-flow article,
  .product-demo-notice {
    padding: 22px;
  }

  .product-demo-case dl {
    padding: 18px 22px 4px;
  }

  .product-demo-preview {
    min-height: 170px;
    margin: 16px 22px 0;
  }

  .preview-painting,
  .preview-line-admin,
  .preview-restaurant {
    grid-template-columns: 1fr;
  }

  .preview-side-panel {
    padding-top: 18px;
  }

  .preview-phone {
    min-height: 138px;
  }

  .preview-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-demo-case strong {
    padding: 14px 22px 0;
  }

  .product-demo-case ul {
    padding: 12px 22px 22px;
  }
}

@media (max-width: 520px) {
  .product-demo-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-demo-hero .btn,
  .product-demo-hero .btn-primary,
  .product-demo-hero .btn-secondary,
  .product-demo-hero .btn-ghost {
    width: 100%;
  }
}

/* Refactored interactive demo cards */
.product-demo-light-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.industry-filter-bar {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 12px;
}

.public-js-ready .industry-filter-bar {
  display: flex;
}

.filter-chip {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #dbe4f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #52617a;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  border-color: rgba(34, 77, 255, 0.3);
  color: var(--primary-dark);
}

.filter-chip.is-active {
  border-color: rgba(34, 77, 255, 0.24);
  background: #eef2ff;
  color: var(--primary-dark);
}

.industry-filter-status {
  min-height: 1.5em;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.demo-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(22, 36, 82, 0.07);
  overflow: hidden;
  scroll-margin-top: 84px;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 77, 255, 0.26);
  box-shadow: 0 18px 42px rgba(22, 36, 82, 0.12);
}

.demo-card-head {
  display: grid;
  gap: 10px;
  padding: 24px 24px 0;
}

.demo-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.35;
}

.demo-card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.demo-card-chips,
.demo-card-points,
.demo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px;
}

.demo-card-chips span,
.demo-card-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dfe7f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #4e5d78;
  font-size: 0.82rem;
  font-weight: 900;
}

.demo-card-points span {
  border-color: rgba(15, 159, 110, 0.18);
  background: #f0fbf6;
  color: #0d7451;
}

.demo-card-problem {
  margin: 0 24px;
  padding: 14px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fbfdff;
}

.demo-card-problem strong {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  color: #2f3d57;
}

.demo-card-problem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.demo-card-actions {
  align-items: center;
  padding-top: 2px;
}

.demo-card-detail {
  margin: 2px 24px 0;
  padding: 18px;
  border: 1px solid #dbe4f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.demo-card-detail h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
}

.demo-card-detail dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.demo-card-detail dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.demo-card-detail dt {
  color: #2f3d57;
  font-weight: 900;
}

.demo-card-detail dd {
  color: var(--muted);
  line-height: 1.75;
}

.public-js-ready .demo-card-detail[hidden] {
  display: none;
}

.demo-card-actions [data-demo-toggle] {
  display: none;
}

.public-js-ready .demo-card-actions [data-demo-toggle] {
  display: inline-flex;
}

.demo-card[hidden],
[data-product-demo-card][hidden] {
  display: none !important;
}

.public-js-ready .demo-card.is-expanded {
  border-color: rgba(34, 77, 255, 0.34);
}

@media (max-width: 1020px) {
  .demo-card-actions .btn-primary,
  .demo-card-actions .btn-secondary,
  .demo-card-actions .btn-ghost {
    flex: 1 1 180px;
  }
}

@media (max-width: 700px) {
  .public-js-ready .industry-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-chip,
  .demo-card-actions .btn-primary,
  .demo-card-actions .btn-secondary,
  .demo-card-actions .btn-ghost {
    width: 100%;
  }

  .demo-card-head,
  .demo-card-chips,
  .demo-card-points,
  .demo-card-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .demo-card-problem,
  .demo-card-detail {
    margin-left: 20px;
    margin-right: 20px;
  }

  .demo-card-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 460px) {
  .public-js-ready .industry-filter-bar {
    grid-template-columns: 1fr;
  }

  .product-demo-system-grid {
    grid-template-columns: 1fr;
  }
}

/* product-demo-system-progressive-cards */
.product-demo-system-card {
  animation: productDemoPanelIn 0.7s ease-out both;
}

.product-demo-system-grid > div {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: productDemoCardIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-demo-system-grid > div:nth-child(1) {
  animation-delay: 0.08s;
}

.product-demo-system-grid > div:nth-child(2) {
  animation-delay: 0.16s;
}

.product-demo-system-grid > div:nth-child(3) {
  animation-delay: 0.24s;
}

.product-demo-system-grid > div:nth-child(4) {
  animation-delay: 0.32s;
}

@keyframes productDemoPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes productDemoCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-demo-system-card,
  .product-demo-system-grid > div {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* product-demo-system-progressive-cards-final */
.product-demo-system-card {
  opacity: 0;
  transform: translateY(18px);
  animation: productDemoPanelInFinal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.product-demo-system-grid > div {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: productDemoCardInFinal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-demo-system-grid > div:nth-child(1) {
  animation-delay: 0.35s;
}

.product-demo-system-grid > div:nth-child(2) {
  animation-delay: 0.48s;
}

.product-demo-system-grid > div:nth-child(3) {
  animation-delay: 0.61s;
}

.product-demo-system-grid > div:nth-child(4) {
  animation-delay: 0.74s;
}

@keyframes productDemoPanelInFinal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes productDemoCardInFinal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-demo-system-card,
  .product-demo-system-grid > div {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* product-demo-detail-hidden-guard */
.product-demo-page [hidden],
.product-demo-page .demo-card-detail[hidden] {
  display: none !important;
}

/* product-demo-card-actions-align-final */
.product-demo-page .product-demo-case.demo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-demo-page .demo-card-actions {
  margin-top: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-demo-page .demo-card-actions-left,
.product-demo-page .demo-card-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-demo-page .demo-card-actions-left {
  justify-content: flex-start;
}

.product-demo-page .demo-card-actions-right {
  justify-content: flex-end;
  margin-left: auto;
}

.product-demo-page .demo-card-actions-left .btn-secondary,
.product-demo-page .demo-card-actions-left .btn-ghost {
  min-height: 44px;
}

@media (max-width: 640px) {
  .product-demo-page .demo-card-actions {
    align-items: stretch;
  }

  .product-demo-page .demo-card-actions-left,
  .product-demo-page .demo-card-actions-right {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .product-demo-page .demo-card-actions-left > *,
  .product-demo-page .demo-card-actions-right > * {
    width: 100%;
    justify-content: center;
  }
}

/* product-demo-detail-independent-height-final */
.product-demo-page #demo-cases .product-demo-grid-2 {
  align-items: start !important;
}

.product-demo-page #demo-cases .product-demo-case.demo-card {
  height: auto !important;
  align-self: start;
}

.product-demo-page #demo-cases .demo-card-actions {
  margin-top: 1rem !important;
}

.product-demo-page #demo-cases .demo-card-detail {
  margin-top: 1rem;
}

.product-demo-page #demo-cases .demo-card-detail[hidden] {
  display: none !important;
}

/* product-demo-card-collapsed-height-final */
.product-demo-page #demo-cases .product-demo-case.demo-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
}

.product-demo-page #demo-cases .demo-card-actions {
  margin-top: auto !important;
}

.product-demo-page #demo-cases .demo-card-detail:not([hidden]) {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .product-demo-page #demo-cases .product-demo-case.demo-card {
    min-height: auto;
  }

  .product-demo-page #demo-cases .demo-card-actions {
    margin-top: 1rem !important;
  }
}

/* dashboard-demo-static-showcase */
.dashboard-demo-page {
  min-width: 0;
  overflow-x: hidden;
}

.dashboard-demo-hero {
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #071735 0%, #173b82 68%, #f6f8fc 68%);
  color: #fff;
}

.dashboard-demo-hero-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(280px, 380px);
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.dashboard-demo-hero h1 {
  max-width: 650px;
  font-size: clamp(2.45rem, 4.6vw, 4.4rem);
  line-height: 1.08;
}

.dashboard-demo-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.85;
}

.dashboard-demo-hero-card,
.dashboard-demo-card,
.dashboard-demo-kpi,
.dashboard-demo-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(22, 36, 82, 0.07);
}

.dashboard-demo-hero-card {
  padding: 24px;
  color: var(--ink);
}

.dashboard-demo-hero-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.65rem;
}

.dashboard-demo-hero-card p,
.dashboard-demo-card p,
.dashboard-demo-notice p {
  color: var(--muted);
  line-height: 1.75;
}

.dashboard-demo-section {
  display: grid;
  gap: 22px;
  padding: 72px 0;
}

.dashboard-demo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-demo-kpi {
  min-height: 142px;
  padding: 22px;
  display: grid;
  gap: 8px;
}

.dashboard-demo-kpi span,
.dashboard-demo-kpi small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-demo-kpi strong {
  color: var(--primary-dark);
  font-size: 2.1rem;
  line-height: 1;
}

.dashboard-demo-kpi-alert strong {
  color: #b74b00;
}

.dashboard-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-demo-card {
  min-width: 0;
  padding: 24px;
}

.dashboard-demo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-demo-card-head h2,
.dashboard-demo-summary h2,
.dashboard-demo-notice h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.dashboard-demo-chart {
  min-height: 280px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 77, 255, 0.08) 1px, transparent 1px),
    #fbfdff;
  background-size: 100% 25%;
}

.dashboard-demo-bar {
  min-width: 0;
  height: 100%;
  display: grid;
  align-items: end;
  gap: 8px;
}

.dashboard-demo-bar::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 42px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #224dff, #0f9f6e);
  box-shadow: 0 10px 24px rgba(34, 77, 255, 0.18);
}

.dashboard-demo-bar span {
  color: #65728b;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.dashboard-demo-status-list {
  display: grid;
  gap: 12px;
}

.dashboard-demo-status-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fbfdff;
}

.dashboard-demo-status-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.dashboard-demo-status-list p {
  margin: 0;
}

.dashboard-demo-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-demo-status.is-done {
  background: #e9fbf3;
  color: #0d7451;
}

.dashboard-demo-status.is-pending {
  background: #fff6df;
  color: #9a6b12;
}

.dashboard-demo-status.is-watch {
  background: #fff0e8;
  color: #b74b00;
}

.dashboard-demo-summary {
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.dashboard-demo-summary p {
  max-width: 840px;
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.dashboard-demo-notice {
  padding: 26px;
}

.dashboard-demo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .dashboard-demo-hero {
    min-height: auto;
    background: linear-gradient(145deg, #071735, #224dff);
  }

  .dashboard-demo-hero-grid,
  .dashboard-demo-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-demo-hero-grid {
    min-height: auto;
    padding: 64px 0;
  }

  .dashboard-demo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard-demo-section {
    gap: 18px;
    padding: 48px 0;
  }

  .dashboard-demo-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-demo-card,
  .dashboard-demo-kpi,
  .dashboard-demo-notice,
  .dashboard-demo-hero-card {
    padding: 20px;
  }

  .dashboard-demo-card-head,
  .dashboard-demo-status-list article {
    grid-template-columns: 1fr;
  }

  .dashboard-demo-chart {
    min-height: 240px;
    gap: 8px;
    padding: 14px 10px;
  }

  .dashboard-demo-bar span {
    font-size: 0.78rem;
    writing-mode: vertical-rl;
    justify-self: center;
  }

  .dashboard-demo-cta > * {
    width: 100%;
  }
}

/* product-demo-equal-demo-card-heights-final */
.product-demo-page #demo-cases .product-demo-grid-2 {
  align-items: stretch !important;
}

.product-demo-page #demo-cases .product-demo-grid-2 > .demo-card {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  align-self: stretch !important;
}

.product-demo-page #demo-cases .demo-card-actions {
  margin-top: auto !important;
}

.product-demo-page #demo-cases .product-demo-preview {
  min-height: 190px;
}

.product-demo-page #demo-cases .demo-card-problem {
  min-height: 92px;
}

.product-demo-page #demo-cases .demo-card-chips,
.product-demo-page #demo-cases .demo-card-points {
  min-height: 36px;
}

@media (max-width: 720px) {
  .product-demo-page #demo-cases .product-demo-preview,
  .product-demo-page #demo-cases .demo-card-problem,
  .product-demo-page #demo-cases .demo-card-chips,
  .product-demo-page #demo-cases .demo-card-points {
    min-height: 0;
  }
}

/* product-dashboard-brand-refresh-20260613 */
.product-demo-body,
.product-demo-page {
  color: #0f172a;
  background:
    linear-gradient(90deg, rgba(49, 87, 246, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 87, 246, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%),
    #f6f8fc;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.product-demo-hero,
.dashboard-demo-hero {
  color: #0f172a;
  background:
    linear-gradient(90deg, rgba(49, 87, 246, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 87, 246, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.product-demo-hero-copy {
  text-shadow: none;
}

.product-demo-hero h1,
.dashboard-demo-hero h1 {
  color: #0f172a;
  letter-spacing: 0;
}

.product-demo-lead,
.dashboard-demo-lead {
  color: #475569;
}

.product-demo-system-card,
.product-demo-card,
.product-demo-case,
.product-demo-flow article,
.product-demo-notice,
.dashboard-demo-hero-card,
.dashboard-demo-card,
.dashboard-demo-kpi,
.dashboard-demo-notice {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.product-demo-card:hover,
.product-demo-case:hover,
.product-demo-flow article:hover,
.dashboard-demo-card:hover,
.dashboard-demo-kpi:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
}

.product-demo-system-grid div,
.product-demo-preview,
.demo-card-problem,
.demo-card-detail,
.dashboard-demo-chart,
.dashboard-demo-status-list article {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
}

.product-demo-icon,
.process-number,
.card-number {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: #eff6ff;
  color: #12327a;
}

.btn-primary {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(135deg, #12327a, #3157f6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.btn-secondary,
.btn-ghost {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #12327a;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  background-color: #eff6ff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.badge-success,
.badge-live,
.dashboard-demo-status.is-done {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
  color: #047857;
}

.dashboard-demo-status.is-pending,
.dashboard-demo-status.is-watch,
.badge-muted {
  border-color: rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  color: #475569;
}

.dashboard-demo-bar::before {
  background: linear-gradient(180deg, #3157f6, #059669);
}

@media (max-width: 980px) {
  .product-demo-hero,
  .dashboard-demo-hero {
    background:
      linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
  }
}

@media (max-width: 640px) {
  .product-demo-hero h1,
  .dashboard-demo-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }
}

/* mobile-viewport-guard-20260613 */
.product-demo-body,
.product-demo-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.product-demo-page *,
.product-demo-page *::before,
.product-demo-page *::after,
.product-demo-body *,
.product-demo-body *::before,
.product-demo-body *::after {
  box-sizing: border-box;
}

.product-demo-page img,
.product-demo-page svg,
.product-demo-page video,
.product-demo-page canvas,
.product-demo-body img,
.product-demo-body svg,
.product-demo-body video,
.product-demo-body canvas {
  max-width: 100%;
  height: auto;
}

.product-demo-page input,
.product-demo-page select,
.product-demo-page textarea,
.product-demo-page button,
.product-demo-body input,
.product-demo-body select,
.product-demo-body textarea,
.product-demo-body button {
  font-size: 16px;
}

.product-demo-page a,
.product-demo-page button,
.product-demo-page .btn-primary,
.product-demo-page .btn-secondary,
.product-demo-page .btn-ghost,
.product-demo-body a,
.product-demo-body button,
.product-demo-body .btn-primary,
.product-demo-body .btn-secondary,
.product-demo-body .btn-ghost {
  touch-action: manipulation;
}

.product-demo-page .container,
.product-demo-grid,
.product-demo-grid-2,
.product-demo-grid-3,
.product-demo-grid-4,
.product-demo-hero-grid,
.dashboard-demo-grid,
.dashboard-demo-kpi-grid,
.dashboard-demo-main-grid,
.dashboard-demo-status-list,
.demo-card,
.product-demo-card,
.dashboard-demo-card {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .product-demo-page input,
  .product-demo-page select,
  .product-demo-page textarea,
  .product-demo-body input,
  .product-demo-body select,
  .product-demo-body textarea {
    font-size: 16px !important;
  }

  .product-demo-page .container {
    width: min(100% - 28px, var(--container-max, 1120px));
  }

  .product-demo-grid,
  .product-demo-grid-2,
  .product-demo-grid-3,
  .product-demo-grid-4,
  .product-demo-hero-grid,
  .dashboard-demo-grid,
  .dashboard-demo-kpi-grid,
  .dashboard-demo-main-grid,
  .dashboard-demo-status-list {
    grid-template-columns: 1fr;
  }
}
