.tools-primary-card {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  padding: 0;
  overflow: hidden;
  border-color: rgba(15, 125, 168, 0.34);
  box-shadow: 0 18px 48px rgba(23, 32, 43, 0.08);
}

.tools-primary-copy {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tools-primary-copy .tools-demo-desc {
  margin-bottom: 0;
}

.tools-primary-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid var(--line-2, #d8dce0);
  border-radius: 999px;
  color: var(--mut, #5b6672);
  background: var(--surface, #fff);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-primary-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent, #0f7da8);
  border-radius: 50%;
}

.tools-primary-visual {
  position: relative;
  min-height: 230px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(96, 130, 145, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 130, 145, 0.13) 1px, transparent 1px),
    linear-gradient(145deg, #132230, #1e3545);
  background-size: 28px 28px, 28px 28px, auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.frame2d-diagram {
  position: relative;
  width: min(55%, 220px);
  aspect-ratio: 1.45;
  border-top: 6px solid #e8eef1;
  border-right: 6px solid #e8eef1;
  border-left: 6px solid #e8eef1;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
}

.frame2d-diagram::before,
.frame2d-diagram::after {
  content: '';
  position: absolute;
  bottom: -15px;
  width: 24px;
  height: 10px;
  border-top: 2px solid #52badf;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(82, 186, 223, 0.8) 4px 6px);
}

.frame2d-diagram::before { left: -15px; }
.frame2d-diagram::after { right: -15px; }

.frame2d-load {
  position: absolute;
  left: 50%;
  top: -48px;
  width: 2px;
  height: 34px;
  background: #e8862c;
  transform: translateX(-50%);
}

.frame2d-load::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #e8862c;
  border-bottom: 2px solid #e8862c;
  transform: rotate(45deg);
}

.frame2d-result {
  position: absolute;
  right: 8%;
  bottom: 14px;
  display: flex;
  gap: 7px;
  color: #9edbf1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .tools-primary-card {
    grid-template-columns: 1fr;
  }

  .tools-primary-visual {
    min-height: 205px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}
