/* ===== Sticky Navigation Bar ===== */
.ca-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transform: translateY(-100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ca-navbar.ca-navbar-visible {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.ca-navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ca-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}
.ca-navbar-brand img {
  height: 28px;
}
.ca-navbar-links {
  display: flex;
  gap: 1.5rem;
}
.ca-navbar-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.ca-navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.2s;
}
.ca-navbar-links a:hover {
  color: #2563eb;
}
.ca-navbar-links a:hover::after {
  width: 100%;
}
.ca-navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #1e293b;
  cursor: pointer;
  padding: 0.25rem;
}
.ca-navbar-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid #e2e8f0;
}
.ca-navbar-mobile.ca-navbar-mobile-open {
  display: flex;
}
.ca-navbar-mobile a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.ca-navbar-mobile a:hover {
  color: #2563eb;
}

@media screen and (max-width: 768px) {
  .ca-navbar-links {
    display: none;
  }
  .ca-navbar-toggle {
    display: block;
  }
}

/* ===== Institution Logos ===== */
.institution-logos {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.institution-logos img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Hero Gradient Background ===== */
.ca-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f8fafc 100%);
  padding-top: 2rem;
}

/* ===== Key Metrics Cards ===== */
.ca-metrics-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: #fff;
}
.ca-metric-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.ca-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.ca-metric-green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
}
.ca-metric-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}
.ca-metric-purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #ddd6fe;
}
.ca-metric-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}
.ca-metric-green .ca-metric-number { color: #059669; }
.ca-metric-blue .ca-metric-number { color: #2563eb; }
.ca-metric-purple .ca-metric-number { color: #7c3aed; }
.ca-metric-label {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}
.ca-metric-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ===== Key Contributions Cards ===== */
.ca-contrib-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ca-contrib-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.ca-contrib-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #2563eb;
}
.ca-contrib-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.ca-contrib-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ===== Results Table ===== */
.ca-results-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.ca-results-table thead th {
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.875rem 1rem;
}
.ca-results-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.ca-results-table tbody tr:hover {
  background: #f8fafc;
}
.ca-results-table tfoot td {
  background: #f0f9ff;
  font-size: 0.95rem;
  padding: 0.875rem 1rem;
  border-top: 2px solid #e2e8f0;
}
.ca-improvement {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.ca-improvement-best {
  background: #d1fae5;
  color: #047857;
}
.ca-improvement-avg {
  background: #dbeafe;
  color: #2563eb;
  font-size: 1rem;
}

/* ===== Code Block with Copy Button ===== */
.ca-code-block {
  position: relative;
}
.ca-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.85rem;
  transition: all 0.2s;
  z-index: 1;
}
.ca-copy-btn:hover {
  background: #fff;
  color: #2563eb;
  border-color: #2563eb;
}
.ca-copy-btn.ca-copied {
  background: #ecfdf5;
  color: #059669;
  border-color: #059669;
}

/* ===== Fix Bulma .number conflicting with Prism .token.number ===== */
.token.number {
  display: inline;
  background: none;
  border-radius: 0;
  height: auto;
  min-width: 0;
  padding: 0;
  margin-right: 0;
  font-size: inherit;
  vertical-align: baseline;
  align-items: initial;
  justify-content: initial;
  text-align: initial;
}

/* ===== Scroll Reveal Animation ===== */
.ca-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ca-reveal.ca-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Paradigm Comparison Cards ===== */
.ds-compare-card {
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ds-compare-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ds-compare-old {
  background: #fff;
  border: 1.5px solid #e2e8f0;
}
.ds-compare-new {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #93c5fd;
}
.ds-compare-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.ds-compare-badge-old {
  background: #f1f5f9;
  color: #64748b;
}
.ds-compare-badge-new {
  background: #dbeafe;
  color: #1d4ed8;
}
.ds-compare-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ds-compare-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}
.ds-compare-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ds-compare-num-new {
  background: #dbeafe;
  color: #2563eb;
}
.ds-compare-arrow {
  text-align: center;
  color: #d1d5db;
  font-size: 0.7rem;
  padding: 0.25rem 0;
  margin-left: 0.55rem;
}
.ds-compare-arrow-new {
  color: #93c5fd;
}
.ds-compare-problem {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}
.ds-compare-advantage {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}
.ds-compare-issues, .ds-compare-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  font-weight: 500;
}
.ds-compare-issues span {
  color: #94a3b8;
}
.ds-compare-issues i {
  color: #f87171;
  margin-right: 0.3rem;
}
.ds-compare-benefits span {
  color: #374151;
}
.ds-compare-benefits i {
  color: #10b981;
  margin-right: 0.3rem;
}

/* ===== Demo Card Container ===== */
.ds-demo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Example tabs */
.ds-example-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.ds-example-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ds-example-tab:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}
.ds-example-tab.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Timeline stepper */
.ds-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}
.ds-timeline-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: 9px;
  transition: all 0.25s ease;
  flex: 1;
  justify-content: center;
}
.ds-timeline-step:hover {
  background: #fff;
}
.ds-timeline-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ds-timeline-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s;
}
.ds-timeline-step:hover .ds-timeline-num {
  border-color: #93c5fd;
  color: #2563eb;
}
.ds-timeline-step:hover .ds-timeline-label {
  color: #475569;
}
.ds-timeline-step.ds-step-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ds-timeline-step.ds-step-active .ds-timeline-num {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.ds-timeline-step.ds-step-active .ds-timeline-label {
  color: #1e293b;
}
.ds-timeline-step.ds-step-done .ds-timeline-num {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #2563eb;
}
.ds-timeline-step.ds-step-done .ds-timeline-label {
  color: #64748b;
}


/* ===== Dual-Stream Panels ===== */
.ds-streams {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.ds-stream {
  flex: 1;
  min-height: 280px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.25rem;
}
.ds-semantic {
  background: #fafbff;
  border: 1.5px solid #dbeafe;
}
.ds-runtime {
  background: #f8fdfb;
  border: 1.5px solid #d1fae5;
}
.ds-stream.ds-active.ds-semantic {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}
.ds-stream.ds-active.ds-runtime {
  border-color: #059669;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}
.ds-stream-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.ds-semantic-header > i {
  font-size: 1.1rem;
  color: #2563eb;
  background: #eff6ff;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.ds-runtime-header > i {
  font-size: 1.1rem;
  color: #059669;
  background: #ecfdf5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.ds-stream-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.ds-stream-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}
.ds-placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 0;
}

/* Center connector */
.ds-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  padding: 0 0.15rem;
}
.ds-connector-line {
  width: 2px;
  flex: 1;
  background: #e2e8f0;
}
.ds-connector-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 0.4rem 0;
  transition: all 0.3s;
}
.ds-connector-arrow.ds-connector-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ===== Dual-Stream Content ===== */
.ds-content {
  transition: opacity 0.3s ease;
}
.ds-content .ds-step {
  animation: dsFadeIn 0.5s ease forwards;
  opacity: 0;
}
@keyframes dsFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ds-content pre {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
}
.ds-content pre:not([class*="language-"]) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ds-content .ds-user-query {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.ds-content .ds-var {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  margin: 0.25rem;
  font-family: monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.ds-content .ds-var.ds-updated {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.ds-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.ds-step-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  line-height: 1.4;
}
.ds-step-note i {
  color: #2563eb;
  margin-right: 0.25rem;
}
.ds-step-note-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.ds-step-note-green i {
  color: #059669;
}

.ds-stdout {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #059669;
}
.ds-stdout pre {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  background: rgba(5, 150, 105, 0.06) !important;
  border: 1px solid rgba(5, 150, 105, 0.15);
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: #1e293b;
}
.ds-retrieve-box {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.4;
}
.ds-retrieve-box i {
  color: #2563eb;
  margin-right: 0.2rem;
}

/* ===== Smart Home Walkthrough ===== */
.sh-semantic-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sh-semantic-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.sh-runtime-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.sh-device {
  position: relative;
  transition: all 0.4s ease;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  overflow: hidden;
}
.sh-device-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s ease;
}
.sh-on .sh-device-status {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.sh-device-icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}
.sh-on .sh-device-icon {
  transform: scale(1.1);
}
.sh-device-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sh-device-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
  color: #1e293b;
}
.sh-device.sh-on {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 2px solid #6ee7b7;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}
.sh-device.sh-off {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
}
.sh-device.sh-off .sh-device-value {
  color: #94a3b8;
}
.sh-device.sh-changed {
  animation: shPulse 0.6s ease;
}
@keyframes shPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===== Result Tabs ===== */
.ca-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ca-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ca-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f0f5ff;
}
.ca-tab.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.ca-tab.is-active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.results-panel {
  animation: dsFadeIn 0.3s ease;
}

/* ===== Applications Tab Panels ===== */
.ca-app-panel {
  animation: dsFadeIn 0.3s ease;
}
.ca-app-panel img {
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ca-app-caption {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* ===== Town Simulation ===== */
.ts-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.ts-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0;
}
.ts-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  transition: all 0.25s ease;
  flex: 1;
  justify-content: center;
}
.ts-step:hover {
  background: #fff;
}
.ts-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ts-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s;
}
.ts-step:hover .ts-step-num {
  border-color: #93c5fd;
  color: #2563eb;
}
.ts-step:hover .ts-step-label {
  color: #475569;
}
.ts-step.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ts-step.is-active .ts-step-num {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.ts-step.is-active .ts-step-label {
  color: #1e293b;
}
.ts-step.is-done .ts-step-num {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #2563eb;
}
.ts-step.is-done .ts-step-label {
  color: #64748b;
}
.ts-description {
  text-align: center;
  margin-bottom: 1.25rem;
}
.ts-description p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}
.ts-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}
.ts-image-wrapper img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}
.ts-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.45;
}
.ts-highlight i {
  color: #2563eb;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .ds-streams {
    flex-direction: column;
  }
  .ds-connector {
    flex-direction: row;
    width: auto;
    height: 36px;
    padding: 0.25rem 0;
  }
  .ds-connector-line {
    width: auto;
    height: 2px;
    flex: 1;
  }
  .ds-stream {
    min-height: 200px;
  }
  .ds-demo-card {
    padding: 1.25rem;
  }
  .ds-timeline {
    flex-wrap: wrap;
  }
  .ds-timeline-step {
    padding: 0.4rem 0.6rem;
  }
  .ds-timeline-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  .ds-timeline-label {
    font-size: 0.72rem;
  }
  .ds-example-tabs {
    gap: 0.35rem;
  }
  .ds-example-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }
  .sh-device {
    min-height: 120px;
  }
  .sh-device-icon {
    font-size: 1.8rem;
  }
  .institution-logos img {
    max-height: 36px !important;
    max-width: 100px !important;
  }
  #sh-tabs .tabs ul {
    flex-wrap: wrap;
  }
  #sh-tabs .tabs ul li {
    font-size: 0.8rem;
  }
  .ds-compare-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .ca-metric-number {
    font-size: 2.2rem;
  }
  .ca-metric-card {
    padding: 1.5rem 1rem;
  }
  .ts-card {
    padding: 1.25rem;
  }
  .ts-stepper {
    flex-wrap: wrap;
  }
  .ts-step {
    padding: 0.4rem 0.6rem;
  }
  .ts-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  .ts-step-label {
    font-size: 0.72rem;
  }
}
