.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px) 0;
  max-width: 1500px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 56px) 70px;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.42);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.mock-thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 12px;
  background: #111827;
}

.mock-thumb.has-image {
  padding: 0;
  background: #fff;
}

.thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #fff;
}

.thumb-window {
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(255,255,255,0.18);
}

.thumb-top {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: #e5e7eb;
}

.thumb-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
}

.thumb-body {
  display: grid;
  grid-template-columns: 28% 1fr;
  height: calc(100% - 20px);
}

.thumb-side { background: #172033; }
.thumb-main { padding: 10px; }

.thumb-lines span {
  display: block;
  height: 7px;
  margin-bottom: 7px;
  border-radius: 4px;
  background: #cbd5e1;
}

.thumb-lines span:nth-child(1) { width: 62%; background: #111827; height: 12px; }
.thumb-lines span:nth-child(2) { width: 92%; }
.thumb-lines span:nth-child(3) { width: 72%; }

.thumb-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.thumb-boxes i {
  display: block;
  height: 38px;
  border-radius: 5px;
  background: #e2e8f0;
}

.thumb-boxes i:nth-child(1) { background: color-mix(in srgb, var(--accent) 78%, white); }
.thumb-boxes i:nth-child(2) { background: #dbeafe; }
.thumb-boxes i:nth-child(3) { background: #dcfce7; }

.case-body { padding: 18px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.tag.hot {
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: color-mix(in srgb, var(--accent) 70%, black);
}

.tag.subtle {
  background: #f8fafc;
  color: #64748b;
}

.case-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.38;
}

.case-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 12px;
}

.case-footer strong { color: var(--ink); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(430px, 1.22fr);
  width: min(1320px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-info {
  overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.modal-info h2 {
  margin: 12px 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

.modal-info p {
  margin: 0 0 16px;
  color: #3e4859;
  font-size: 14px;
}

.close {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  background: rgba(15,23,42,0.9);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.outcome {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fafc;
}

.outcome strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.outcome span {
  color: var(--muted);
  font-size: 11px;
}

.modal-demo {
  overflow: auto;
  padding: clamp(18px, 3vw, 32px);
  background: #e9eef6;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.screen-tab {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.screen-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.screen-title {
  margin: 0 0 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.screen-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(17,24,39,0.16);
}

.screen-image-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.screen-image {
  display: block;
  width: 100%;
  height: auto;
}

.screen-image-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #fff;
  background: rgba(15,23,42,0.82);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.screen-image-button:hover .screen-image-zoom,
.screen-image-button:focus-visible .screen-image-zoom {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox-panel {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 0;
  display: grid;
  gap: 10px;
}

.image-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,0.34);
}

.image-lightbox-panel figcaption {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 7px;
  color: #fff;
  background: rgba(15,23,42,0.92);
  font-size: 25px;
  line-height: 1;
}

.footer {
  padding: 34px clamp(18px, 4vw, 56px) 54px;
  background: var(--navy);
  color: #dbe3ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
}

.footer strong { display: block; color: #fff; }
.footer span { color: #94a3b8; font-size: 13px; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 360px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-panel { grid-template-columns: 1fr; overflow: auto; }
  .modal-info { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .nav { align-items: center; }
  .brand { min-width: 0; }
  .brand span { display: none; }
  .nav-links { font-size: 12px; }
  .nav-cta { min-height: 42px; min-width: 142px; padding: 0 14px; font-size: 12px; }
  .floating-consult {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    min-height: 58px;
    gap: 10px;
    padding: 9px 9px 9px 16px;
    border-radius: 18px;
  }
  .floating-consult-copy small { font-size: 10px; }
  .floating-consult-copy strong { font-size: 13px; white-space: normal; }
  .floating-consult-action { min-width: 86px; min-height: 38px; padding: 0 12px; font-size: 12px; }
  .hero { padding-top: 32px; padding-bottom: 26px; overflow: hidden; }
  .hero-panel { max-width: 100%; overflow: hidden; }
  .eyebrow { display: flex; font-size: 11px; line-height: 1.4; }
  .hero-finder-row { grid-template-columns: 1fr; }
  .hero-selects { grid-template-columns: 1fr 1fr; }
  .hero-paths { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .stream-card { width: 190px; min-height: 104px; }
  .stream-card.is-far { opacity: 0.24; }
  .hero-note { position: static; max-width: none; margin-top: 10px; }
  .hero-demo, .product-ui, .ui-layout, .doc-editor, .phone-wrap {
    grid-template-columns: 1fr;
  }
  .showcase-frame { width: 100%; }
  .demo-main, .ui-main { padding: 14px; }
  .demo-grid, .chart-board { grid-template-columns: 1fr; }
  .demo-kpi:nth-child(n+2) { display: none; }
  .chart-card, .insight-card { min-height: 132px; overflow: hidden; }
  .bars { height: 94px; gap: 6px; }
  .bars i { min-width: 0; }
  .demo-side, .ui-sidebar { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .section-head, .footer-inner { display: block; }
  .outcomes, .kpi-row, .kanban { grid-template-columns: 1fr; }
  .modal.open { padding: 0; }
  .modal-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .close { top: 10px; right: 10px; }
  .phone { margin: 0 auto; }
}

@media (max-width: 520px) {
  .nav { gap: 8px; padding: 10px 14px; }
  .brand { gap: 10px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand strong { font-size: 16px; }
  .nav-links { display: none; }
  .floating-consult {
    left: 12px;
    right: auto;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    justify-content: center;
    text-align: center;
    transform: none;
  }
  .floating-consult:hover { transform: translateY(-2px); }
  .floating-consult-copy strong { overflow-wrap: anywhere; }
  .floating-consult-action { display: none; }
  .hero, .section-head, .gallery { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  h1 { font-size: clamp(34px, 9.4vw, 36px); }
  h1 span { white-space: normal; }
  h1, .lead, .eyebrow { max-width: 340px; overflow-wrap: anywhere; }
  .hero-finder-input { align-items: flex-start; font-size: 14px; line-height: 1.55; }
  .hero-search-btn { width: 100%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .btn.primary, .btn { width: 100%; min-width: 0; }
  .hero-selects { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}